How to remove ImageButton's standard background image?

前端 未结 10 1510
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 01:50

In ImageButton I want to remove the standard button background image. In http://developer.android.com it is said, that one must define his\\her own background i

10条回答
  •  青春惊慌失措
    2020-12-13 02:15

    The best choice is not set a transparent background to your ImageButton.

    Give to your user a feedback when the button is tapped.

    android:background="?attr/selectableItemBackgroundBorderless"
    

提交回复
热议问题