Saturday, 23 April 2016

when i create fragment then it overlap on action bar

When you facing problem your action bar is getting overlapped by other activity.

Because you using frame layout add the following line in frame layout.


Like this it will resolve the problem of action bar overlapped actionbar.
in app_bar_main.xml
<FrameLayout    android:layout_width="match_parent"    android:layout_marginTop="?attr/actionBarSize"