1

My question may have something to do Drawer animation , and since it is a library. I don't want it.

I want to know:

How can I map (findViewById) the icons inside the NavigationView - DrawerLayout in order to apply animations like - delay to appear (the icons only).

From: YouVersion App

YouVersion

Someone suggested from this post comment to use postDelayed . But it is for the drawer.

azizbekian
  • 60,783
  • 13
  • 169
  • 249
RoCkDevstack
  • 3,517
  • 7
  • 34
  • 56
  • Instead of specifying them as `@menu` items, just replicate them in a layout. And then you're good to go with any animation. – azizbekian Mar 27 '17 at 14:04
  • Do you mean, I will create a separate layout. And from the `NavigationView` - `app:menu=" custom_menu.xml " ` . I will just use `LinearLayout - Vertical` with buttons with style same selectors with the nav? – RoCkDevstack Mar 27 '17 at 14:23
  • You can [addHeaderView()](https://developer.android.com/reference/android/support/design/widget/NavigationView.html#addHeaderView(android.view.View)) to your `NavigationView`. The rest is right in your comment. – azizbekian Mar 27 '17 at 14:26
  • Many Thank you. :) – RoCkDevstack Mar 27 '17 at 15:12

1 Answers1

1

Instead of inflating as menu items, just create a layout with same UI, perform NavigationView.addHeaderView(). And thereafter you can perform any animation on those views.

azizbekian
  • 60,783
  • 13
  • 169
  • 249