Advertisement
Guest User

Untitled

a guest
Jul 16th, 2020
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.35 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto">
  5. <com.google.android.material.card.MaterialCardView
  6. android:id="@+id/orderItemCard"
  7. style="@style/order_item_card"
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. app:rippleColor="@color/colorGrey"
  11. app:cardBackgroundColor="@color/colorWhite"
  12. app:cardElevation="4dp">
  13.  
  14. <androidx.constraintlayout.widget.ConstraintLayout
  15. android:layout_width="match_parent"
  16. android:padding="12dp"
  17. android:layout_height="wrap_content">
  18. <TextView
  19. android:id="@+id/date"
  20. android:text="2020-02-01"
  21. app:layout_constraintStart_toStartOf="parent"
  22. app:layout_constraintTop_toTopOf="parent"
  23. style="@style/order_list_card_additional" />
  24.  
  25. <TextView
  26. android:id="@+id/status"
  27. android:text="В работе"
  28. app:layout_constraintEnd_toEndOf="parent"
  29. app:layout_constraintTop_toTopOf="parent"
  30. style="@style/order_list_card_additional" />
  31.  
  32. <TextView
  33. android:id="@+id/order_no_label"
  34. android:text="@string/order_no"
  35. app:layout_constraintStart_toStartOf="parent"
  36. app:layout_constraintTop_toBottomOf="@id/date"
  37. style="@style/order_list_card_number" />
  38. <TextView
  39. android:id="@+id/order_no"
  40. android:text="12345"
  41. app:layout_constraintStart_toEndOf="@id/order_no_label"
  42. app:layout_constraintTop_toBottomOf="@id/date"
  43. style="@style/order_list_card_number" />
  44.  
  45. <TextView
  46. android:id="@+id/userNameLabel"
  47. android:text="@string/customer"
  48. app:layout_constraintStart_toStartOf="parent"
  49. app:layout_constraintTop_toBottomOf="@id/order_no"
  50. style="@style/order_list_item_label" />
  51.  
  52. <TextView
  53. android:id="@+id/companyNameLabel"
  54. android:text="@string/company"
  55. app:layout_constraintStart_toEndOf="@id/userNameLabel"
  56. app:layout_constraintTop_toBottomOf="@id/order_no"
  57. android:layout_marginStart="@dimen/margin_vertical_biggest"
  58. style="@style/order_list_item_label" />
  59.  
  60. <TextView
  61. android:id="@+id/companyName"
  62. android:text="ООО Рога и копыта"
  63. app:layout_constraintStart_toEndOf="@id/userNameLabel"
  64. app:layout_constraintTop_toBottomOf="@id/companyNameLabel"
  65. android:layout_marginStart="@dimen/margin_vertical_biggest"
  66. style="@style/order_list_item_value" />
  67.  
  68. <TextView
  69. android:id="@+id/userName"
  70. android:text="Иван Иванович"
  71. app:layout_constraintStart_toStartOf="parent"
  72. app:layout_constraintTop_toBottomOf="@id/userNameLabel"
  73. style="@style/order_list_item_value" />
  74.  
  75. <LinearLayout
  76. android:id="@+id/goodsWrapper"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:orientation="vertical"
  80. android:layout_marginTop="@dimen/margin_vertical"
  81. app:layout_constraintTop_toBottomOf="@id/companyName">
  82.  
  83. <View
  84. android:id="@+id/divider"
  85. android:layout_width="match_parent"
  86. android:layout_height="1dp"
  87. android:background="@color/colorGrey"
  88. />
  89.  
  90. <TextView
  91. android:id="@+id/goodsLabel"
  92. android:text="@string/order_items"
  93. style="@style/order_list_item_label" />
  94.  
  95. <TextView
  96. android:id="@+id/goodsName"
  97. android:text="Навоз 100Кг"
  98. style="@style/order_list_item_value" />
  99.  
  100. <TextView
  101. android:id="@+id/moreGoodsLabel"
  102. android:text="+ еще 5 товаров"
  103. style="@style/order_list_card_additional" />
  104.  
  105. <LinearLayout
  106. android:id="@+id/total_wrapper"
  107. android:layout_width="match_parent"
  108. android:layout_height="wrap_content"
  109. android:layout_marginTop="@dimen/margin_vertical"
  110. android:orientation="horizontal">
  111. <TextView
  112. android:text="@string/price"
  113. style="@style/order_list_item_price" />
  114.  
  115. <TextView
  116. android:id="@+id/total"
  117. android:text="34 000 руб."
  118. style="@style/order_list_item_price_value" />
  119. </LinearLayout>
  120. </LinearLayout>
  121. </androidx.constraintlayout.widget.ConstraintLayout>
  122. </com.google.android.material.card.MaterialCardView>
  123. </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement