Android Programming: The Big Nerd Ranch Guide, 5th Edition
by Bryan Sills, Brian Gardner, Kristin Marsicano, Chris Stewart
Challenge: Polishing Your App Some More
With your search feature now working, you might notice little defects or shortcomings of your implementation. Modern, high-quality apps do many subtle things to improve the user experience when searching for content. See if you can implement a few of these changes:
-
As soon as a query is submitted, hide the soft keyboard.
-
While the network request is executing, display a loading indicator (indeterminate progress bar).
-
Your current search implementation has a slight problem: If you start typing a new query while a search is ongoing, it will be reset when the search finishes. Let the user start typing in a new query (or disable text input on the SearchView entirely) while a query is executing. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access