Android: Drawable not showing up

前端 未结 7 1696
鱼传尺愫
鱼传尺愫 2021-02-06 03:46

I have a fairly simple xml file that has an image button in it. The image shows up fine on the Graphical Layout xml designer, shows up fine when I run a development build, but a

7条回答
  •  再見小時候
    2021-02-06 04:29

    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

提交回复
热议问题