KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have an Android library with themes, attributes, styles, colors and, of course, code. For things like separator's height, colors of items etc.. i have the ability to override dimensions using dimensions.xml and color using colors.xml (leaving the layouts, theme and style alone). However, if i have a ListView which uses Android's list_selector_background and i also have another activity which uses this selector for a press-able TextView, besides overriding it in code, I can't find a way to do it though of using the ?style:attrib syntax but i can't see how it helps The simple and fastest solution i currently have is create a style: <style name="ResultsListViewStyle" > <item name="android:listSelector">@android:drawable/list_selector_background</item> </style> and then copy paste the above piece of xml to my actual project style.xml and change the selector there. This is not so bad however i do need to do this for every item using this selector...
Tags (comma-separated)
Save Edits
Cancel