PreferenceActivity设置背景色(拖…
来源:互联网 发布:centos 6 sz 编辑:程序博客网 时间:2024/06/03 21:44
只需要在onCreate中加入设置CacheColor就可以了
@Override protected void onCreate(BundlesavedInstanceState)
{
super.onCreate(savedInstanceState); mPrivacySettings = newPrivacySettings(this);addPreferencesFromResource(R.xml.privacysettings); this.getListView().setCacheColorHint(Color.parseColor("#00000000"));
this.getListView().setBackgroundColor(Color.rgb(76,76, 76));
//。。。。
}
void android.widget.ListView.setCacheColorHint(intcolor)
publicvoid setCacheColorHint(int color)
Since: APILevel 1
When set to a non-zero value, the cache color hint indicatesthat this list is always drawn on top of a solid, single-color,opaque background. Zero means that what's behind this object istranslucent (non solid) or is not madeof a single color. This hint will not affect any existingbackground drawable set on this view ( typically set viasetBackgroundDrawable(Drawable)
).
Parameters
0 0
- PreferenceActivity设置背景色(拖…
- PreferenceActivity设置背景色(拖…
- 设置标题栏背景色,背景色是自定义背景色
- 设置背景色
- 设置对话框背景色
- 设置状态栏背景色
- OPENGL 设置背景色
- 设置Eclipse背景色
- notepad++设置背景色
- SecureCRT设置背景色
- 设置对话框背景色
- 网页背景色设置
- Android背景色设置
- Eclipse 设置背景色
- 设置webview背景色
- 设置IE背景色
- opengl 背景色设置
- 屏幕背景色设置
- Activity之间切换的动画
- java实现FTP上传下载
- Android KeyCode列表
- 反编译Apk[转]
- Android MediaProvider数据库模式
- PreferenceActivity设置背景色(拖…
- Android教程之MediaStore
- 获取已安装程序的名字、包名、版本…
- 使用Vitamio打造自己的Android万能…
- android 获取process,service,me…
- 自定义RadioButton样式,实现菜单
- android.permission权限大全
- Android adb的使用
- Android完全杀死进程