I have been adding a navigation drawer to one of my apps, and I started to wonder whether or not it would be better to switch from using a ListView
to multiple TextView
s for the navigation drawer list items. Looking at the Google Design Guidelines on Navigation Drawer content (specifically the section on 'Scrolling'), I noticed that it may look nicer with multiple TextView
s.
At the moment, I am using a ListView
and ImageView
in my navigation drawer (it looks a little like this. However, when I scroll in my navigation drawer (I do this by turning my device landscape as there are not enough items in my list yet), only the ListView
scrolls, and the ImageView
stays as it is. I want it to be able to scoll more like this, where the ImageView
is also scrolled with the ListView
.
Additionally, I found that my ListView
in my navigation drawer does not have the ripple effects as shown in this image although other ListView
s in my other Activity
s and Fragment
s do.
What are the issues I am facing and how could I go about resolving these?
Update:
In Google's I/O App (2014), there seems to be a LinearLayout
at the bottom of the navigation drawer layout which I think is responsible for the list of items shown. Could someone explain how this would work?
ListView
? – MopeyListView
with a header view? – MopeyLinearLayout
at the bottom of the navigation drawer which I think is responsible for the list of items shown. Could someone explain how this works? – MopeyScrimInsetsScrollView
is, as defined in this layout file. – Mopey