阅读背景:

Android如何用数据填充布局

来源:互联网 

I have such layout:

我有这样的布局:

<RelativeLayout xmlns:android="https://schemas.android.com/apk/res/android"
          android:orientation="horizontal"
          android:layout_width="match_parent"
          android:layout_height="match_parent">

<me.amasawa.studchat.views.MessageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Test"
        android:layout_gravity="center" android:singleLine="false"
        android:autoText="false" android:background="@drawable/text_view_message" android:padding="1dp"
        android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:layout_marginLeft="2dp"/>
<TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Это очень длинное сообщение для проверки разметки. Ну как?"
        android:layout_gravity="center"
        android:layout_toRightOf="@+id/textView" android:layout_alignBaseline="@+id/textView"
        android:layout_marginLeft="5dp"/>
</RelativeLayout>
<RelativeLayou



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: