user3383415
user3383415

Reputation: 435

Navigation drawer styles API 8

I have integrated navigation drawer in my app with android-support v7 for minSdkVersion="8" devices. I want to customize navigation bar´s theme but if I use the following code I can´t because requires API level 11, how can I do? Thank you

<style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
        <item name="android:background">@drawable/press</item>
    </style>

Upvotes: 1

Views: 110

Answers (2)

stan0
stan0

Reputation: 11817

As you note the parent theme requires API 11. To avoid this use one of the AppCompat themes that are included in the v7-support-library, defined in the R.style resource

Upvotes: 0

Kuffs
Kuffs

Reputation: 35651

See the documentation here: https://developer.android.com/training/basics/actionbar/styling.html

In particular, look at the Theme.AppCompat part.

Upvotes: 1

Related Questions