shiburagi / Drawer-Behavior

Drawer behavior is a library that provide an extra behavior on drawer, such as, move view or scaling view's height while drawer on slide.
https://shiburagi.github.io/Drawer-Behavior/
MIT License
593 stars 101 forks source link

How to change ImageView size and TextViewSize of menuItem #12

Closed nikeru8 closed 5 years ago

nikeru8 commented 5 years ago

as Title, How to change ImageView size and TextViewSize of menuItem?

help

shiburagi commented 5 years ago

hi,

you can add custom theme like this in styles.xml

  <style name="NavigationTheme" parent="AppTheme">
        <item name="listPreferredItemHeightSmall">60dp</item><!-- menu item height- vary as u need -->
    </style>

then, set that theme at drawer :

<android.support.design.widget.NavigationView
        .
        .
        .
        android:theme="@style/NavigationTheme" />

or you can refer here,

https://stackoverflow.com/questions/44644588/how-to-customise-navigation-drawer-item-height

nikeru8 commented 5 years ago

thanks also can override design_navigation_icon_size

50dp
stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.