Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Fixed size dialog dimension- What is Major & Minor?

What are these attributes stands for? The difference between major dimension and minor dimension?

<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>
like image 482
Nizam Avatar asked Mar 12 '15 06:03

Nizam


2 Answers

windowFixedHeightMajor : A fixed height for the window along the major axis of the screen, that is, when in portrait.

windowFixedHeightMinor : A fixed height for the window along the minor axis of the screen, that is, when in landscape.

windowFixedWidthMajor : A fixed width for the window along the major axis of the screen, that is, when in landscape.

windowFixedWidthMinor : A fixed width for the window along the minor axis of the screen, that is, when in portrait.

like image 184
Fahim Avatar answered Nov 09 '22 10:11

Fahim


Using windowFixedHeightMajor or windowFixedHeightMinor do not compile as their marked private.

like image 2
Kitesurfer Avatar answered Nov 09 '22 12:11

Kitesurfer