Selector does not work with mipmap image in android -


all want imagebutton changes image when user press button on. following directory list. see don't have drawable-hdpi, drawable-mdpi ..and others. , can't see mipmap-hdpi, mipmap-mdpi ..and others. problem can't add selector xml imagebutton. directory list following image content_main file known activity_main. content_main.
program shows image of button when add android:background="@drawable/fbpressed" code piece in content_main, program fails. says unfortunately login2 has stopped!

i tried lots of combination selector file fbpress.xml. tried android:icon="@mipmap/facebook_pressed" fails again , again. idea?

please change selector:

<selector>      <item android:drawable="@mipmap/facebook_press" android:state_press="true">     <item android:drawable= "@mipmap/fracebook">  </selector> 

please click android in screenshot , , change project.it can more clear.


Comments