android - 如何使 com.google.android.material.button.MaterialButton 文本小写

标签 android material-components-android

如何将MaterialButton的文本设为小写? textAllCaps="false" 不适合我。我正在使用 com.google.android.material:material:1.0.0-alpha3

<com.google.android.material.button.MaterialButton
    android:id="@+id/material_button"
    style="@style/Widget.MaterialComponents.Button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/button_label_enabled"/>

最佳答案

您需要将 textAllCapsandroid:textAllCaps 设置为 false 以禁用所有大写设置。

关于android - 如何使 com.google.android.material.button.MaterialButton 文本小写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51071497/

相关文章:

android - 如何重新启动viewPager中的 fragment

android - 从 iOS 移植到 Android - 我需要多少测试设备?

java - 将 RippleEffect Color 更改回其 Styled 原始值

android - 膨胀类 android.support.design.widget.BottomNavigationView 时出错 & 膨胀类 android.support.design.widget.BottomNavigationView 时出错

android - 如何在我的 Android 应用程序中使用 Olacabs 搜索功能?

android - monodroid 和桌面应用程序的通用库

android - 使用 BottomSheetBehavior 显示 fragment

android - Material slider 和范围 slider 工具提示并不总是可见

android - drawableLeft/Right 等不适用于 Theme.MaterialComponents

android - 如何设置android应用程序的背景?