Android: Create a toggle button with image and no text

前端 未结 4 713

is it possible to create a toggle button in Android that has an image but no text? Ideally it would look like this:

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 18:42

    I know this is a little late, however for anyone interested, I've created a custom component that is basically a toggle image button, the drawable can have states as well as the background

    https://gist.github.com/akshaydashrath/9662072

提交回复
热议问题