B
B
Berry902019-03-06 14:49:22
Android
Berry90, 2019-03-06 14:49:22

Is the correct procedure for working with the database?

Dictionary application,
you write a word in the input field,
a request is made to the database on the fly with a list of words displayed in the recyclerview,
the first time the entire list of words is displayed in the recyclerview,
then when you enter letters, for example, "then ..." words starting with "then" appear ..." current, poplar, etc.,
and again the list from the database is linked to the recyclerview.
Is this approach correct?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2019-03-06
@Berry90

Can.
It is desirable to add another condition. For example, start listing only for more than three letters. Or limit the length of the list. And you can, like a search engine: first entered by the user, then the most frequent.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question