|
@@ -11,6 +11,7 @@
|
|
|
android:id="@+id/toolbar_include"
|
|
|
layout="@layout/common_toolbar_layout" />
|
|
|
|
|
|
+
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
android:id="@+id/recyclerView"
|
|
|
android:layout_width="wrap_content"
|
|
@@ -20,6 +21,7 @@
|
|
|
android:layout_marginEnd="13dp"
|
|
|
android:overScrollMode="never"
|
|
|
android:scrollbars="none"
|
|
|
+ android:visibility="gone"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/toolbar_include" />
|
|
@@ -28,7 +30,7 @@
|
|
|
android:id="@+id/iv_plate"
|
|
|
android:layout_width="316dp"
|
|
|
android:layout_height="316dp"
|
|
|
- android:layout_marginTop="65dp"
|
|
|
+ android:layout_marginTop="@dimen/qb_px_65"
|
|
|
android:src="@mipmap/bg_metronome"
|
|
|
android:visibility="visible"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
@@ -51,11 +53,11 @@
|
|
|
android:id="@+id/cir_seekbar"
|
|
|
android:layout_width="232dp"
|
|
|
android:layout_height="232dp"
|
|
|
- app:maxProgress="150"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/iv_plate"
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/iv_plate"
|
|
|
app:layout_constraintRight_toRightOf="@+id/iv_plate"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/iv_plate" />
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_plate"
|
|
|
+ app:maxProgress="150" />
|
|
|
|
|
|
|
|
|
<ImageView
|
|
@@ -68,17 +70,31 @@
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/iv_plate"
|
|
|
app:layout_constraintRight_toRightOf="@+id/iv_plate"
|
|
|
app:layout_constraintTop_toTopOf="@+id/iv_plate" />
|
|
|
-
|
|
|
+
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_bg_metronome4"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@mipmap/bg_metronome4"
|
|
|
+ android:visibility="gone"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/iv_plate"
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/iv_plate"
|
|
|
app:layout_constraintRight_toRightOf="@+id/iv_plate"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/iv_plate"
|
|
|
- android:src="@mipmap/bg_metronome4"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_plate" />
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_note"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
-
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@mipmap/icon_quarter_note_tag2"
|
|
|
+ android:visibility="visible"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_speed"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_plate"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_speed"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_speed" />
|
|
|
+
|
|
|
<TextView
|
|
|
android:id="@+id/tv_speed"
|
|
|
android:layout_width="wrap_content"
|
|
@@ -89,44 +105,44 @@
|
|
|
android:textSize="@dimen/sp_40"
|
|
|
android:textStyle="bold"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/iv_plate"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/iv_plate"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_note"
|
|
|
app:layout_constraintRight_toRightOf="@+id/iv_plate"
|
|
|
app:layout_constraintTop_toTopOf="@+id/iv_plate"
|
|
|
tools:text="136" />
|
|
|
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:visibility="gone"
|
|
|
- android:id="@+id/iv_note"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:src="@mipmap/icon_quarter_note"
|
|
|
- app:layout_constraintCircle="@+id/tv_speed"
|
|
|
- app:layout_constraintCircleAngle="320"
|
|
|
- app:layout_constraintCircleRadius="55dp" />
|
|
|
-
|
|
|
<TextView
|
|
|
- android:layout_marginBottom="10dp"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/iv_bg_metronome4"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/iv_bg_metronome4"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/iv_bg_metronome4"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
android:text="速度"
|
|
|
android:textColor="@color/color_333333"
|
|
|
- android:textSize="@dimen/sp_15" />
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/iv_bg_metronome4"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_bg_metronome4"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_bg_metronome4" />
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_reduce"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="11dp"
|
|
|
+ android:padding="@dimen/qb_px_8"
|
|
|
android:src="@mipmap/icon_metronome_bt_bg"
|
|
|
- app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/iv_plate"
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/iv_beat_value"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/iv_plate" />
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_plate"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_speed" />
|
|
|
+
|
|
|
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_add"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:padding="@dimen/qb_px_8"
|
|
|
+ android:src="@mipmap/icon_metronome_add_bt_bg"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_speed"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_plate"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_plate" />
|
|
|
<!-- <ImageView-->
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
@@ -136,75 +152,105 @@
|
|
|
<!-- app:layout_constraintRight_toRightOf="@+id/iv_reduce"-->
|
|
|
<!-- app:layout_constraintTop_toTopOf="@+id/iv_reduce" />-->
|
|
|
|
|
|
+ <View
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:id="@+id/view_help"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ android:layout_width="10dp"
|
|
|
+ android:layout_height="match_parent"/>
|
|
|
+
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_beat_value"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/qb_px_20"
|
|
|
android:src="@mipmap/icon_beat_value_bg"
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/iv_reduce"
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/iv_add"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/iv_reduce" />
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/view_help"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_plate" />
|
|
|
+
|
|
|
|
|
|
<ImageView
|
|
|
- android:id="@+id/iv_add"
|
|
|
+ android:id="@+id/iv_rhythm_value_bg"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:src="@mipmap/icon_metronome_add_bt_bg"
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/iv_beat_value"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/iv_plate"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/iv_reduce" />
|
|
|
+ android:src="@mipmap/icon_beat_value_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/view_help"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_beat_value" />
|
|
|
|
|
|
- <!-- <ImageView-->
|
|
|
- <!-- android:layout_width="wrap_content"-->
|
|
|
- <!-- android:layout_height="wrap_content"-->
|
|
|
- <!-- android:src="@mipmap/icon_add_symbol"-->
|
|
|
- <!-- app:layout_constraintBottom_toBottomOf="@+id/iv_add"-->
|
|
|
- <!-- app:layout_constraintLeft_toLeftOf="@+id/iv_add"-->
|
|
|
- <!-- app:layout_constraintRight_toRightOf="@+id/iv_add"-->
|
|
|
- <!-- app:layout_constraintTop_toTopOf="@+id/iv_add" />-->
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_current_beat"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
android:includeFontPadding="false"
|
|
|
- android:text="6/4"
|
|
|
+ android:text="4"
|
|
|
android:textColor="@color/color_1a1a1a"
|
|
|
- android:textSize="@dimen/sp_19"
|
|
|
- android:drawablePadding="10dp"
|
|
|
+ android:textSize="@dimen/sp_24"
|
|
|
android:textStyle="bold"
|
|
|
- android:drawableRight="@mipmap/icon_play_beat_arrow_down"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/iv_beat_value"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_beat_value"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/iv_beat_value"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_current_beat_tip"
|
|
|
+ tools:text="4" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_current_beat_tip"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="3dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:text="拍"
|
|
|
+ android:textColor="@color/color_1a1a1a"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_beat_value"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_current_beat"
|
|
|
app:layout_constraintRight_toRightOf="@+id/iv_beat_value"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/iv_beat_value"
|
|
|
- tools:text="6/4" />
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_beat_value" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_rhythm_value"
|
|
|
+ android:layout_width="44dp"
|
|
|
+ android:layout_height="46dp"
|
|
|
+ android:src="@mipmap/icon_4_rhythm_1_normal"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_rhythm_value_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_rhythm_value_bg"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_rhythm_value_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_rhythm_value_bg" />
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatSeekBar
|
|
|
+ android:paddingStart="16dp"
|
|
|
+ android:paddingEnd="16dp"
|
|
|
android:id="@+id/volume_seek_bar"
|
|
|
- android:layout_width="210dp"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="24dp"
|
|
|
- android:max="100"
|
|
|
+ android:layout_marginTop="@dimen/qb_px_22"
|
|
|
android:background="@null"
|
|
|
+ android:max="100"
|
|
|
android:maxHeight="4dp"
|
|
|
android:progress="50"
|
|
|
android:progressDrawable="@drawable/bg_volume_seekbar"
|
|
|
android:splitTrack="false"
|
|
|
android:thumb="@mipmap/icon_beat_volume_seekbar_thump"
|
|
|
android:visibility="visible"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_volume_value"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_volume"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/iv_beat_value" />
|
|
|
|
|
|
<ImageView
|
|
|
+ android:id="@+id/iv_volume"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/ll_play"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginEnd="2dp"
|
|
|
android:src="@mipmap/icon_volume_trumpet_add"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/volume_seek_bar"
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/volume_seek_bar"
|
|
|
app:layout_constraintTop_toTopOf="@+id/volume_seek_bar" />
|
|
|
|
|
|
<!-- <ImageView-->
|
|
@@ -217,14 +263,14 @@
|
|
|
<!-- android:layout_height="wrap_content"/>-->
|
|
|
|
|
|
<TextView
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/ll_play"
|
|
|
android:id="@+id/tv_volume_value"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:paddingStart="6dp"
|
|
|
- android:textColor="@color/color_58a2ec"
|
|
|
+ android:textColor="@color/color_1cacf1"
|
|
|
android:textSize="@dimen/sp_16"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/volume_seek_bar"
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/volume_seek_bar"
|
|
|
app:layout_constraintTop_toTopOf="@+id/volume_seek_bar"
|
|
|
tools:text="40" />
|
|
|
|
|
@@ -234,14 +280,14 @@
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="54dp"
|
|
|
android:layout_marginStart="53dp"
|
|
|
- android:layout_marginTop="101dp"
|
|
|
+ android:layout_marginTop="@dimen/qb_px_40"
|
|
|
android:layout_marginEnd="53dp"
|
|
|
android:background="@drawable/shape_00acff_27dp"
|
|
|
android:gravity="center"
|
|
|
android:orientation="horizontal"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/iv_beat_value">
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/volume_seek_bar">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_play"
|
|
@@ -255,11 +301,9 @@
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_play_status_tag"
|
|
|
- android:layout_marginStart="10dp"
|
|
|
- android:src="@mipmap/icon_play_beat_bt_tag"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:src="@mipmap/icon_play_beat_bt_tag" />
|
|
|
</LinearLayout>
|
|
|
-
|
|
|
-
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|