简体   繁体   中英

using custom theme in action bar

I am new to android. I have to use actionbar in my app.at the same time I have to use custom theme also.whenever I have tried to use action bar,it shows null poiter exception because of my custom theme.because I have used parent="android:Theme" in my custom theme. How can I use custom theme in action bar?

Use this.

  1. Android Art Generator Studio

2.Choose the color and download the .zip file with the required set of drawables.

  1. Then, just extract the zip file and paste the contents in your source folder.

  2. On top of your Graphical layout of your activity, click on AppTheme and select project themes and choose the one you just downloaded.

You have to create custom actionbar theme using this method,

Link of Custom Action Bar .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM