Android 相对布局中的“方向”属性是否负责对获得的最终布局视图进行任何更改?

Android 相对布局中的“方向”属性是否负责对获得的最终布局视图进行任何更改?,android,android-layout,orientation,android-relativelayout,Android,Android Layout,Orientation,Android Relativelayout,我一直在尝试预览android中给定XML代码的布局: <?xml version="1.0" encoding="utf-8"?> <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中给定
XML
代码的布局:

<?xml version="1.0" encoding="utf-8"?>
<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:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="@dimen/list_item_height"
android:background="@color/tan_background"    
tools:context="com.example.android.miwok.ColorsActivity">
<ImageView
    android:id="@+id/image"
    android:src="@mipmap/ic_launcher"
    android:layout_width="@dimen/list_item_height"
    android:layout_height="@dimen/list_item_height"
    />
<LinearLayout
    android:id="@+id/text_container"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_alignParentBottom="true"
    android:layout_alignParentTop="true"
    android:layout_height="@dimen/list_item_height"
    android:layout_toRightOf="@id/image">
</LinearLayout>


</RelativeLayout>

结果是 但现在我发现,每当我试图从同一代码的相对布局父视图组中删除方向属性时(如果我在描述它时出错,请纠正我),都会得到相同的预览。 进行上述更改后获得的视图如下所示 .这是否意味着在相对布局中是否放置任何方向属性都无关紧要?或者android中XML中相对布局的方向属性中是否存在任何隐藏的结果。

您可以在中看到,
RelativeLayout
没有方向参数,
RelativeLayout
没有方向参数