为什么我的按钮文字裹挟到棒棒堂全部大写?我的、棒棒、按钮、文字

2023-09-12 00:46:29 作者:雾已泪聚

在我的应用程序的浪潮现在WA的这是我最近使用的兼容性测试 新的Nexus平板电脑9(棒棒堂 - API 21)。

In my app "Tide Now WA" which I recently tested for compatibility using the new Nexus 9 tablet (Lollipop - API 21).

它写一些按钮上的文字。这个程序写正确采用了Android 2.3和Android文本 4.0。即混合资本和小写字母。

It writes some button text. This app writes the text correctly using Android 2.3 and Android 4.0. I.e. mixed capital and lower case letters.

在相同的应用程序运行在我的Nexus 9的所有信件 在文中予以资本化。

When same app is run on my Nexus 9 all the letters in the text are capitalized.

FWIW我的清单包含以下语句:

FWIW my manifest contains the following statement:

使用-SDK安卓的minSdkVersion =10机器人:targetSdkVersion =14

我可以解决这个问题在我的code或者是它在操作系统中的错误 谢谢

Can I fix this in my code or is it a bug in the O.S. thanks

推荐答案

这是可以解决的应用程序中的code。通过设置按钮的TransformationMethod,例如:

This is fixable in the application code by setting the button's TransformationMethod, e.g.

mButton.setTransformationMethod(null);