且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

windowMinWidthMajor和android:windowMinWidthMajor有什么区别

更新时间:2023-11-16 13:45:46

根据 Min_witdh_major是:

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.

min_with_minor是:

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.

在appcompat中,此值设置为65%.

In appcompat, this value is set as 65%.