Android dialog box size with fixed size. What is Major & Minor?

What do these attributes mean? Difference between major size and minor size?

<style name="Theme.Base.AppCompat.Dialog.FixedSize" parent="android:Theme.Dialog"> <item name="windowFixedWidthMajor">@dimen/dialog_fixed_width_major</item> <item name="windowFixedWidthMinor">@dimen/dialog_fixed_width_minor</item> <item name="windowFixedHeightMajor">@dimen/dialog_fixed_height_major</item> <item name="windowFixedHeightMinor">@dimen/dialog_fixed_height_minor</item> ....... </style> 
+14
android android styles
Mar 12 '15 at 6:56
source share
2 answers

windowFixedHeightMajor . Fixed height for the window along the main axis of the screen, that is, in the portrait.

windowFixedHeightMinor : fixed height for the window along the secondary axis of the screen, i.e. in the landscape.

windowFixedWidthMajor . The fixed width of the window along the main axis of the screen, that is, in the landscape.

windowFixedWidthMinor : fixed window width along the secondary axis of the screen, i.e. for portrait orientation.

+23
Mar 12 '15 at 8:02
source share

Using windowFixedHeightMajor or windowFixedHeightMinor does not compile as flagged as private.

0
Jun 03 '19 at 16:20
source share



All Articles