Open rajputvishal opened 7 years ago
you can do this just put text direct child to menu no need to add group like this
<menu xmlns:android="http://schemas.android.com/apk/res/android"`
xmlns:app="http://schemas.android.com/apk/res-auto">
<Text
android:id="@+id/nav_twitter"
android:title="Follow us on Twitter"
android:icon="@drawable/twitter_social_outlined_black_24dp"/>
</menu>
Is there is any way to do this through code? My menu is dynamic.
I am creating a menu which is a combination of groups and independent items. In the APIs there is no option to add textItem without a group ID.
Could anyone guide me on this?
Thanks you