What is the difference between windowMinWidthMajor and android:windowMinWidthMajor
According to this link:
Min_witdh_major is:
The platform's desired minimum size for a dialog's width when it is along the major axis (that is the screen is landscape). This may be either a fraction or a dimension.
And min_with_minor is:
The platform's desired minimum size for a dialog's width when it is along the minor axis (that is the screen is portrait). This may be either a fraction or a dimension.
In appcompat, this value is set as 65%.
@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.