Android 如何创建多个屏幕尺寸?

Android 如何创建多个屏幕尺寸?,android,android-layout,Android,Android Layout,我试了很多次,但都没有成功。任何人都可以通过一些xml帮助逐步告诉我如何在android中使用多屏幕大小? 提前感谢。请遵循以下步骤: 以第一个尺寸创建布局后,假设您的代码如下所示: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://sc

我试了很多次,但都没有成功。任何人都可以通过一些xml帮助逐步告诉我如何在android中使用多屏幕大小? 提前感谢。

请遵循以下步骤: 以第一个尺寸创建布局后,假设您的代码如下所示:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:paddingBottom="@dimen/activity_vertical_margin"
   android:paddingLeft="@dimen/activity_horizontal_margin"
   android:paddingRight="@dimen/activity_horizontal_margin"
   android:paddingTop="@dimen/activity_vertical_margin"
   tools:context=".MainActivity">

</RelativeLayout>

当您移动光标并单击Hello时。这是开发人员指南:您需要在问题中添加一些代码,以便指出您所做的错误