【发布时间】:2022-08-16 01:37:57
【问题描述】:
标签: android xml kotlin materialdatepicker
标签: android xml kotlin materialdatepicker
是的,您可以更改标题的大小。
Material Date Picker 使用这个主题
<style name="MaterialCalendarTheme" parent="ThemeOverlay.MaterialComponents.MaterialCalendar">
<!-- just override the colors used in the default style -->
<item name="colorOnPrimary">@color/white</item>
<item name="colorPrimary">@color/spruce_valencia</item>
<item name="materialCalendarHeaderTitle">@style/date_text_appearance</item>
</style>
<style name="date_text_appearance" parent="@style/TextAppearance.AppCompat">
<item name="android:textSize">@dimen/text_xlarge_heading</item>
</style>
材料日历标题标题是什么诀窍和休息你可以改变使用字体大小属性来更改文本大小。
有关材料日期选择器属性和布局的更多信息,您可以追溯到这里 google material repo.
【讨论】: