不能降低机器人工作室情况下,按钮上的文字 [英] Cannot lower case button text in android studio
问题描述
我有一个已经困扰了我一段时间一个微不足道的问题。我试图谷歌这一点,但似乎没有人有同样的问题,因为我还是不认为这是一个问题。当我做下布局activity_my.xml一个按钮
I have a trivial question that has been bothering me for a while. I tried to google this but no one seems to have the same problem as me or doesn't see it as an issue. When I make a button in activity_my.xml under layout
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_1_name"
android:id="@+id/button2"
android:layout_marginTop="140dp"
android:layout_below="@+id/textView"
android:layout_centerHorizontal="true" />
我得到一个按钮,看起来像
I get a button that looks like
尽管我的琴弦code是:
even though my strings code is:
<resources>
<string name="app_name">HelloWorld</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
<string name="button_1_name">BuTtOn 1</string>
我知道我肯定失去了一些东西在这里小,但我如何才能小写/大写的按钮上的文字工作吗?
I know I am definitely missing something small here, but how do I get lower case/upper case working in the button text?
谢谢!
推荐答案
您可以添加的android:textAllCaps =FALSE
的按钮
按钮上的文字可能会被转换适用于所有按钮的应用程序的主题为大写。检查的主题/样式文件设置属性的android:textAllCaps
The button text might be transformed to uppercase by your app's theme that applies to all buttons. Check themes / styles files for setting the attribute android:textAllCaps
.
这篇关于不能降低机器人工作室情况下,按钮上的文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!