Android: Drawable not showing up
Seems like this is a bug with android, where sometimes the first image in the drawable folder doesn't show up. Added a dummy image called aaaa.png to the drawable folder and problem was solved. Found the answer here: ImageButton does not display a particular drawable
Had the same issue and resolved it by removing all special characters. In my case it was dashes '-' in the filename:
background-720.png => background.png
.
One of the reason is
If you are using Vector
file as a drawable left or right then you have to use .
android.support.v7.widget.AppCompatButton
Instead Of
Button
Simple View like Button,Textview
doesn't support Vector
file as a Drawable left right
in my case