action_bar.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="100dp"
  7. android:background="@color/CFFFFFF"
  8. android:gravity="center_vertical"
  9. android:orientation="vertical">
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. android:gravity="center_vertical"
  14. android:paddingEnd="24dp"
  15. android:paddingStart="24dp"
  16. >
  17. <ImageView
  18. android:id="@+id/button_back"
  19. android:layout_width="35dp"
  20. android:layout_height="35dp"
  21. android:contentDescription="@string/previous_page"
  22. android:paddingTop="10dp"
  23. android:paddingRight="10dp"
  24. android:paddingBottom="10dp"
  25. android:paddingLeft="-10dp"
  26. android:src="@drawable/icon_header_back"/>
  27. <TextView
  28. android:id="@+id/action_bar_title"
  29. android:layout_width="0dp"
  30. android:layout_height="56dp"
  31. android:layout_marginEnd="18dp"
  32. android:layout_marginStart="18dp"
  33. android:layout_weight="1"
  34. android:gravity="center"
  35. android:textColor="@color/C000000"
  36. android:textSize="18sp"
  37. tools:text="action bar title"/>
  38. <View
  39. android:layout_width="35dp"
  40. android:layout_height="match_parent"/>
  41. </LinearLayout>
  42. <RelativeLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="4dp"
  45. android:gravity="start">
  46. <!--<LinearLayout-->
  47. <!--android:id="@+id/layout_for_max_width"-->
  48. <!--android:layout_width="match_parent"-->
  49. <!--android:layout_height="match_parent"-->
  50. <!--android:background="@color/CF8F8F8"-->
  51. <!--android:orientation="horizontal"/>-->
  52. <ProgressBar
  53. android:id="@+id/progress_bar"
  54. style="?android:attr/progressBarStyleHorizontal"
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent"
  57. android:layout_centerInParent="false"
  58. android:progressDrawable="@drawable/sign_up_progress"
  59. tools:progress="40"
  60. />
  61. </RelativeLayout>
  62. </LinearLayout>