码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2016-02-13 00:28:06      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:


一句话即可。
ImageButton.setBackgroundResource(R.drawable.abc_list_selector_background_transition_holo_light);
其中网络上的答案如设置背景图片透明度等不适合动态添加的控件,仍会有不可见的边框存在,使得控件位置偏移。

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

标签:

原文地址:http://www.cnblogs.com/Thkeer/p/5187347.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!