action_bar.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  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="@dimen/action_bar_height"
  8. android:background="@color/CFFFFFF"
  9. android:gravity="center_vertical"
  10. android:orientation="vertical">
  11. <LinearLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. android:gravity="center_vertical"
  15. android:paddingStart="14dp"
  16. android:paddingEnd="8dp"
  17. >
  18. <android.support.constraint.ConstraintLayout
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content">
  21. <ImageView
  22. android:id="@+id/button_back"
  23. android:layout_width="35dp"
  24. android:layout_height="35dp"
  25. android:paddingStart="10dp"
  26. android:paddingTop="10dp"
  27. android:paddingEnd="10dp"
  28. android:paddingBottom="10dp"
  29. app:srcCompat="@drawable/icon_header_back"/>
  30. <ImageView
  31. android:id="@+id/image_bi"
  32. android:layout_width="62dp"
  33. android:layout_height="15dp"
  34. android:layout_marginStart="19dp"
  35. android:layout_marginTop="8dp"
  36. android:layout_marginEnd="8dp"
  37. android:layout_marginBottom="8dp"
  38. app:layout_constraintBottom_toBottomOf="parent"
  39. app:layout_constraintEnd_toEndOf="parent"
  40. app:layout_constraintStart_toStartOf="@+id/button_back"
  41. app:layout_constraintTop_toTopOf="parent"
  42. app:srcCompat="@drawable/ic_bi_header_black"/>
  43. </android.support.constraint.ConstraintLayout>
  44. <TextView
  45. android:id="@+id/action_bar_title"
  46. android:layout_width="0dp"
  47. android:layout_height="56dp"
  48. android:layout_marginStart="8dp"
  49. android:layout_marginEnd="18dp"
  50. android:layout_weight="1"
  51. android:gravity="center"
  52. android:textColor="@color/C000000"
  53. android:textSize="18sp"
  54. tools:text="action bar title"
  55. />
  56. <ImageView
  57. android:id="@+id/button_search"
  58. android:layout_width="34dp"
  59. android:layout_height="34dp"
  60. android:paddingStart="9dp"
  61. android:paddingTop="9dp"
  62. android:paddingEnd="9dp"
  63. android:paddingBottom="9dp"
  64. app:layout_constraintBottom_toBottomOf="parent"
  65. app:layout_constraintEnd_toStartOf="@+id/button_menu"
  66. app:layout_constraintTop_toTopOf="parent"
  67. app:srcCompat="@drawable/ic_icon_header_search"/>
  68. <ImageView
  69. android:id="@+id/button_menu"
  70. android:layout_width="38dp"
  71. android:layout_height="38dp"
  72. android:paddingStart="9dp"
  73. android:paddingTop="9dp"
  74. android:paddingEnd="9dp"
  75. android:paddingBottom="9dp"
  76. app:layout_constraintBottom_toBottomOf="parent"
  77. app:layout_constraintEnd_toEndOf="parent"
  78. app:layout_constraintTop_toTopOf="parent"
  79. app:srcCompat="@drawable/ic_icon_header_menu"/>
  80. </LinearLayout>
  81. <RelativeLayout
  82. android:layout_width="match_parent"
  83. android:layout_height="4dp"
  84. android:gravity="start">
  85. <!--<LinearLayout-->
  86. <!--android:id="@+id/layout_for_max_width"-->
  87. <!--android:layout_width="match_parent"-->
  88. <!--android:layout_height="match_parent"-->
  89. <!--android:background="@color/CF8F8F8"-->
  90. <!--android:orientation="horizontal"/>-->
  91. <ProgressBar
  92. android:id="@+id/progress_bar"
  93. style="?android:attr/progressBarStyleHorizontal"
  94. android:layout_width="match_parent"
  95. android:layout_height="match_parent"
  96. android:layout_centerInParent="false"
  97. android:progressDrawable="@drawable/sign_up_progress"
  98. tools:progress="40"
  99. />
  100. </RelativeLayout>
  101. </LinearLayout>