Adding spinner in new NavigationView in android design support library -


with new navigationview in android can create drawers 1 bellow (src: http://android-developers.blogspot.in/2015/05/android-design-support-library.html)

<android.support.design.widget.navigationview         android:layout_width="wrap_content"         android:layout_height="match_parent"         android:layout_gravity="start"         app:menu="@menu/drawer"/> 

now each list item in drawer can defined in form of menu:

<group android:checkablebehavior="single"> <item     android:id="@+id/navigation_item_1"     android:checked="true"     android:icon="@drawable/ic_android"     android:title="@string/navigation_item_1"/> <item     android:id="@+id/navigation_item_2"     android:icon="@drawable/ic_android"     android:title="@string/navigation_item_2"/> </group> 

my navigation drawer contains header , list of items, 1 of these items spinner selector rest single click items.

so, best way in can have spinner inside items list?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -