« setBackgroundDrawable和setBackgroundColor的用法 时间:2024-3-2 18:37 作者:韩俊 分类: Android 1.设置背景图片; textView.setBackgroundDrawable(getResources().getDrawable(R.drawable.guohou)); 2.转换字符串为int(颜色); listItemView.deleteFilghtBg.setBackgroundColor(Color.parseColor("#F5F5DC")); 标签: android 上一篇Android开发之Toast 下一篇Android的事件处理机制 热门推荐