app_bar.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.google.android.material.appbar.AppBarLayout 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:id="@+id/app_bar_layout"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content"
  8. android:theme="@style/AppBarOverlay">
  9. <com.google.android.material.appbar.MaterialToolbar
  10. android:id="@+id/gdt_toolbar"
  11. android:layout_width="match_parent"
  12. android:layout_height="?attr/actionBarSize"
  13. android:layout_gravity="center_vertical"
  14. android:background="@color/colorPrimary"
  15. app:popupTheme="@style/PopupOverlay">
  16. <androidx.constraintlayout.widget.ConstraintLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent">
  19. <ImageView
  20. android:id="@+id/iv_logo"
  21. android:layout_width="wrap_content"
  22. android:layout_height="0dp"
  23. android:layout_marginTop="4dp"
  24. android:layout_marginBottom="4dp"
  25. android:adjustViewBounds="true"
  26. android:scaleType="fitXY"
  27. android:src="@drawable/ic_launcher"
  28. app:layout_constraintBottom_toBottomOf="parent"
  29. app:layout_constraintStart_toStartOf="parent"
  30. app:layout_constraintTop_toTopOf="parent" />
  31. <TextView
  32. android:id="@+id/tv_user_id"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_marginStart="4dp"
  36. android:textColor="@color/color_white"
  37. app:layout_constraintBottom_toTopOf="@+id/tv_amount"
  38. app:layout_constraintStart_toEndOf="@id/iv_logo"
  39. app:layout_constraintTop_toTopOf="@id/iv_logo"
  40. app:layout_constraintVertical_chainStyle="packed"
  41. tools:text="AABBTEAC006" />
  42. <ImageView
  43. android:id="@+id/iv_person"
  44. android:layout_width="20dp"
  45. android:layout_height="20dp"
  46. android:adjustViewBounds="true"
  47. android:scaleType="fitXY"
  48. android:src="@drawable/ic_person"
  49. app:layout_constraintStart_toEndOf="@+id/tv_user_id"
  50. app:layout_constraintTop_toTopOf="@+id/tv_user_id" />
  51. <TextView
  52. android:id="@+id/tv_person_amount"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:layout_marginStart="12dp"
  56. android:layout_marginTop="12dp"
  57. android:shadowColor="#000000"
  58. android:shadowDx="1.5"
  59. android:shadowDy="1.3"
  60. android:shadowRadius="1.6"
  61. android:text="2"
  62. android:textColor="@color/color_white"
  63. android:textStyle="bold"
  64. android:visibility="invisible"
  65. app:layout_constraintBottom_toBottomOf="@+id/iv_person"
  66. app:layout_constraintStart_toStartOf="@id/iv_person"
  67. app:layout_constraintTop_toTopOf="@id/iv_person" />
  68. <TextView
  69. android:id="@+id/tv_amount"
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:textColor="@color/color_white"
  73. app:layout_constraintBottom_toBottomOf="@+id/iv_logo"
  74. app:layout_constraintStart_toStartOf="@id/tv_user_id"
  75. app:layout_constraintTop_toBottomOf="@id/tv_user_id"
  76. app:layout_constraintVertical_chainStyle="packed"
  77. tools:text="1,000,000" />
  78. <ImageView
  79. android:id="@+id/iv_auto_new"
  80. android:layout_width="wrap_content"
  81. android:layout_height="0dp"
  82. android:adjustViewBounds="true"
  83. android:background="?attr/selectableItemBackgroundBorderless"
  84. android:clickable="true"
  85. android:focusable="true"
  86. android:scaleType="fitXY"
  87. android:src="@drawable/ic_auto_new"
  88. app:layout_constraintBottom_toBottomOf="@+id/tv_amount"
  89. app:layout_constraintStart_toEndOf="@+id/tv_amount"
  90. app:layout_constraintTop_toTopOf="@+id/tv_amount" />
  91. <ImageView
  92. android:id="@+id/iv_setting"
  93. android:layout_width="24dp"
  94. android:layout_height="wrap_content"
  95. android:layout_marginEnd="8dp"
  96. android:adjustViewBounds="true"
  97. android:background="?attr/selectableItemBackgroundBorderless"
  98. android:clickable="true"
  99. android:focusable="true"
  100. android:scaleType="fitXY"
  101. android:src="@drawable/ic_setting"
  102. app:layout_constraintBottom_toBottomOf="@+id/iv_logo"
  103. app:layout_constraintEnd_toEndOf="parent"
  104. app:layout_constraintTop_toTopOf="@id/iv_logo"
  105. app:layout_constraintVertical_chainStyle="packed" />
  106. <ImageView
  107. android:id="@+id/iv_sound"
  108. android:layout_width="24dp"
  109. android:layout_height="wrap_content"
  110. android:layout_marginEnd="8dp"
  111. android:adjustViewBounds="true"
  112. android:background="?attr/selectableItemBackgroundBorderless"
  113. android:clickable="true"
  114. android:focusable="true"
  115. android:scaleType="fitXY"
  116. android:src="@drawable/ic_unmute"
  117. app:layout_constraintBottom_toBottomOf="@+id/iv_logo"
  118. app:layout_constraintEnd_toStartOf="@+id/iv_setting"
  119. app:layout_constraintTop_toTopOf="@id/iv_logo" />
  120. <ImageView
  121. android:id="@+id/iv_report"
  122. android:layout_width="24dp"
  123. android:layout_height="wrap_content"
  124. android:layout_marginEnd="8dp"
  125. android:adjustViewBounds="true"
  126. android:background="?attr/selectableItemBackgroundBorderless"
  127. android:clickable="true"
  128. android:focusable="true"
  129. android:scaleType="fitXY"
  130. android:src="@drawable/ic_report"
  131. app:layout_constraintBottom_toBottomOf="@+id/iv_logo"
  132. app:layout_constraintEnd_toStartOf="@+id/iv_sound"
  133. app:layout_constraintTop_toTopOf="@id/iv_logo" />
  134. <androidx.constraintlayout.widget.Group
  135. android:id="@+id/group_toolbar_icons"
  136. android:layout_width="wrap_content"
  137. android:layout_height="wrap_content"
  138. app:constraint_referenced_ids="iv_report,iv_setting,iv_sound" />
  139. </androidx.constraintlayout.widget.ConstraintLayout>
  140. </com.google.android.material.appbar.MaterialToolbar>
  141. </com.google.android.material.appbar.AppBarLayout>