首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Android: TextView.setTextAppearance()不影响文本大小

Android: TextView.setTextAppearance()不影响文本大小
EN

Stack Overflow用户
提问于 2011-12-23 02:06:39
回答 1查看 18.6K关注 0票数 16

下面的代码在我的Samsung Galaxy Note上运行,每条日志语句的日志为28.0。我做错了什么吗?

代码语言:javascript
复制
label = new TextView(context);
Log.e("text size", "" + label.getTextSize());

label.setTextAppearance(context, android.R.attr.textAppearanceLarge);
Log.e("text size", "" + label.getTextSize());

label.setTextAppearance(context, android.R.attr.textAppearanceSmall);
Log.e("text size", "" + label.getTextSize());
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8608076

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档