is there any way to keep my navigation bar on top of everything or overlay or overlap on everything in my activity?
I have this code in my main_activity.xml
<android.support.v4.widget.DrawerLayout android:layout_width="match_parent" android:layout_height="0dp" android:id="@+id/drawer_layout" android:layout_weight="1" > <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/frame_container" > </FrameLayout> <android.support.v4.view.ViewPager android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> <!-- Listview to display slider menu --> <ListView android:id="@+id/list_slidermenu" android:layout_width="240dp" android:layout_height="match_parent" android:layout_gravity="start" android:choiceMode="singleChoice" android:listSelector="@drawable/list_selector" android:background="#FFF"/> </android.support.v4.widget.DrawerLayout> <android.support.design.widget.TabLayout android:id="@+id/tab_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#FFF" android:minHeight="?attr/actionBarSize" app:tabIndicatorHeight="5dp" app:tabIndicatorColor="@color/colorPrimary" /> </LinearLayout>
The problem I have now is that my tablayout will show all the time even I have show my navigation drawer. Anyone know how to help me with this?
Your answer will be appreciated.
No comments:
Post a Comment