detail_cell_container.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. <TextView
  8. android:id="@+id/tv_service"
  9. android:layout_width="0dp"
  10. android:layout_height="wrap_content"
  11. android:layout_marginStart="10dp"
  12. android:layout_marginEnd="13dp"
  13. android:gravity="right"
  14. android:text="service"
  15. app:layout_constraintEnd_toEndOf="parent"
  16. app:layout_constraintStart_toEndOf="@+id/tv_container_no"
  17. app:layout_constraintTop_toTopOf="@+id/tv_container_no" />
  18. <TextView
  19. android:id="@+id/tv_container_no"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_marginStart="13dp"
  23. android:layout_marginTop="8dp"
  24. android:text="Container#"
  25. app:layout_constraintStart_toStartOf="parent"
  26. app:layout_constraintTop_toTopOf="parent" />
  27. <ImageView
  28. android:id="@+id/iv_container_blank"
  29. android:layout_width="50dp"
  30. android:layout_height="50dp"
  31. android:layout_marginTop="8dp"
  32. app:layout_constraintStart_toStartOf="@+id/tv_container_no"
  33. app:layout_constraintTop_toBottomOf="@+id/tv_container_no"
  34. app:srcCompat="@drawable/ic_container_blank" />
  35. <LinearLayout
  36. android:layout_width="0dp"
  37. android:layout_height="0dp"
  38. android:layout_marginStart="10dp"
  39. android:orientation="vertical"
  40. app:layout_constraintBottom_toBottomOf="@+id/iv_container_blank"
  41. app:layout_constraintEnd_toEndOf="@+id/tv_service"
  42. app:layout_constraintStart_toEndOf="@+id/iv_container_blank"
  43. app:layout_constraintTop_toTopOf="@+id/iv_container_blank">
  44. <LinearLayout
  45. android:layout_width="match_parent"
  46. android:layout_height="match_parent"
  47. android:layout_weight="1"
  48. android:orientation="horizontal">
  49. <LinearLayout
  50. android:layout_width="match_parent"
  51. android:layout_height="match_parent"
  52. android:orientation="horizontal">
  53. <TextView
  54. android:id="@+id/tv_qty"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_weight="1"
  58. android:ellipsize="end"
  59. android:singleLine="true"
  60. android:text="QTY" />
  61. <TextView
  62. android:id="@+id/tv_cbm"
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:layout_weight="1"
  66. android:ellipsize="end"
  67. android:singleLine="true"
  68. android:text="CBM" />
  69. </LinearLayout>
  70. </LinearLayout>
  71. <LinearLayout
  72. android:layout_width="match_parent"
  73. android:layout_height="match_parent"
  74. android:layout_weight="1"
  75. android:orientation="horizontal">
  76. <LinearLayout
  77. android:layout_width="match_parent"
  78. android:layout_height="match_parent"
  79. android:orientation="horizontal">
  80. <TextView
  81. android:id="@+id/tv_weight"
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:layout_weight="1"
  85. android:ellipsize="end"
  86. android:singleLine="true"
  87. android:text="Weight" />
  88. <TextView
  89. android:id="@+id/tv_seal_no"
  90. android:layout_width="match_parent"
  91. android:layout_height="wrap_content"
  92. android:layout_weight="1"
  93. android:ellipsize="end"
  94. android:singleLine="true"
  95. android:text="Seal No" />
  96. </LinearLayout>
  97. </LinearLayout>
  98. </LinearLayout>
  99. <TextView
  100. android:id="@+id/tv_size"
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:layout_marginStart="10dp"
  104. android:layout_marginTop="3dp"
  105. android:layout_marginBottom="2dp"
  106. android:text="size"
  107. android:textColor="@color/TFRed"
  108. android:textSize="10sp"
  109. app:layout_constraintBottom_toBottomOf="@+id/iv_container_blank"
  110. app:layout_constraintEnd_toEndOf="@+id/iv_container_blank"
  111. app:layout_constraintStart_toStartOf="@+id/iv_container_blank"
  112. app:layout_constraintTop_toTopOf="@+id/iv_container_blank" />
  113. </androidx.constraintlayout.widget.ConstraintLayout>