美文网首页Android开发经验谈安卓开发安卓开发
安卓Button英文字符全部显示为大写问题

安卓Button英文字符全部显示为大写问题

作者: 蓝不蓝编程 | 来源:发表于2019-07-22 19:01 被阅读3次

问题简介

在Button里显示英文字符时,全部是大写显示的.


解决方案

在Button的属性中增加

android:textAllCaps="false"

完整样例:

<Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAllCaps="false"
        android:text="Test"/>

相关文章

网友评论

    本文标题:安卓Button英文字符全部显示为大写问题

    本文链接:https://www.haomeiwen.com/subject/dbcglctx.html