android gallery item selector -


I would like to use the following selector for an Android gallery image, will it work?

  & lt; Selector xmlns: android = "http://schemas.android.com/apk/res/android" & gt; & Lt; Item state_selected = "true" android: drawable = "@ drawable / selected_icon" & gt; & Lt; / Item & gt; & Lt; Item Android: Drawable = "@ Drable / Unclected_corean" & gt; & Lt; / Item & gt; & Lt; / Selector & gt;  

I tried but it is not working

I am capable

The same XML file works, as shown above from above

For this, make sure that the selected and unceded images have the same height and width Yes, it will not work.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -