In my application I have different Themes – one dark and one bright theme. Each theme requires his own icon set.
How do I apply it to the theme? Is there something like a special folder like for icons with different sizes ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The following serves as a hint…
I suppose this may help: http://developer.android.com/reference/android/R.attr.html#icon
Lets say you have the following themes…
You can add
<item name="android:icon"></item>to each theme and supply each one with their own drawable icon. Then to get the respective drawables in your layout or what have you, you need to make use of?android:attr/icon.So your layout may end up looking something like…
If you’re unsure about what the
?android:attr/iconpart exactly means, read http://developer.android.com/guide/topics/resources/accessing-resources.html#ReferencesToThemeAttributes.