I need to style my Android actionbar in similar way (EXAMPLE). I know that this is iOS version and it isn't suits to Android guidelines, but this is my task. I also know I cant change color of status bar, my goal is only to style action bar. I would appreciate for any tips how to do it.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- Illegal to have multiple roots (start tag in epilo
- How to maintain order of key-value in DataFrame sa
If you want to change the ActionBar, create a custom one of your preference.
First create an XML layout on how your custom ActionBar should look like. Here make sure you add an ID to the container layout (Linear Layout). The will be required at the later steps.
Second Inflate the XML layout created in you java code onCreate method as follows,
Note: As you are dealing with ActionBar, your application theme should be set to Theme.AppCompat.Light
To learn more about them, have a look at this quick video tutorials demonstrating the same.
Part One - 5min
Second Part - 9min
Third Part
Hope it helps!