Guest User

fragment_swiper.xml

a guest
Dec 8th, 2019
527
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/swiper_container"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:gravity="center"
  7. android:orientation="vertical">
  8.  
  9. <TextView
  10. android:id="@+id/swiper_item_girl_name"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:layout_alignParentLeft="true"
  14. android:gravity="left"
  15. android:layout_marginLeft="40dp"
  16. android:text="Карен Гиллан"
  17. android:maxLines="1"
  18. android:ellipsize="end"
  19. android:layout_alignParentTop="true"
  20. android:textStyle="bold"
  21. android:textColor="@color/colorAccent"
  22. android:textSize="33dp" />
  23. <TextView
  24. android:id="@+id/swiper_item_girl_name_next"
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content"
  27. android:layout_alignParentLeft="true"
  28. android:gravity="left"
  29. android:layout_marginLeft="40dp"
  30. android:text="Карен Гиллан"
  31. android:maxLines="1"
  32. android:ellipsize="end"
  33. android:layout_alignParentTop="true"
  34. android:textStyle="bold"
  35. android:textColor="@color/colorAccent"
  36. android:visibility="gone"
  37. android:textSize="33dp" />
  38.  
  39. <ImageView
  40. android:id="@+id/swiper_instagram_icon"
  41. android:layout_below="@+id/swiper_item_girl_name"
  42. android:layout_marginLeft="40dp"
  43. android:layout_marginTop="5dp"
  44. android:layout_marginBottom="5dp"
  45. android:layout_width="30dp"
  46. android:layout_height="30dp"
  47. android:layout_gravity="center"
  48. android:src="@drawable/instagram_bold"
  49. android:layout_marginRight="8dp"
  50. />
  51. <TextView
  52. android:id="@+id/swiper_item_girl_url"
  53. android:layout_toRightOf="@id/swiper_instagram_icon"
  54. android:layout_below="@+id/swiper_item_girl_name"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:layout_marginTop="2dp"
  58. android:maxLines="1"
  59. android:ellipsize="end"
  60. android:paddingRight="10dp"
  61. android:text="karenguillan"
  62. android:textColor="@color/colorBlack"
  63. android:textSize="23dp" />
  64. <TextView
  65. android:id="@+id/swiper_item_girl_url_next"
  66. android:layout_toRightOf="@id/swiper_instagram_icon"
  67. android:layout_below="@+id/swiper_item_girl_name"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_marginTop="2dp"
  71. android:maxLines="1"
  72. android:ellipsize="end"
  73. android:paddingRight="10dp"
  74. android:text="karenguillan"
  75. android:textColor="@color/colorBlack"
  76. android:visibility="gone"
  77. android:textSize="23dp" />
  78.  
  79. <Button
  80. android:id="@+id/swiper_ban_girl_inst"
  81. android:layout_width="80dp"
  82. android:layout_height="40dp"
  83. android:layout_below="@+id/swiper_item_girl_name"
  84. android:layout_marginLeft="15dp"
  85. android:layout_marginRight="15dp"
  86. android:layout_toRightOf="@id/swiper_item_girl_url"
  87. android:background="@drawable/ellipse_button_ban"
  88. android:fontFamily="@font/made_evolve_sans_bold"
  89. android:gravity="center"
  90. android:includeFontPadding="false"
  91. android:text="Ban inst"
  92. android:textAllCaps="false"
  93. android:textColor="@android:color/background_dark"
  94. android:textSize="20dp"
  95. android:textStyle="bold" />
  96.  
  97. <Button
  98. android:id="@+id/swiper_ban_girl_photo"
  99. android:layout_width="80dp"
  100. android:layout_height="40dp"
  101. android:layout_below="@+id/swiper_item_girl_name"
  102. android:layout_marginLeft="15dp"
  103. android:layout_marginRight="15dp"
  104. android:layout_toRightOf="@id/swiper_ban_girl_inst"
  105. android:background="@drawable/ellipse_button_ban"
  106. android:fontFamily="@font/made_evolve_sans_bold"
  107. android:gravity="center"
  108. android:includeFontPadding="false"
  109. android:text="Ban inst"
  110. android:textAllCaps="false"
  111. android:textColor="@android:color/background_dark"
  112. android:textSize="20dp"
  113. android:textStyle="bold" />
  114.  
  115. <ImageView
  116. android:id="@+id/swiper_university_icon"
  117. android:layout_width="30dp"
  118. android:layout_height="30dp"
  119. android:layout_marginLeft="40dp"
  120. android:layout_gravity="center"
  121. android:layout_below="@+id/swiper_instagram_icon"
  122. android:src="@drawable/university"
  123. android:layout_marginRight="8dp"
  124. />
  125. <TextView
  126. android:id="@+id/swiper_item_girl_university"
  127. android:layout_below="@id/swiper_instagram_icon"
  128. android:layout_toRightOf="@id/swiper_university_icon"
  129. android:layout_width="match_parent"
  130. android:layout_height="wrap_content"
  131. android:paddingRight="10dp"
  132. android:maxLines="1"
  133. android:ellipsize="end"
  134. android:text="СПбГЭУ"
  135. android:textColor="@color/colorBlack"
  136. android:textSize="23dp" />
  137. <TextView
  138. android:id="@+id/swiper_item_girl_university_next"
  139. android:layout_below="@id/swiper_instagram_icon"
  140. android:layout_toRightOf="@id/swiper_university_icon"
  141. android:layout_width="match_parent"
  142. android:layout_height="wrap_content"
  143. android:paddingRight="10dp"
  144. android:maxLines="1"
  145. android:ellipsize="end"
  146. android:text="СПбГЭУ"
  147. android:textColor="@color/colorBlack"
  148. android:visibility="gone"
  149. android:textSize="23dp" />
  150.  
  151. <ImageView
  152. android:id="@+id/swiper_item_girl_pic"
  153. android:layout_below="@+id/swiper_university_icon"
  154. android:layout_width="match_parent"
  155. android:layout_height="wrap_content"
  156. android:scaleType="centerCrop"
  157. android:adjustViewBounds="true"
  158. android:layout_marginTop="10dp"
  159. android:layout_centerHorizontal="true"
  160. android:layout_marginLeft="40dp"
  161. android:layout_marginRight="40dp"
  162. android:src="@drawable/black_square" />
  163.  
  164. <ImageView
  165. android:id="@+id/swiper_item_girl_pic_next"
  166. android:layout_width="match_parent"
  167. android:layout_height="wrap_content"
  168. android:layout_below="@+id/swiper_university_icon"
  169. android:layout_centerHorizontal="true"
  170. android:layout_marginLeft="40dp"
  171. android:layout_marginTop="10dp"
  172. android:layout_marginRight="40dp"
  173. android:adjustViewBounds="true"
  174. android:scaleType="centerCrop"
  175. android:src="@drawable/black_square"
  176. android:visibility="gone" />
  177.  
  178. <LinearLayout
  179. android:id="@+id/swiper_pick_container"
  180. android:layout_width="match_parent"
  181. android:layout_height="wrap_content"
  182. android:layout_below="@+id/swiper_item_girl_pic"
  183. android:layout_alignParentBottom="true"
  184. android:gravity="center"
  185. android:orientation="horizontal">
  186.  
  187. <ImageView
  188. android:id="@+id/swiper_like_button"
  189. android:layout_width="110dp"
  190. android:layout_height="65dp"
  191. android:layout_marginRight="30dp"
  192. android:background="@drawable/borders_filled"
  193. android:gravity="center"
  194. android:padding="10dp"
  195. android:src="@drawable/like" />
  196.  
  197. <ImageView
  198. android:id="@+id/swiper_dislike_button"
  199. android:layout_width="110dp"
  200. android:layout_height="65dp"
  201. android:background="@drawable/borders_filled"
  202. android:gravity="center"
  203. android:padding="10dp"
  204. android:src="@drawable/dislike" />
  205.  
  206. </LinearLayout>
  207.  
  208. </RelativeLayout>
RAW Paste Data