Full voice message UI
parent
ac718a425d
commit
6d9eb0a932
@ -1,41 +1,70 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout
|
<RelativeLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:id="@+id/mainVoiceMessageViewContainer"
|
||||||
android:layout_width="160dp"
|
android:layout_width="160dp"
|
||||||
android:layout_height="36dp"
|
android:layout_height="36dp">
|
||||||
android:orientation="horizontal"
|
|
||||||
android:padding="@dimen/small_spacing"
|
|
||||||
android:gravity="center">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<View
|
||||||
android:layout_width="20dp"
|
android:id="@+id/progressView"
|
||||||
android:layout_height="20dp"
|
android:layout_width="0dp"
|
||||||
android:background="@drawable/circle_tintable"
|
android:layout_height="match_parent"
|
||||||
android:backgroundTint="@color/white">
|
android:layout_alignParentStart="true"
|
||||||
|
android:background="@color/black"
|
||||||
<ImageView
|
android:alpha="0.2" />
|
||||||
android:layout_width="16dp"
|
|
||||||
android:layout_height="16dp"
|
|
||||||
android:src="@drawable/exo_icon_play"
|
|
||||||
android:layout_centerInParent="true"
|
|
||||||
app:tint="@color/black" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="84dp"
|
android:layout_width="84dp"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
|
android:layout_marginStart="28dp"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
android:background="@color/white" />
|
android:background="@color/white" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="36dp"
|
||||||
|
android:layout_height="36dp"
|
||||||
|
android:layout_alignParentStart="true">
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="20dp"
|
||||||
|
android:layout_height="20dp"
|
||||||
|
android:layout_centerInParent="true"
|
||||||
|
android:background="@drawable/circle_tintable"
|
||||||
|
android:backgroundTint="@color/white">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/voiceMessagePlaybackImageView"
|
||||||
|
android:layout_width="16dp"
|
||||||
|
android:layout_height="16dp"
|
||||||
|
android:src="@drawable/exo_icon_play"
|
||||||
|
android:layout_centerInParent="true"
|
||||||
|
app:tint="@color/black" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:id="@+id/voiceMessageViewLoader"
|
||||||
|
android:layout_width="30dp"
|
||||||
|
android:layout_height="30dp"
|
||||||
|
android:layout_centerInParent="true"
|
||||||
|
android:indeterminate="true"
|
||||||
|
android:indeterminateTint="@color/white" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/voiceMessageViewDurationTextView"
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="20dp"
|
android:layout_height="20dp"
|
||||||
android:text="0:08"
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_marginEnd="@dimen/small_spacing"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
android:text="0:08"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black"
|
||||||
android:textSize="@dimen/small_font_size"
|
android:textSize="@dimen/small_font_size"
|
||||||
android:background="@drawable/view_voice_message_duration_text_view_background"
|
android:background="@drawable/view_voice_message_duration_text_view_background"
|
||||||
android:backgroundTint="@color/white" />
|
android:backgroundTint="@color/white" />
|
||||||
|
|
||||||
</LinearLayout>
|
</RelativeLayout>
|
Loading…
Reference in New Issue