detail_cell_container.xml 4.9 KB

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