Problem with Image Button visibility! Android

后端 未结 2 1601
时光取名叫无心
时光取名叫无心 2021-01-24 20:27

I have an Image button. I made it invisible. But the onClick event is not getting triggered which makes the button visible. The button should initially be visible for 5seconds,

相关标签:
2条回答
  • 2021-01-24 21:05

    You are trying to click an invisible button? Try using a visible button with a blank drawable, ie no background or src attributes.

    when you click it, dynamically change the source attributes by inserting your desired drawable.

    this will definitely make it clickable.

    0 讨论(0)
  • 2021-01-24 21:23

    When you have made the ImageButton Invisible then how will you click an invisible ImageButton.

    0 讨论(0)
提交回复
热议问题