Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.35 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".MainActivity">
  8.  
  9.  
  10. <Button
  11. android:id="@+id/button3"
  12. android:layout_width="0dp"
  13. android:layout_height="wrap_content"
  14. android:layout_marginTop="8dp"
  15. android:layout_marginEnd="8dp"
  16. android:layout_marginRight="8dp"
  17. android:background="@color/colorAccent"
  18. android:text="Buy"
  19. android:textColor="@android:color/white"
  20. app:layout_constraintEnd_toEndOf="parent"
  21. app:layout_constraintEnd_toStartOf="@+id/guideline4"
  22. app:layout_constraintHorizontal_bias="0.5"
  23. app:layout_constraintStart_toEndOf="@+id/button4"
  24. app:layout_constraintTop_toBottomOf="@+id/imageView2" />
  25.  
  26. <Button
  27. android:id="@+id/button4"
  28. android:layout_width="0dp"
  29. android:layout_height="wrap_content"
  30. android:layout_marginStart="8dp"
  31. android:layout_marginLeft="8dp"
  32. android:layout_marginTop="8dp"
  33. android:layout_marginEnd="8dp"
  34. android:layout_marginRight="8dp"
  35. android:background="@color/colorAccent"
  36. android:text="Borrow"
  37. android:textColor="@android:color/white"
  38. app:layout_constraintEnd_toStartOf="@+id/button3"
  39. app:layout_constraintHorizontal_bias="0.5"
  40. app:layout_constraintStart_toStartOf="parent"
  41. app:layout_constraintTop_toBottomOf="@+id/imageView2" />
  42.  
  43. <ImageView
  44. android:id="@+id/imageView2"
  45. android:layout_width="0dp"
  46. android:layout_height="180dp"
  47. app:layout_constraintBottom_toBottomOf="@+id/imageView"
  48. app:layout_constraintDimensionRatio="w,340:335"
  49. app:layout_constraintEnd_toStartOf="@+id/guideline4"
  50. app:layout_constraintTop_toBottomOf="@+id/imageView"
  51. app:srcCompat="@drawable/cover" />
  52.  
  53.  
  54. <ImageView
  55. android:id="@+id/imageView"
  56. android:layout_width="0dp"
  57. android:layout_height="0dp"
  58. android:scaleType="centerCrop"
  59. app:layout_constraintDimensionRatio="2:1"
  60. app:layout_constraintEnd_toEndOf="parent"
  61. app:layout_constraintHorizontal_bias="0.0"
  62. app:layout_constraintStart_toStartOf="parent"
  63. app:layout_constraintTop_toTopOf="parent"
  64. app:srcCompat="@drawable/header" />
  65.  
  66. <ImageView
  67. android:id="@+id/imageView3"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:tint="#E91E63"
  71. app:layout_constraintStart_toStartOf="@+id/guideline3"
  72. app:layout_constraintTop_toBottomOf="@+id/imageView"
  73. app:srcCompat="@drawable/ic_bookmark_black_24dp" />
  74.  
  75. <TextView
  76. android:id="@+id/textView"
  77. android:layout_width="0dp"
  78. android:layout_height="wrap_content"
  79. android:layout_marginStart="8dp"
  80. android:layout_marginLeft="8dp"
  81. android:layout_marginTop="8dp"
  82. android:layout_marginEnd="8dp"
  83. android:layout_marginRight="8dp"
  84. android:text="نماذج من تراحم علماء المسلمين"
  85. android:textAppearance="@style/TextAppearance.AppCompat.Medium"
  86. android:textStyle="bold"
  87. app:layout_constraintEnd_toStartOf="@+id/imageView2"
  88. app:layout_constraintStart_toEndOf="@+id/imageView3"
  89. app:layout_constraintTop_toBottomOf="@+id/imageView" />
  90.  
  91. <TextView
  92. android:id="@+id/textView2"
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:layout_marginTop="8dp"
  96.  
  97. android:text="ربيع عبدالرؤوف الزواوي"
  98. app:layout_constraintEnd_toStartOf="@+id/imageView2"
  99. app:layout_constraintTop_toBottomOf="@+id/textView" />
  100.  
  101. <View
  102. android:id="@+id/divider"
  103. android:layout_width="match_parent"
  104. android:layout_height="1dp"
  105. android:layout_marginTop="16dp"
  106. android:background="?android:attr/listDivider"
  107. app:layout_constraintEnd_toStartOf="@+id/guideline4"
  108. app:layout_constraintStart_toStartOf="@+id/guideline3"
  109. app:layout_constraintTop_toBottomOf="@+id/button3" />
  110.  
  111. <androidx.constraintlayout.widget.Guideline
  112. android:id="@+id/guideline3"
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:orientation="vertical"
  116. app:layout_constraintGuide_percent="0.03" />
  117.  
  118. <androidx.constraintlayout.widget.Guideline
  119. android:id="@+id/guideline4"
  120. android:layout_width="wrap_content"
  121. android:layout_height="wrap_content"
  122. android:orientation="vertical"
  123. app:layout_constraintGuide_percent="0.969697" />
  124.  
  125. <com.google.android.material.floatingactionbutton.FloatingActionButton
  126. android:id="@+id/floatingActionButton4"
  127. android:layout_width="wrap_content"
  128. android:layout_height="wrap_content"
  129. android:clickable="true"
  130. app:layout_constraintEnd_toStartOf="@+id/floatingActionButton6"
  131. app:layout_constraintHorizontal_bias="0.5"
  132. app:layout_constraintStart_toEndOf="@+id/guideline3"
  133. app:layout_constraintTop_toTopOf="@+id/floatingActionButton5"
  134. app:srcCompat="@drawable/ic_star_black_24dp" />
  135.  
  136. <com.google.android.material.floatingactionbutton.FloatingActionButton
  137. android:id="@+id/floatingActionButton5"
  138. android:layout_width="wrap_content"
  139. android:layout_height="wrap_content"
  140. android:clickable="true"
  141. app:layout_constraintEnd_toStartOf="@+id/floatingActionButton7"
  142. app:layout_constraintHorizontal_bias="0.5"
  143. app:layout_constraintStart_toEndOf="@+id/floatingActionButton6"
  144. app:layout_constraintTop_toTopOf="@+id/floatingActionButton6"
  145. app:srcCompat="@drawable/ic_restore_black_24dp" />
  146.  
  147. <com.google.android.material.floatingactionbutton.FloatingActionButton
  148. android:id="@+id/floatingActionButton6"
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:clickable="true"
  152. app:layout_constraintEnd_toStartOf="@+id/floatingActionButton5"
  153. app:layout_constraintHorizontal_bias="0.5"
  154. app:layout_constraintStart_toEndOf="@+id/floatingActionButton4"
  155. app:layout_constraintTop_toTopOf="@+id/floatingActionButton7"
  156. app:srcCompat="@drawable/ic_book_black_24dp" />
  157.  
  158. <com.google.android.material.floatingactionbutton.FloatingActionButton
  159. android:id="@+id/floatingActionButton7"
  160. android:layout_width="wrap_content"
  161. android:layout_height="wrap_content"
  162. android:layout_marginTop="16dp"
  163. android:clickable="true"
  164. app:layout_constraintEnd_toEndOf="@+id/guideline4"
  165. app:layout_constraintHorizontal_bias="0.5"
  166. app:layout_constraintStart_toEndOf="@+id/floatingActionButton5"
  167. app:layout_constraintStart_toStartOf="@+id/guideline3"
  168. app:layout_constraintTop_toBottomOf="@+id/divider"
  169. app:srcCompat="@drawable/ic_rate_review_black_24dp" />
  170.  
  171. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement