Android Custom button with imageview and textview inside?

前端 未结 6 2042
一整个雨季
一整个雨季 2021-01-04 21:27

I\'m looking to create a custom button. This button ideally would have an image on the left and a textview on the right. How would I accomplish this?

6条回答
  •  甜味超标
    2021-01-04 21:32

    In Xml layout use this drawable layout options and get simple layouts.The following line gives the image at the left side of the text.

    android:drawableLeft="@drawable/image"

提交回复
热议问题