我希望在手机中填充屏幕并弹出(对话框)平板电脑.
我以为我做了这样的布局文件,
<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">
Run Code Online (Sandbox Code Playgroud)
并将width的值外部化为
在values/dimens.xml中
<dimen name="tutorial_width">match_parent</dimen>
Run Code Online (Sandbox Code Playgroud)
在values-xlarge/dimens.xml中
<dimen name="tutorial_width">320dp</dimen>
Run Code Online (Sandbox Code Playgroud)
但我不能将'match_parent'表示为dimen元素.有帮助吗?谢谢!