<android.support.design.widget.CoordinatorLayout
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:layout_width="match_parent"
android:layout_height="match_parent" android:fitsSystemWindows="true"
tools:context=".MainActivity">
<android.support.v7.widget.Toolbar android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay" />
Asked
Active
Viewed 97 times
1

EGHM
- 2,144
- 23
- 37

santaasus s
- 15
- 1
- 5
-
please post the error and code here in the question and not as an image. – nano_nano Oct 29 '15 at 09:02
-
post your complete activity_main.xml code. – activesince93 Oct 29 '15 at 09:05
-
`
1 Answers
0
This Activity already has an action bar supplied by the window decor. That's your error. Change your activity theme to NoActionBar theme. It'll fix your problem.
<style name="NoActionBarTheme" parent="Theme.AppCompat.Light.NoActionBar">
...
</style>

Midhun Vijayakumar
- 2,927
- 2
- 19
- 23
-
don't forget to put it on manifest too in tag activity add : `android:theme="@style/NoActionBarTheme"` – Mochamad Taufik Hidayat Oct 29 '15 at 09:13