Advertisement
Guest User

Untitled

a guest
May 30th, 2021
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.85 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.cardview.widget.CardView
  3. xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="wrap_content"
  4. android:orientation="horizontal"
  5. android:layout_height="wrap_content"
  6. android:id="@+id/cv"
  7. app:cardCornerRadius="15dp"
  8. android:layout_margin="5dp"
  9. android:elevation="10dp"
  10. xmlns:android="http://schemas.android.com/apk/res/android">
  11.  
  12. <androidx.constraintlayout.widget.ConstraintLayout
  13. android:id="@+id/test"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:background="@drawable/bg_rect_rounded"
  17. app:layout_constraintBottom_toTopOf="@+id/imageButton2"
  18. app:layout_constraintTop_toTopOf="@+id/imageButton2">
  19.  
  20. <com.github.siyamed.shapeimageview.mask.PorterShapeImageView
  21. android:id="@+id/porterShapeImageView"
  22. android:layout_width="match_parent"
  23. android:layout_height="100dp"
  24. android:scaleType="fitCenter"
  25. android:src="@drawable/wish_default_img"
  26. app:layout_constraintStart_toStartOf="parent"
  27. app:layout_constraintTop_toTopOf="parent"
  28. app:siShape="@drawable/shape_rounded_rectangle"
  29. app:siSquare="true" />
  30. <!--
  31. android:adjustViewBounds="true"
  32. -->
  33. <ImageButton
  34. android:id="@+id/imageButton"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:layout_marginTop="20dp"
  38. android:background="@drawable/ic_yae"
  39. app:layout_constraintStart_toStartOf="@+id/imageButton2"
  40. app:layout_constraintTop_toTopOf="parent" />
  41.  
  42. <ImageView
  43. android:id="@+id/dellAdvert"
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:visibility="visible"
  47. app:layout_constraintStart_toStartOf="parent"
  48. app:layout_constraintTop_toTopOf="parent"
  49. app:srcCompat="@drawable/ic_error" />
  50.  
  51. <ImageView
  52. android:id="@+id/editAdvert"
  53. android:layout_width="32dp"
  54. android:layout_height="32dp"
  55. android:visibility="visible"
  56. app:layout_constraintBottom_toBottomOf="parent"
  57. app:layout_constraintStart_toStartOf="parent"
  58. app:srcCompat="@drawable/ic_pencil" />
  59.  
  60. <ImageButton
  61. android:id="@+id/imageButton3"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:layout_marginStart="8dp"
  65. android:layout_marginTop="18dp"
  66. android:background="@drawable/ic_bissnes"
  67. app:layout_constraintStart_toEndOf="@+id/porterShapeImageView"
  68. app:layout_constraintTop_toBottomOf="@+id/imageButton2" />
  69.  
  70. <ImageButton
  71. android:id="@+id/imageButton2"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:layout_marginStart="8dp"
  75. android:layout_marginTop="18dp"
  76. android:layout_marginBottom="25dp"
  77. android:background="@drawable/ic_hart"
  78. app:layout_constraintBottom_toBottomOf="parent"
  79. app:layout_constraintStart_toEndOf="@+id/porterShapeImageView"
  80. app:layout_constraintTop_toTopOf="parent"
  81. app:layout_constraintVertical_bias="0.591" />
  82.  
  83. <TextView
  84. android:id="@+id/periodRents"
  85. android:layout_width="wrap_content"
  86. android:layout_height="wrap_content"
  87. android:layout_marginStart="4dp"
  88. android:layout_marginEnd="8dp"
  89. android:text="3"
  90. android:textColor="#030202"
  91. android:textSize="12sp"
  92. app:layout_constraintBottom_toBottomOf="@+id/imageButton3"
  93. app:layout_constraintEnd_toEndOf="parent"
  94. app:layout_constraintStart_toEndOf="@+id/imageButton3"
  95. app:layout_constraintTop_toTopOf="@+id/imageButton3" />
  96.  
  97. <TextView
  98. android:id="@+id/textView4"
  99. android:layout_width="wrap_content"
  100. android:layout_height="wrap_content"
  101. android:layout_marginStart="4dp"
  102. android:layout_marginEnd="8dp"
  103. android:text="20"
  104. android:textColor="#030202"
  105. android:textSize="12sp"
  106. app:layout_constraintBottom_toBottomOf="@+id/imageButton"
  107. app:layout_constraintEnd_toEndOf="parent"
  108. app:layout_constraintStart_toEndOf="@+id/imageButton"
  109. app:layout_constraintTop_toTopOf="@+id/imageButton" />
  110.  
  111. <TextView
  112. android:id="@+id/textView5"
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:layout_marginStart="4dp"
  116. android:layout_marginEnd="8dp"
  117. android:text="7"
  118. android:textColor="#030202"
  119. android:textSize="12sp"
  120. app:layout_constraintBottom_toBottomOf="@+id/imageButton2"
  121. app:layout_constraintEnd_toEndOf="parent"
  122. app:layout_constraintStart_toEndOf="@+id/imageButton2"
  123. app:layout_constraintTop_toTopOf="@+id/imageButton2" />
  124.  
  125. </androidx.constraintlayout.widget.ConstraintLayout>
  126. </androidx.cardview.widget.CardView>
  127.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement