
修改背景
文章平均质量分 51
士心山
无善无恶是至善,有善有恶是良知
展开
-
Android开发:修改button的边框和点击改变背景
本文内容讲解如何修改button的边框,点击button改变背景颜色打开在res/values目录下的color.xml文件,添加代码:<!-- 绿色 --><color name="green">#008000</color><原创 2018-06-04 21:14:02 · 13698 阅读 · 1 评论 -
android开发:如何动态设置ImageView和button的背景
Drawable drawable = ResourcesCompat.getDrawable(getResources(), R.drawable.has_authorization, null); imv_authorization.setBackground(drawable);原创 2018-07-15 17:20:05 · 5734 阅读 · 0 评论