|
@@ -4,78 +4,225 @@
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/shape_music_tuner_bg"
|
|
|
tools:context=".MusicTunerActivity">
|
|
|
|
|
|
<include
|
|
|
android:id="@+id/toolbar_include"
|
|
|
- layout="@layout/common_toolbar_layout_white"/>
|
|
|
+ layout="@layout/common_toolbar_layout_white" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_dash_board_bg"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginTop="43dp"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:background="@drawable/bg_dash_board"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/toolbar_include" />
|
|
|
|
|
|
<com.cooleshow.musictuner.widget.DashBoardView
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/toolbar_include"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- android:background="#000000"
|
|
|
android:id="@+id/view_dash_board"
|
|
|
- android:layout_width="303dp"
|
|
|
- android:layout_height="153dp"/>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginBottom="42dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_dash_board_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_dash_board_bg"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_dash_board_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_dash_board_bg" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/helper_view1"
|
|
|
+ android:layout_width="1px"
|
|
|
+ android:layout_height="1px"
|
|
|
+ android:layout_marginBottom="9dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_dash_board"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_dash_board"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/view_dash_board" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_ball"
|
|
|
+ android:layout_width="90dp"
|
|
|
+ android:layout_height="90dp"
|
|
|
+ android:background="@drawable/shape_dash_board_center_ball"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/helper_view1"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/helper_view1"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/helper_view1"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/helper_view1" />
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/tv_result"
|
|
|
- android:layout_marginTop="100dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/view_dash_board"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- tools:text="haha"
|
|
|
- android:textColor="#000000"
|
|
|
- android:textSize="30sp"
|
|
|
+ android:id="@+id/tv_difference"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="22dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:text="0¢"
|
|
|
+ android:textColor="@color/color_00ffcf"
|
|
|
+ android:textSize="@dimen/sp_26"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_ball"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/view_ball"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_ball"
|
|
|
+ tools:text="28¢" />
|
|
|
+
|
|
|
|
|
|
<TextView
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tv_result"
|
|
|
- android:id="@+id/tv_result_voice_tones"
|
|
|
- android:layout_marginTop="100dp"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- tools:text="C"
|
|
|
- android:textColor="#000000"
|
|
|
- android:textSize="40sp"
|
|
|
+ android:id="@+id/tv_before_result_voice_tones"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="44dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="12sp"
|
|
|
android:textStyle="bold"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_dash_board"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_dash_board"
|
|
|
+ tools:text="C" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_after"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="44dp"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/view_dash_board"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_before_result_voice_tones"
|
|
|
+ tools:text="C" />
|
|
|
+
|
|
|
|
|
|
<TextView
|
|
|
- app:layout_constraintBaseline_toBaselineOf="@+id/tv_result_voice_tones"
|
|
|
- android:id="@+id/tv_before_result_voice_tones"
|
|
|
+ android:id="@+id/tv_result"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="14dp"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_dash_board"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/view_dash_board"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_dash_board"
|
|
|
+ tools:text="B0:30Hz" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_left_hole"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="28dp"
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
+ android:src="@drawable/icon_music_hole"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- tools:text="C"
|
|
|
- android:textColor="#000000"
|
|
|
- android:textSize="20sp"
|
|
|
- android:textStyle="bold"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_dash_board_bg" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_hz_reduce"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ android:src="@drawable/icon_music_hz_reduce"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_left_hole"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_left_hole"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_left_hole" />
|
|
|
|
|
|
- <TextView
|
|
|
- app:layout_constraintBaseline_toBaselineOf="@+id/tv_result_voice_tones"
|
|
|
- android:id="@+id/tv_after"
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_right_hole"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="28dp"
|
|
|
+ android:src="@drawable/icon_music_hole"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
- tools:text="C"
|
|
|
- android:textColor="#000000"
|
|
|
- android:textSize="20sp"
|
|
|
- android:textStyle="bold"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_left_hole" />
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_hz_add"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:src="@drawable/icon_music_hz_add"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_right_hole"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_right_hole"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_right_hole" />
|
|
|
|
|
|
<TextView
|
|
|
- tools:text="C"
|
|
|
- android:layout_marginBottom="10dp"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/tv_result_voice_tones"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/tv_result_voice_tones"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/tv_result_voice_tones"
|
|
|
- android:textColor="#000000"
|
|
|
- android:textSize="20sp"
|
|
|
- android:id="@+id/tv_difference"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="CALIB"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_left_hole"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_hz_reduce"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_hz_add"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_left_hole" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_bottom_bg"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="6dp"
|
|
|
+ android:adjustViewBounds="true"
|
|
|
+ android:src="@drawable/bg_music_tuner_bottom"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_hz_reduce" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_result_voice_tones"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="38sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_bottom_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_bottom_bg"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_bottom_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_bottom_bg"
|
|
|
+ tools:text="C" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_left_bg"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/bg_tuning_fork"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_right_bg"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_bottom_bg" />
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_right_bg"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/bg_tuner_music"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_left_bg"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_left_bg" />
|
|
|
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/icon_tuning_fork"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_left_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_left_bg"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_left_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_left_bg" />
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/icon_music_tuner_normal"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_right_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_right_bg"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_right_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_right_bg" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/icon_bottom_hole"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_left_bg" />
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|