51.2 The Example Project
For the purposes of this example, changes will be made to the CardDemo project created in the earlier chapter entitled “An Android RecyclerView and CardView Tutorial”. Begin by launching Android Studio and loading this project.
Once the project has loaded, run the app and note when scrolling the list upwards that the toolbar remains visible as shown in Figure 51-3:
Figure 51-3
The first step is to make some configuration changes so that the toolbar contracts during an upward scrolling motion, and then expands on a downward scroll.