RelativeLayout布局的空间平分屏幕问题

xmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:orientation="vertical">

android:id="@+id/strut"

android:layout_width="0dp"

android:layout_height="0dp"

android:layout_centerHorizontal="true"/>

android:layout_width="0dp"

android:layout_height="wrap_content"

android:layout_alignParentLeft="true"

android:layout_alignRight="@id/strut"

android:text="TXT_Left"/>

android:layout_width="0dp"

android:layout_height="wrap_content"

android:layout_alignParentRight="true"

android:layout_alignLeft="@id/strut"

android:text="TXT_Right"/>

你可能感兴趣的:(RelativeLayout布局的空间平分屏幕问题)