yooouuri
yooouuri

Reputation: 2658

Theme.AppCompat removes action bar (toolbar)

When I use the following style

<resources>
    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light">
    </style>
</resources>

My action bar (toolbar) is gone.

screenshot

In my manifest I have android:theme="@style/AppTheme">

I tried something like:

<item name="windowActionBar">true</item>
<item name="android:windowNoTitle">false</item>

Did not worked for me.

I am using an FragmentActivity.

Upvotes: 0

Views: 25

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006799

I am using an FragmentActivity.

Change that to AppCompatActivity, or do not use Theme.AppCompat. Theme.AppCompat works with AppCompatActivity.

Upvotes: 1

Related Questions