In my app "Tide Now WA" which I recently tested for compatibility using the new Nexus 9 tablet (Lollipop - API 21).
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.
When same app is run on my Nexus 9 all the letters in the text are capitalized.
FWIW my manifest contains the following statement:
uses-sdk android:minSdkVersion="10" android:targetSdkVersion="14"
Can I fix this in my code or is it a bug in the O.S. thanks
To disable all caps through layout file, add textAllCaps attribute to the TextView, android:textAllCaps="false" .
You could add android:textAllCaps="false" to the button. 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 .
I don't have idea why it is happening but there 3 trivial attempts to make:
Use android:textAllCaps="false"
in your layout-v21
Programmatically change the transformation method of the button. mButton.setTransformationMethod(null);
Check your style for Allcaps
Note: public void setAllCaps(boolean allCaps)
, android:textAllCaps
are available from API version 14.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With