【android】动态添加ImageButton的去边框办法


一句话即可。
ImageButton.setBackgroundResource(R.drawable.abc_list_selector_background_transition_holo_light);
其中网络上的答案如设置背景图片透明度等不适合动态添加的控件,仍会有不可见的边框存在,使得控件位置偏移。
posted @ 2016-02-12 23:17  Thkeer  阅读(551)  评论(0编辑  收藏  举报