From 618915bc700861657868bf45c4fdd01e4feb6da2 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 24 Nov 2019 20:21:31 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt | 3 ++- app/src/main/res/layout/activity_audio_play.xml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt b/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt index 0114629b8..8c78bb92c 100644 --- a/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt +++ b/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt @@ -180,7 +180,8 @@ class AudioPlayActivity : VMBaseActivity(R.layout.activity_a tv_dur_time.text = DateFormatUtils.format(it.toLong(), "mm:ss") } observeEventSticky(Bus.AUDIO_SPEED) { - tv_speed.text = String.format("%.1f", it) + tv_speed.text = String.format("%.1fX", it) + tv_speed.visible() } } diff --git a/app/src/main/res/layout/activity_audio_play.xml b/app/src/main/res/layout/activity_audio_play.xml index 7aca54cb9..cbae32334 100644 --- a/app/src/main/res/layout/activity_audio_play.xml +++ b/app/src/main/res/layout/activity_audio_play.xml @@ -33,8 +33,12 @@ android:id="@+id/tv_speed" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_margin="16dp" android:background="@drawable/shape_fillet_btn_press" android:textColor="@color/md_white_1000" + android:paddingStart="3dp" + android:paddingEnd="3dp" + android:visibility="invisible" app:layout_constraintTop_toBottomOf="@id/title_bar" app:layout_constraintRight_toRightOf="parent" />