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

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

问题描述

在我的 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 项目的Resources then values 文件夹下

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天全站免登陆