Skip to content Skip to sidebar Skip to footer

How Can I Search In Recycleview

How can I search in recycleview with updated review .I can also search now. But when I type 3 alphabets in txt_input it search for the same result. and gives the list which contai

Solution 1:

here i am answering my own question.I found the solution from google kivy groups.

change change of code will do the thing.

change the code from:

matches = [self.word_list[i] for i inrange(len(self.word_list)) if
                   self.word_list[i][:self.starting_no] == value[:self.starting_no]]

to:

matches = [word for word inself.word_list
                   if word[:len(value)].lower() == value[:len(value)].lower()]

Post a Comment for "How Can I Search In Recycleview"