Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="10dp">
- <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
- android:layout_marginLeft="10dp">
- <TextView
- android:id="@+id/txtSender"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:text="Sender Ipsum"
- android:textSize="16sp"
- android:singleLine="true"
- android:layout_alignParentRight="true"
- android:paddingRight="10dp"
- android:paddingBottom="6dp"
- android:textColor="@android:color/black" android:textStyle="bold"/>
- <TextView
- android:id="@+id/txtDate"
- android:layout_alignParentLeft="true"
- android:textColor="@color/sinch_purple"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingLeft="2dp"
- android:paddingBottom="6dp"
- android:textSize="12sp"
- android:text="14:54"
- android:layout_alignBottom="@+id/txtSender"
- />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/txtSender"
- android:layout_alignParentRight="true"
- android:padding="12dp"
- android:background="@drawable/purple_bubble"
- >
- <TextView
- android:id="@+id/txtMessage"
- android:paddingRight="12dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:textColor="@android:color/white"
- android:textSize="14sp"
- android:text="Hello, how are you?"
- />
- </RelativeLayout>
- </RelativeLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement