I use code to adjust text height and line height in navigation mode, and it works on api21 +, but the same code does not work in api 16. How can I make it work?
the code:
Create a style and apply it to NavigationView using app:theme
<style name="NavigationViewStyle"> <item name="android:textSize">20sp</item> <item name="android:listPreferredItemHeightSmall">40dp</item> </style>
And then apply this style to NavigationView using the application: theme
<android.support.design.widget.NavigationView ... ... app:theme="@style/NavigationViewStyle" ... ... </android.support.design.widget.NavigationView>
android navigationview
jason
source share