|
|
|
@ -3,30 +3,23 @@
|
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="80dp">
|
|
|
|
|
android:layout_height="92dp">
|
|
|
|
|
|
|
|
|
|
<!-- The height of the fake input bar below is 68 dp
|
|
|
|
|
because the input bar is 56 dp but we have to
|
|
|
|
|
account for the fact that this whole view has a
|
|
|
|
|
negative bottom margin of 12 dp -->
|
|
|
|
|
<!-- The fake input bar -->
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="68dp"
|
|
|
|
|
android:layout_height="@dimen/input_bar_height"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="1px"
|
|
|
|
|
android:background="@color/separator" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/input_bar_background" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<!-- The left content (dot view + duration) -->
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
@ -53,6 +46,8 @@
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- The middle content (left arrow + slide to cancel) -->
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
@ -79,17 +74,52 @@
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Separator -->
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="1px"
|
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
|
android:background="@color/separator" />
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<!-- The pulse view -->
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:layout_width="104dp"
|
|
|
|
|
android:layout_height="104dp"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
android:layout_marginEnd="-20dp"
|
|
|
|
|
android:layout_marginBottom="-12dp">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/pulseView"
|
|
|
|
|
android:layout_width="80dp"
|
|
|
|
|
android:layout_height="80dp"
|
|
|
|
|
android:alpha="0.5"
|
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
|
android:background="@drawable/circle_tintable"
|
|
|
|
|
android:backgroundTint="@color/destructive" />
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<!-- The actual record button overlay -->
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:layout_width="80dp"
|
|
|
|
|
android:layout_height="80dp"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
android:layout_marginEnd="-8dp"
|
|
|
|
|
android:layout_marginBottom="0dp"
|
|
|
|
|
android:background="@drawable/circle_tintable"
|
|
|
|
|
android:backgroundTint="@color/destructive" >
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_width="16dp"
|
|
|
|
|
android:layout_height="16dp"
|
|
|
|
|
app:tint="@color/white"
|
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
|