Bottom Navigation View : never select menu item when startup - android

how to make the bottom navigation menu no select any menu item when startup the application??
i am trying to set
bottomNavigationView.getMenu().getItem(0).setChecked(true);
but this is not working..
this is the layout i want

bottomNavigationView.setSelectedItemId(R.id.myTabId);
You can use this code to select a option programmatically at start.

Related

how to design navigation drawer & title bar?

i want to design a navigation drawer for my app . In it i want various options to go to various activity.
I also want to add some clickable items on title bar which would go to any activity specified.
so, please suggest me direction to proceed.
Best example is add new activity and select "Navigation Drawer Activity"
That use titlebar item for opening menu and swip for opening and closing menu

Opening layout on Floating action button click

I want that when an item is added to cart the flaoting action button show open this layout. Does anyone have an idea how to do this..
This is the floating action button at the bottom right corner
This is how the layout must open on fab click
Please help me do this..
You have 3 options,
Option 1
On clicking fab just hide it and show a custom dialog box to the exact same position you want.
Option 2
Use a custom SnackBar and display it , example link here
Option 3
Use this library FABRevealLayout to expand FAB to a layout.

how to open slide menu on button click in android xamarin.forms?

I want to create sliding menu in android in xamarin.forms. I know I can do this with help of MasterDetailPage. But I don't want to use MasterDetailPage. I want a button my page and on click of that button slide menu should open.
Is it possible to open slide menu without help of masterdetailpage in xamarin.forms?
You can do that by using e.g. an AbsoluteLayout as your page Content. Add the slide menu in your layout out of the current view, and on click, animate it into view. It's that simple.

is it possible to have sub menus in the sliding menu?

Hi i have implemented a Android sliding menu using navigation drawer with help of WWW.androidhive.info tutorial.
now my question is , is it possible to have sub menus in the sliding menu?
i mean for example assume i have four options in sliding menu "Facebook","twitter","watsup","android". and my question is , if i press on Facebook a sub menu must come in down, with in that i must have some other options , like "photos","places" etc..
when i click on Facebook a drop down menu must appear by pushing down the other items(twitter,watsup,android) in the sliding menu.
(i want sub menu should be shown in the same sliding menu. not in a new sliding menu)
Why not use the expandable list views in the drawer layout : http://developer.android.com/reference/android/widget/ExpandableListView.html
Use ExpandableListView instead of ListView in the navigation drawer.

Howto add my own item to the Menu/Wallpaper?

I noticed that some android applications are adding its own menu item to the "Select wallpaper from" menu. Please how can I add my own item to the menu?
The menu is accessible from home screen by clicking to menu and clicking to the Walpaper item.
You create you own live wallpaper.

Categories

Resources