[Android] TextTransform on Button not working?

Stesvis 1,041 Reputation points
2021-02-07T05:12:40.727+00:00

Hello,

I can't seem to be able to get the TextTransform property to work on Buttons in Android.

The text always shows uppercase no matter what.
If I set this in the android project the buttons text is always the same as entered in the Text property: <item name="textAllCaps">false</item>

With that line, this never works: TextTransform="Uppercase"

For example this code:

   <Button Text="Tap here to pick your favorite categories"  
   		Style="{StaticResource btn-link}"  
   		Padding="0"  
   		TextTransform="None" />  

Gives me this:
64881-image.png

The same happens if I set TextTransform="Lowercase"

Is there something overriding it? Or it just doesn't work on buttons in android?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
    2021-02-08T02:53:36.223+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Please update Xamarin.Forms package to the latest .

    I test on Xamarin.Forms 5.x , everything works fine .

    The text on Buttons changes with TextTransform property as expected no matter we set <item name="textAllCaps">false</item> in Android project or not .


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Ryan Harding 1 Reputation point
    2021-02-09T11:34:39.44+00:00

    Are you using material? I think its not working if material is not set...