My app with tabs has two themes. In each theme tabs have different images in selected and unselected state. How I can properly reference to image by theme?
For examp
You can find your answer here http://www.androidengineer.com/2010/06/using-themes-in-android-applications.html
Edit
(Additional information by Lukap in comments)
themes.xml and set the definitions of your styles there. attrs.xml. styles.xml. But you will need read more about the attrs.xml
- ? android:attr/activatedBackgroundIndicator
Instead, we are referring to the value of some other attribute – activatedBackgroundIndicator – from our inherited theme. Whatever the theme defines as being the activatedBackgroundIndicator is what our background should be.