美文网首页
RelativeLayout布局的空间平分屏幕问题

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

作者: iTsung | 来源:发表于2016-12-13 16:35 被阅读0次

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

android:layout_width="match_parent"

android:layout_height="match_parent"

android:orientation="vertical">

<View

android:id="@+id/strut"

android:layout_width="0dp"

android:layout_height="0dp"

android:layout_centerHorizontal="true"/>

<TextView

android:layout_width="0dp"

android:layout_height="wrap_content"

android:layout_alignParentLeft="true"

android:layout_alignRight="@id/strut"

android:text="TXT_Left"/>

<TextView

android:layout_width="0dp"

android:layout_height="wrap_content"

android:layout_alignParentRight="true"

android:layout_alignLeft="@id/strut"

android:text="TXT_Right"/>

相关文章

网友评论

      本文标题:RelativeLayout布局的空间平分屏幕问题

      本文链接:https://www.haomeiwen.com/subject/amlbmttx.html