您的位置:首页 > 移动开发 > Android开发

Android 之样式

2014-12-12 15:55 232 查看
代码设置TextView的样式

这样不行:

new TextView(this,null,R.style.text_style);

这样可以:

new TextView(new ContextThemeWrapper(this, R.style.text_style))

设置透明度兼容旧版本:

使用 nineoldandroids 工具包中的 ViewHelper.setAlpha 方法。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: