Android固定尺寸对话框的尺寸-什么是专业&次要的? [英] Android Fixed size dialog dimension- What is Major & Minor?

查看:130
本文介绍了Android固定尺寸对话框的尺寸-什么是专业&次要的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些属性代表什么? 主要维度和次要维度之间的区别?

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>

推荐答案

windowFixedHeightMajor :沿屏幕主轴(即,纵向)时窗口的固定高度.

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

windowFixedHeightMinor :沿屏幕短轴(即在横向时)的窗口的固定高度.

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

windowFixedWidthMajor :窗口沿屏幕主轴的固定宽度,即在横向时.

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

windowFixedWidthMinor :窗口沿屏幕短轴的固定宽度,即纵向显示.

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

这篇关于Android固定尺寸对话框的尺寸-什么是专业&amp;次要的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆