TiebaLite/app/src/main/res/layout/layout_audio.xml

55 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<merge android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto">
<FrameLayout
android:layout_centerVertical="true"
android:id="@+id/audio_play_icon_parent"
android:layout_marginEnd="8dp"
android:layout_width="18dp"
android:layout_height="18dp">
<com.huanchengfly.tieba.post.widgets.theme.TintImageView
android:id="@+id/audio_play_icon"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:background="@color/transparent"
android:padding="0dp"
app:srcCompat="@drawable/ic_round_play_circle_filled_18dp"
app:tint="@color/default_color_accent" />
<com.huanchengfly.tieba.post.widgets.theme.TintProgressBar
android:visibility="gone"
app:progressTint="@color/default_color_primary"
android:indeterminate="true"
android:id="@+id/audio_play_progress"
style="?android:attr/progressBarStyleSmallInverse"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>
<com.huanchengfly.tieba.post.widgets.theme.TintSeekBar
android:visibility="gone"
android:progress="0"
android:max="100"
app:progressTint="@color/default_color_primary"
android:progressDrawable="@drawable/bg_seekbar_round"
android:layout_marginEnd="8dp"
android:layout_toEndOf="@id/audio_play_icon_parent"
android:layout_centerVertical="true"
android:id="@+id/seek_progress"
android:layout_width="96dp"
android:layout_height="wrap_content" />
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
android:layout_toEndOf="@id/seek_progress"
android:minWidth="24dp"
android:textStyle="bold"
tools:text="15'"
app:tint="@color/default_color_accent"
android:id="@+id/audio_text"
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</merge>