有一个活动我想在手机中填充屏幕并为平板电脑弹出(对话框)。
我以为我制作了这样的布局文件,
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="@dimen/main_layout_width"
android:layout_height="match_parent">
并将宽度的值外部化为
在值/dimens.xml 中
<dimen name="tutorial_width">match_parent</dimen>
在值-xlarge/dimens.xml
<dimen name="tutorial_width">320dp</dimen>
但我不能将 'match_parent' 表示为 dimen 元素。有什么帮助吗?谢谢!