8.9 Wrap-Up

In this chapter, you created the Twitter Searches app. You used a SharedPreferences file to store and manipulate key–value pairs representing the user’s saved Twitter searches.

We introduced the RecyclerView (from package android.support.v7.widget)—a flexible, customizable view that enables you to control how an app displays a scrolling list of data. You learned that RecyclerViews support different layout managers and arranged this app’s RecyclerView items vertically using a LinearLayoutManager—a subclass of RecyclerView.LayoutManager.

We once again used the view-holder pattern for reusing views that scroll off-screen. You learned that RecyclerView formalizes the view–holder pattern, making it required. You created a subclass of ...

Get Android How to Program, 3/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.