Guest User

Untitled

a guest
Feb 19th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. <RelativeLayout
  2. android:layout_width="match_parent"
  3. android:layout_height="wrap_content"
  4. android:layout_margin="10dp"
  5. android:background="@drawable/foodvitebackground">
  6.  
  7. <TextView
  8. android:id="@+id/invitename"
  9. android:layout_width="wrap_content"
  10. android:layout_height="wrap_content"
  11. android:textSize="18dp"
  12. android:textColor="@color/adsd"
  13. android:text="fasf"
  14. android:layout_marginTop="10dp"
  15. android:layout_marginLeft="15dp"/>
  16.  
  17. <TextView
  18. android:id="@+id/name"
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:layout_below="@+id/invitename"
  22. android:layout_marginTop="8dp"
  23. android:layout_marginLeft="15dp"
  24. android:layout_toLeftOf="@+id/profileimage"
  25. android:gravity="left"
  26. android:textColor="@color/foodvite_invitename"
  27. android:textSize="20dp"
  28. android:text="Fill-a Pita"/>
  29.  
  30. <TextView
  31. android:id="@+id/jJoinTime"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:layout_below="@+id/name"
  35. android:layout_marginTop="8dp"
  36. android:layout_marginLeft="15dp"
  37. android:textSize="12dp"
  38. android:text="Today,8:30PM"
  39. android:textColor="@color/joinTime"/>
  40.  
  41. <com.mikhaellopez.circularimageview.CircularImageView
  42. android:id="@+id/profileimage"
  43. android:layout_width="@dimen/hundred_dp"
  44. android:layout_height="@dimen/hundred_dp"
  45. android:layout_alignParentRight="true"
  46. android:layout_centerVertical="true"
  47. android:layout_marginRight="15dp"
  48. android:scaleType="fitCenter"/>
  49.  
  50. <TextView
  51. android:id="@+id/invitescount"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:text="20"
  55. android:textColor="@color/white"
  56. android:paddingLeft="3dp"
  57. android:paddingRight="3dp"
  58. android:background="@drawable/ret"
  59. android:layout_marginBottom="15dp"
  60. android:layout_marginRight="15dp"
  61. android:layout_alignBottom="@+id/message"
  62. android:layout_alignRight="@+id/profileimage"
  63. android:layout_alignEnd="@+id/profileimage"/>
  64.  
  65. <View
  66. android:id="@+id/leftbar"
  67. android:layout_width="6dp"
  68. android:layout_height="match_parent"
  69. android:layout_alignParentLeft="true"
  70. android:background="@drawable/foodviterespoded"/>
  71.  
  72. </RelativeLayout>
  73.  
  74. <View
  75. android:id="@+id/leftbar"
  76. android:layout_width="6dp"
  77. android:layout_height="wrap_content"
  78. android:layout_alignParentLeft="true"
  79. android:layout_alignTop="@+id/invitename"
  80. android:layout_alignBottom="@+id/jJoinTime"
  81. android:background="@drawable/foodviterespoded"/>
  82.  
  83. itemView.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);
  84. height = itemView.getMeasuredHeight();
  85.  
  86. RelativeLayout.LayoutParams divParams = (RelativeLayout.LayoutParams)
  87. divider.getLayoutParams();
  88. divParams.height = height;//Add any top or bottom margin(in pixel) specified
  89. divider.setLayoutParams(divParams);
Add Comment
Please, Sign In to add comment