按钮文字始终以大写形式显示 [英] Button text always showing in uppercase

查看:67
本文介绍了按钮文字始终以大写形式显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的xamarin表单中,项目按钮文本始终以大写形式显示.
但是我在xaml中提供了大小写字母.构建解决方案时,所有字母均变为大写.

In my xamarin forms project button text are always show in uppercase format.
But I am providing upper and lower case letters in xaml. When I build the solution all the letters are changed to uppercase.

推荐答案

我想您会在Android上看到它,因为它是按钮文本的默认值,并且自Lollipop起就已经存在.

I'm guessing you see this on Android as it is the default for button text and has been since Lollipop.

要更改此行为,请将以下内容添加到您的styles.xml文件中,该文件可在Android项目中的资源然后值文件夹下找到

To change this behavior add the following to your styles.xml file which can be found in the Android project under the Resources then values folders

<item name="android:textAllCaps">false</item>

这篇关于按钮文字始终以大写形式显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆