activity_small_tools_layout.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <include
  7. app:layout_constraintLeft_toLeftOf="parent"
  8. app:layout_constraintTop_toTopOf="parent"
  9. android:id="@+id/toolbar_include"
  10. layout="@layout/common_toolbar_layout" />
  11. <View
  12. android:id="@+id/view_metronome_bg"
  13. android:layout_width="match_parent"
  14. android:layout_height="114dp"
  15. android:layout_marginStart="16dp"
  16. android:layout_marginTop="18dp"
  17. android:layout_marginEnd="16dp"
  18. android:background="@drawable/shape_small_tool_metronome_bg"
  19. app:layout_constraintTop_toBottomOf="@+id/toolbar_include" />
  20. <TextView
  21. android:id="@+id/tv_metronome_title"
  22. android:includeFontPadding="false"
  23. android:layout_marginStart="24dp"
  24. android:layout_marginTop="24dp"
  25. android:textStyle="bold"
  26. app:layout_constraintLeft_toLeftOf="@+id/view_metronome_bg"
  27. app:layout_constraintTop_toTopOf="@+id/view_metronome_bg"
  28. android:textSize="@dimen/sp_20"
  29. android:textColor="@color/color_006d58"
  30. android:text="节拍器"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"/>
  33. <ImageView
  34. app:layout_constraintBottom_toBottomOf="@+id/view_metronome_bg"
  35. app:layout_constraintTop_toTopOf="@+id/view_metronome_bg"
  36. app:layout_constraintRight_toRightOf="@+id/view_metronome_bg"
  37. android:adjustViewBounds="true"
  38. android:src="@drawable/icon_metronome_enter_bg"
  39. android:layout_width="wrap_content"
  40. android:layout_height="114dp"/>
  41. <TextView
  42. android:textSize="@dimen/sp_14"
  43. android:textColor="@color/color_006d58"
  44. android:layout_marginTop="6dp"
  45. app:layout_constraintTop_toBottomOf="@+id/tv_metronome_title"
  46. app:layout_constraintLeft_toLeftOf="@+id/tv_metronome_title"
  47. android:text="节拍器,练习好节奏"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"/>
  50. <View
  51. android:id="@+id/view_music_tuner_bg"
  52. android:layout_width="match_parent"
  53. android:layout_height="114dp"
  54. android:layout_marginStart="16dp"
  55. android:layout_marginTop="16dp"
  56. android:layout_marginEnd="16dp"
  57. android:background="@drawable/shape_small_tool_music_tuner_bg"
  58. app:layout_constraintTop_toBottomOf="@+id/view_metronome_bg" />
  59. <TextView
  60. android:id="@+id/tv_music_tuner_title"
  61. android:includeFontPadding="false"
  62. android:layout_marginStart="24dp"
  63. android:layout_marginTop="24dp"
  64. android:textStyle="bold"
  65. app:layout_constraintLeft_toLeftOf="@+id/view_music_tuner_bg"
  66. app:layout_constraintTop_toTopOf="@+id/view_music_tuner_bg"
  67. android:textSize="@dimen/sp_20"
  68. android:textColor="@color/color_6c00c3"
  69. android:text="节拍器"
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"/>
  72. <TextView
  73. android:textSize="@dimen/sp_14"
  74. android:textColor="@color/color_6c00c3"
  75. android:layout_marginTop="6dp"
  76. app:layout_constraintTop_toBottomOf="@+id/tv_music_tuner_title"
  77. app:layout_constraintLeft_toLeftOf="@+id/tv_music_tuner_title"
  78. android:text="精准调音,一劳永逸"
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"/>
  81. <ImageView
  82. app:layout_constraintBottom_toBottomOf="@+id/view_music_tuner_bg"
  83. app:layout_constraintTop_toTopOf="@+id/view_music_tuner_bg"
  84. app:layout_constraintRight_toRightOf="@+id/view_music_tuner_bg"
  85. android:adjustViewBounds="true"
  86. android:src="@drawable/icon_music_tuner_enter_bg"
  87. android:layout_width="wrap_content"
  88. android:layout_height="114dp"/>
  89. </androidx.constraintlayout.widget.ConstraintLayout>