如何创建没有边框的ImageButton(只是图像应该是可见的)?人们可以通过设置来实现这一点imageButton.setBackgroundDrawable(null),但这也会消除焦点和选择颜色.
imageButton.setBackgroundDrawable(null)
目标是最初只能看到没有边框的图像.但是当用户聚焦/触摸/点击图像时,应该通过像常规按钮一样高亮显示图像来指示.
用于API 14的Java-Code中的解决方案是优选的.谢谢!
android imagebutton android-layout
android ×1
android-layout ×1
imagebutton ×1