创建新应用程序时,默认情况下在android中创建线性布局,而不是相对布局

创建新应用程序时,默认情况下在android中创建线性布局,而不是相对布局,android,android-layout,Android,Android Layout,为什么我在android中创建新的应用程序时使用相对布局而不是线性布局。。。。 在默认情况下创建新应用程序而不是相对应用程序时,如何创建线性布局 enter code here <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"

为什么我在android中创建新的应用程序时使用相对布局而不是线性布局。。。。 在默认情况下创建新应用程序而不是相对应用程序时,如何创建线性布局

enter code here
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="${relativePackage}.${activityClass}" >

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/hello_world" />
在此处输入代码

好的,按照以下步骤操作,您可以做到,但我只能99%确定。
转到res->layout folder并右键单击它,您会看到一个边栏,询问您要创建什么类型的文件
转到->编辑文件模板选项

侧栏>

您将看到此对话框已打开。 您可以在“其他”选项卡中看到这两个选项,这些选项是布局资源文件.xml布局资源文件\u vertical.xml

在这两个LayoutResourceFile.xmlLayoutResourceFile\u vertical.xml中,将${ROOT\u标记}更改为LinearLayout,您将始终获得LinearLayout作为未来的父级


eclipse和jdk-8u25-windows-x64为什么每次运行应用程序时都会出现此消息??[2015-01-30 22:39:15-示例1]未能在设备“emulator-5554”上安装example1.apk:超时[2015-01-30 22:39:15-example1]启动已取消!