« 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项目打包2 Android事件处理的两种方式是什么3 android笔记之常用控件上下文菜单ContextMenu和选项菜单OptionMenu4 Android---45---使用AIDL Service传递复杂数据5 Android 通知栏Notification的整合 全面学习 (一个DEMO让你完全了解它)6 Android 高手进阶,自定义圆形进度条7 Android使用volley发送带参数的post请求8 Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent错误的记录。9 Intent和IntentFilter详解10 AndroidのScrollView中嵌套ListView时显示一行解决方法