- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 android在代码中setBackgroundDrawable设置图片显示不正常
解决方案:在setBackgroundDrawable后面加上一句:view.setPadding(0, 0, 0, 0);参考:http://blog.csdn.net/houshunwei/article/details/6727433
2015-03-25 22:04:24 4045
原创 android背景图按比例缩放方法
直接在你的layout文件的开头加一个FrameLayout ,里面放一个ImageView,因为只有android:src可以设置android:scaleType,android:background是无法设置的,我的代码: android:layout_width="fill_parent" android:layout_height="fill_parent">
2015-03-09 21:59:13 6497
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人