Android 其子视图的水平管理器对齐方式?

Android 其子视图的水平管理器对齐方式?,android,android-layout,Android,Android Layout,如何在水平线性布局中对齐子视图? 我在水平管理器中有两个文本视图(宽度-高度为包裹内容)。如何将一个对齐到右侧,另一个对齐到左侧 如果不知道你所说的“横向管理者”是什么意思,就很难回答你的问题。你是说水平布局吗?这就是你要找的吗 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:

如何在水平线性布局中对齐子视图?
我在水平管理器中有两个文本视图(宽度-高度为包裹内容)。如何将一个对齐到右侧,另一个对齐到左侧

如果不知道你所说的“横向管理者”是什么意思,就很难回答你的问题。你是说水平布局吗?这就是你要找的吗

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"/>
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true" />
</RelativeLayout>


请发布您的代码您是指水平布局吗?我是指水平线布局