Advertisement
adefajrariav

Untitled

Aug 5th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:padding="10dp">
  7.  
  8. <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
  9. android:layout_marginLeft="10dp">
  10. <TextView
  11. android:id="@+id/txtSender"
  12. android:layout_width="wrap_content"
  13. android:layout_height="wrap_content"
  14. android:layout_alignParentTop="true"
  15. android:text="Sender Ipsum"
  16. android:textSize="16sp"
  17. android:singleLine="true"
  18. android:layout_alignParentRight="true"
  19. android:paddingRight="10dp"
  20. android:paddingBottom="6dp"
  21. android:textColor="@android:color/black" android:textStyle="bold"/>
  22.  
  23. <TextView
  24. android:id="@+id/txtDate"
  25. android:layout_alignParentLeft="true"
  26. android:textColor="@color/sinch_purple"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:paddingLeft="2dp"
  30. android:paddingBottom="6dp"
  31. android:textSize="12sp"
  32. android:text="14:54"
  33. android:layout_alignBottom="@+id/txtSender"
  34. />
  35.  
  36. <RelativeLayout
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:layout_below="@+id/txtSender"
  40. android:layout_alignParentRight="true"
  41. android:padding="12dp"
  42. android:background="@drawable/purple_bubble"
  43. >
  44.  
  45. <TextView
  46. android:id="@+id/txtMessage"
  47. android:paddingRight="12dp"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:layout_alignParentRight="true"
  51. android:textColor="@android:color/white"
  52. android:textSize="14sp"
  53. android:text="Hello, how are you?"
  54. />
  55.  
  56. </RelativeLayout>
  57. </RelativeLayout>
  58. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement