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.
2.Choose the color and download the .zip file with the required set of drawables.
Then, just extract the zip file and paste the contents in your source folder.
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,
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.