标签:
一句话即可。ImageButton.setBackgroundResource(R.drawable.abc_list_selector_background_transition_holo_light);其中网络上的答案如设置背景图片透明度等不适合动态添加的控件,仍会有不可见的边框存在,使得控件位置偏移。
【android】动态添加ImageButton的去边框办法
原文地址:http://www.cnblogs.com/Thkeer/p/5187347.html