Advertisement
Guest User

Untitled

a guest
Oct 20th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:padding="2dp">
  6. <ImageView
  7. android:id="@+id/profile_pic"
  8. android:layout_width="70dp"
  9. android:layout_height="70dp"
  10. android:contentDescription="desc"
  11. android:paddingLeft="10dp"
  12. android:paddingRight="10dp" />
  13.  
  14. <TextView
  15. android:id="@+id/alias"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_marginTop="10dp"
  19. android:layout_toRightOf="@+id/profile_pic"
  20. android:paddingBottom="10dp"
  21. android:text="txt"
  22. android:textSize="20sp" />
  23.  
  24. <TextView
  25. android:id="@+id/public_name"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:text="txt"
  29. android:textSize="16sp"
  30. android:layout_below="@+id/alias"
  31. android:layout_toEndOf="@+id/profile_pic" />
  32.  
  33. <TextView
  34. android:id="@+id/contact_type"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:text="txt"
  38. android:textSize="16sp"
  39. android:layout_alignBottom="@+id/alias"
  40. android:layout_alignParentEnd="true" />
  41. </RelativeLayout>
  42.  
  43. <?xml version="1.0" encoding="utf-8"?>
  44. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  45. xmlns:tools="http://schemas.android.com/tools"
  46. xmlns:app="http://schemas.android.com/apk/res-auto"
  47. android:layout_width="match_parent"
  48. android:layout_height="match_parent">
  49.  
  50. <RelativeLayout
  51. android:layout_width="match_parent"
  52. android:layout_height="match_parent">
  53.  
  54. <android.support.v7.widget.Toolbar
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:background="?attr/colorPrimary"
  58. android:theme="?attr/actionBarTheme"
  59. android:minHeight="?attr/actionBarSize"
  60. android:id="@+id/main_toolbar" />
  61.  
  62. <ImageButton
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. app:srcCompat="@drawable/ic_locked"
  66. android:layout_alignParentTop="true"
  67. android:layout_alignParentStart="true"
  68. android:layout_marginStart="13dp"
  69. android:id="@+id/btn_lock" />
  70.  
  71. <ListView
  72. android:layout_width="match_parent"
  73. android:layout_height="match_parent"
  74. android:layout_below="@+id/main_toolbar"
  75. android:layout_alignParentStart="true"
  76. android:id="@+id/contact_list" />
  77.  
  78. </RelativeLayout>
  79.  
  80. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement