I am using Navigation drawer using this example. I want just change blue color to orange color how could I do this? I mean change listview selector color, actionbar selctor color everything.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
For ActionBar backgroownd:
Use Selector to achieve this. You can use either
@drawable
or@color
.I would like to contribute to the answer given by @Raghunandan. In the list you can distinguish between items clicked (android:state_pressed) from items activated (android:state_activated), so if you click on the item in the list that is activated, the click is visualized.
Create an activated.xml under the drawable folder:
And modify the selector.xml adding the state_activated modifier:
You need to use selectors.
Check this tutorial for more. customizing listviews
You can use a selector
in drawable folder have selector.xml as below
In drawable folder press.xml
In drawable foldernormal.xml
In the drawer_list_item.xml
For styling the bar
In your manifest
You can specify the theme for a particular activity instead of entire application.
More information
http://android-developers.blogspot.in/2011/04/customizing-action-bar.html
https://developer.android.com/training/basics/actionbar/styling.html
Snap shot
You have to do 2 things for this.