material-components-android

How to use MaterialAlertDialogBuilder fine?

你。 提交于 2020-08-27 09:12:07
问题 When i use dialog.builder the font size is correct but when i use MaterialAlertDialogBuilder the font size of body text is smaller. its ok? implementation 'com.google.android.material:material:1.1.0-alpha06' Im use this theme <style name="AppTheme" parent="Theme.MaterialComponents.Light"> MaterialComponent code MaterialAlertDialogBuilder(this) .setMessage("This is a test of MaterialAlertDialogBuilder") .setPositiveButton("Ok", null) .show() AlertDialog.Builder AlertDialog.Builder(this)

How to use MaterialAlertDialogBuilder fine?

走远了吗. 提交于 2020-08-27 09:11:30
问题 When i use dialog.builder the font size is correct but when i use MaterialAlertDialogBuilder the font size of body text is smaller. its ok? implementation 'com.google.android.material:material:1.1.0-alpha06' Im use this theme <style name="AppTheme" parent="Theme.MaterialComponents.Light"> MaterialComponent code MaterialAlertDialogBuilder(this) .setMessage("This is a test of MaterialAlertDialogBuilder") .setPositiveButton("Ok", null) .show() AlertDialog.Builder AlertDialog.Builder(this)