« 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的事件处理机制 热门推荐 1 Android ExpandableListView的使用技巧2 [安卓]手机管家(五)防盗之加密3 Android笔记三十二.Android位置服务及核心API4 Android ViewStub 布局延迟加载5 关于 android 中 postDelayed方法的讲解6 unable to connect to the virtual device Genymotion 神器启动问题7 Android 实现智能机器人聊天8 Android中Activity生命周期9 Android 入门10 Android:仿QQ 发表说说/上传照片 弹出框