2015-10-21 15:32:29 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2016-12-08 14:20:38 -08:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-10-08 15:32:47 +11:00
|
|
|
tools:context="org.thoughtcrime.securesms.loki.views.MessageAudioView">
|
2015-10-21 15:32:29 -07:00
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/audio_widget_container"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<LinearLayout android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AnimatingToggle
|
|
|
|
android:id="@+id/control_toggle"
|
2020-10-26 23:14:26 +11:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2015-10-21 15:32:29 -07:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center">
|
|
|
|
|
2020-10-26 23:14:26 +11:00
|
|
|
<ProgressBar
|
2015-10-21 15:32:29 -07:00
|
|
|
android:id="@+id/download_progress"
|
2020-10-26 23:14:26 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:background="@drawable/circle_tintable_4dp_inset"
|
2015-10-21 15:32:29 -07:00
|
|
|
android:visibility="gone"
|
2020-10-26 23:14:26 +11:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:min="0"
|
|
|
|
android:max="100"
|
|
|
|
tools:visibility="gone"
|
|
|
|
tools:backgroundTint="@android:color/black"
|
|
|
|
tools:indeterminateTint="@android:color/white"/>
|
2015-10-21 15:32:29 -07:00
|
|
|
|
|
|
|
<ImageView android:id="@+id/play"
|
2020-10-26 23:14:26 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2015-10-21 15:32:29 -07:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:clickable="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:background="@drawable/circle_touch_highlight_background"
|
2020-08-24 18:38:48 +10:00
|
|
|
android:src="@drawable/ic_baseline_play_circle_filled_48"
|
2016-11-21 18:58:10 -08:00
|
|
|
android:scaleType="centerInside"
|
2020-08-24 18:38:48 +10:00
|
|
|
android:contentDescription="@string/audio_view__play_accessibility_description"
|
|
|
|
tools:visibility="visible"/>
|
2015-10-21 15:32:29 -07:00
|
|
|
|
|
|
|
<ImageView android:id="@+id/pause"
|
2020-10-26 23:14:26 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2015-10-21 15:32:29 -07:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:clickable="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:background="@drawable/circle_touch_highlight_background"
|
2020-08-24 18:38:48 +10:00
|
|
|
android:src="@drawable/ic_baseline_pause_circle_filled_48"
|
2016-11-21 18:58:10 -08:00
|
|
|
android:scaleType="centerInside"
|
2020-08-24 18:38:48 +10:00
|
|
|
android:contentDescription="@string/audio_view__pause_accessibility_description"
|
|
|
|
tools:visibility="gone"/>
|
2015-10-21 15:32:29 -07:00
|
|
|
|
|
|
|
<ImageView android:id="@+id/download"
|
2020-10-26 23:14:26 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2015-10-21 15:32:29 -07:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:clickable="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:background="@drawable/circle_touch_highlight_background"
|
2020-08-24 18:38:48 +10:00
|
|
|
android:src="@drawable/ic_download_circle_filled_48"
|
|
|
|
android:contentDescription="@string/audio_view__download_accessibility_description"
|
|
|
|
tools:visibility="gone"/>
|
2015-10-21 15:32:29 -07:00
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.AnimatingToggle>
|
|
|
|
|
2020-10-08 15:32:47 +11:00
|
|
|
<org.thoughtcrime.securesms.loki.views.WaveformSeekBar
|
2020-10-07 17:43:14 +11:00
|
|
|
android:id="@+id/seek"
|
2020-10-08 16:51:34 +11:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="38dp"
|
|
|
|
android:layout_weight="1"
|
2020-10-07 17:43:14 +11:00
|
|
|
android:layout_gravity="center_vertical"
|
2020-10-08 16:51:34 +11:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
2020-10-08 19:31:20 +11:00
|
|
|
app:bar_gravity="center"
|
|
|
|
app:bar_width="4dp"
|
|
|
|
app:bar_corner_radius="2dp"
|
|
|
|
app:bar_gap="1dp"
|
|
|
|
tools:progress="0.5"
|
|
|
|
tools:bar_background_color="#bbb"
|
|
|
|
tools:bar_progress_color="?colorPrimary"/>
|
2015-10-21 15:32:29 -07:00
|
|
|
|
2020-10-08 16:51:34 +11:00
|
|
|
<TextView android:id="@+id/total_duration"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textSize="@dimen/conversation_item_date_text_size"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:autoLink="none"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:text="0:05"
|
|
|
|
tools:visibility="visible"/>
|
2015-10-21 15:32:29 -07:00
|
|
|
|
2020-10-08 16:51:34 +11:00
|
|
|
</LinearLayout>
|
2015-10-21 15:32:29 -07:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</merge>
|