|
@@ -0,0 +1,139 @@
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:background="@drawable/bg_white_14dp"
|
|
|
|
+ android:paddingStart="18dp"
|
|
|
|
+ android:paddingBottom="19dp"
|
|
|
|
+ android:paddingEnd="18dp">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_title"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:paddingTop="14dp"
|
|
|
|
+ android:text="设置"
|
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
|
+ android:textSize="@dimen/sp_17"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/view_transposing_bg"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="45dp"
|
|
|
|
+ android:layout_marginTop="26dp"
|
|
|
|
+ android:background="@drawable/shape_f1f1f1_6dp"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_title" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:text="没有移调"
|
|
|
|
+ android:id="@+id/tv_current_transposing"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:paddingStart="15dp"
|
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_transposing_bg"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_transposing_bg"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_transposing_bg"
|
|
|
|
+ tools:text="长笛:C大调" />
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/view_line"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="1dp"
|
|
|
|
+ android:layout_marginTop="26dp"
|
|
|
|
+ android:background="@color/color_eaeaea"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_transposing_bg" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_standard_tip"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
|
+ android:text="A4 Frquency"
|
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_line"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_line" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/view_add_hz"
|
|
|
|
+ android:layout_width="63dp"
|
|
|
|
+ android:layout_height="45dp"
|
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
|
+ android:background="@drawable/shape_f1f1f1_6dp"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:text="+"
|
|
|
|
+ android:textColor="@color/color_2dc7aa"
|
|
|
|
+ android:textSize="@dimen/sp_25"
|
|
|
|
+ android:textStyle="bold"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_standard_tip" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/view_reduce_hz"
|
|
|
|
+ android:layout_width="63dp"
|
|
|
|
+ android:layout_height="45dp"
|
|
|
|
+ android:background="@drawable/shape_f1f1f1_6dp"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:text="-"
|
|
|
|
+ android:textColor="@color/color_2dc7aa"
|
|
|
|
+ android:textSize="@dimen/sp_25"
|
|
|
|
+ android:textStyle="bold"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_add_hz" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_current_music_hz_standard"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="45dp"
|
|
|
|
+ android:layout_marginStart="9dp"
|
|
|
|
+ android:layout_marginEnd="9dp"
|
|
|
|
+ android:background="@drawable/shape_979797_border_6dp"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:text="440Hz"
|
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/view_add_hz"
|
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/view_reduce_hz"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_add_hz" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_reset"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="31dp"
|
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
|
+ android:background="@drawable/shape_f1f1f1_6dp"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:text="Reset:440Hz"
|
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_add_hz" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="40dp"
|
|
|
|
+ android:layout_marginTop="14dp"
|
|
|
|
+ android:background="@drawable/shape_2dc7aa_6dp"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:text="确认"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_reset" />
|
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|