【发布时间】:2019-07-10 22:50:10
【问题描述】:
选择按钮时需要自定义选择器的文字颜色或背景颜色,因为文字颜色太相似,文字消失了
这是我的代码:
<android.support.design.button.MaterialButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
style="@style/Widget.MaterialComponents.Button.TextButton"
android:text="@string/lbl_forgotten_password"
android:textColor="@color/gray_text_1"
android:textSize="14sp" />
看起来是这样的:
【问题讨论】:
标签: android material-components