What is the difference between windowMinWidthMajor and android:windowMinWidthMajor

后端 未结 2 1552
遥遥无期
遥遥无期 2021-02-05 20:38

I want to set up a proper style for my ProgressDialog. I like the default one but I want to customize it. I\'ve tried to use AppCompat dialogs but they all setup some we

2条回答
  •  名媛妹妹
    2021-02-05 21:06

    @Ian Wong's answer is correct. Below are further details on that:

    android:windowMinWidthMajor -> min_dialog_width in Landscape

    android:windowMinWidthMinor -> min_dialog_width in Portrait

    • The height of the dialog however isn't set and just wraps the content.

    The actual values for @dimen/abc_dialog_min_width_major & @dimen/abc_dialog_min_width_minor is defined in the following path:

    @dimen/abc_dialog_min_width_major - is 65% to 45% depending on the screen size. @dimen/abc_dialog_min_width_minor - is 95% to 72% depending on the screen size.

提交回复
热议问题