Nativescript - android中的字体样式。无法覆盖原生Lollipop样式(UPPERCASE)

时间:2015-12-28 12:19:33

标签: android android-5.0-lollipop nativescript android-fonts

我希望按钮标签(字体样式)如何:记录 n,登录 w ith Facebook,登录 w ith Twitter

我如何获得:记录 n,登录 W Facebook,登录 W ith Twitter

我尝试了以下内容:

  1. 尝试了以下链接中给出的代码: Why is my Button text forced to ALL CAPS on Lollipop?

  2. 尝试了css(就像我们在HTML5中使用的那样): text-transform:none - >没有结果

  3. 提前致谢。

1 个答案:

答案 0 :(得分:1)

Android Lollipop默认为按钮上的大写文字。这是平台默认值。您可以使用一些本机方法覆盖它,请参阅此处:https://developer.android.com/reference/android/support/v7/widget/AppCompatButton.html