74 lines
3.4 KiB
XML
74 lines
3.4 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<merge 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"
|
||
|
tools:background="@color/voice_note_player_view_background"
|
||
|
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
|
||
|
|
||
|
<com.airbnb.lottie.LottieAnimationView
|
||
|
android:id="@+id/voice_note_player_play_pause_toggle"
|
||
|
android:layout_width="36dp"
|
||
|
android:layout_height="0dp"
|
||
|
android:layout_marginStart="6dp"
|
||
|
android:padding="10dp"
|
||
|
app:layout_constraintBottom_toBottomOf="@id/voice_note_player_info"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="@id/voice_note_player_info"
|
||
|
app:lottie_colorFilter="@color/signal_icon_tint_primary"
|
||
|
app:lottie_rawRes="@raw/lottie_play_pause"
|
||
|
tools:background="@color/signal_alert_primary" />
|
||
|
|
||
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
||
|
android:id="@+id/voice_note_player_info"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:gravity="center_vertical"
|
||
|
android:minHeight="36dp"
|
||
|
android:textAppearance="@style/TextAppearance.Signal.Body2"
|
||
|
android:textColor="@color/signal_icon_tint_primary"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toStartOf="@id/voice_note_player_speed"
|
||
|
app:layout_constraintStart_toEndOf="@id/voice_note_player_play_pause_toggle"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
tools:text="Miles Morales · 5:20" />
|
||
|
|
||
|
<FrameLayout
|
||
|
android:id="@+id/voice_note_player_speed_touch_target"
|
||
|
android:layout_width="36dp"
|
||
|
android:layout_height="36dp"
|
||
|
android:layout_marginEnd="8dp"
|
||
|
android:background="?selectableItemBackground"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toStartOf="@id/voice_note_player_close"
|
||
|
app:layout_constraintTop_toTopOf="parent">
|
||
|
|
||
|
<org.thoughtcrime.securesms.components.PlaybackSpeedToggleTextView
|
||
|
android:id="@+id/voice_note_player_speed"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:background="@drawable/round_background"
|
||
|
android:fontFamily="sans-serif-medium"
|
||
|
android:gravity="center"
|
||
|
android:lineSpacingExtra="1sp"
|
||
|
android:minWidth="30dp"
|
||
|
android:minHeight="20dp"
|
||
|
android:textAppearance="@style/TextAppearance.Signal.Subtitle"
|
||
|
android:textColor="@color/signal_text_secondary"
|
||
|
app:backgroundTint="@color/voice_note_player_speed_background_tint"
|
||
|
tools:text="1x" />
|
||
|
</FrameLayout>
|
||
|
|
||
|
<androidx.appcompat.widget.AppCompatImageView
|
||
|
android:id="@+id/voice_note_player_close"
|
||
|
android:layout_width="36dp"
|
||
|
android:layout_height="36dp"
|
||
|
android:layout_marginEnd="4dp"
|
||
|
android:scaleType="centerInside"
|
||
|
app:layout_constraintBottom_toBottomOf="@id/voice_note_player_info"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="@id/voice_note_player_info"
|
||
|
app:srcCompat="@drawable/ic_x_20"
|
||
|
app:tint="@color/signal_icon_tint_secondary" />
|
||
|
|
||
|
</merge>
|