[Solved] How divide space between Bottom Navigation View?

I need to create Bottom Navigation with two menu item. but the view ratio is 30:70 and text gravity is in centre. one menu contain image and text one is only text AFAIK you can not achieve using menu better to create custom layout for this Sample code <LinearLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:gravity=”center” android:layout_margin=”10dp” android:layout_alignParentBottom=”true” android:orientation=”horizontal” … Read more

[Solved] Default Nagivatinal Drawer Layout of Android Studio

Suppose this is the layout of you MainActivity <android.support.v4.widget.DrawerLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:id=”@+id/drawer_layout” android:layout_width=”match_parent” android:layout_height=”match_parent” android:fitsSystemWindows=”true” tools:openDrawer=”start”> <include layout=”@layout/app_bar_main” android:layout_width=”match_parent” android:layout_height=”match_parent” /> <android.support.design.widget.NavigationView android:id=”@+id/nav_view” android:layout_width=”wrap_content” android:layout_height=”match_parent” android:layout_gravity=”start” android:fitsSystemWindows=”true” app:headerLayout=”@layout/nav_header_main” app:menu=”@menu/activity_main_drawer” /> </android.support.v4.widget.DrawerLayout> Now you want same navigation drawer to other activity i.e Main2Activity add this to other activity <android.support.v4.widget.DrawerLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:id=”@+id/drawer_layout” android:layout_width=”match_parent” android:layout_height=”match_parent” … Read more