activity_recording.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android">
 3
 4    <RelativeLayout
 5        android:layout_width="match_parent"
 6        android:layout_height="wrap_content">
 7
 8        <RelativeLayout
 9            android:id="@+id/button_bar"
10            android:layout_width="wrap_content"
11            android:layout_height="wrap_content"
12            android:layout_below="@+id/timer"
13            android:layout_alignParentStart="true"
14            android:layout_alignParentEnd="true"
15            android:paddingHorizontal="16dp"
16            android:paddingVertical="8dp">
17
18            <Button
19                android:id="@+id/cancel_button"
20                style="@style/Widget.Material3.Button.TextButton"
21                android:layout_width="wrap_content"
22                android:layout_height="wrap_content"
23                android:layout_alignParentStart="true"
24                android:layout_centerInParent="true"
25                android:text="@string/cancel" />
26
27
28            <Button
29                android:id="@+id/share_button"
30                style="@style/Widget.Material3.Button.TonalButton"
31                android:layout_width="wrap_content"
32                android:layout_height="wrap_content"
33                android:layout_alignParentEnd="true"
34                android:layout_centerInParent="true"
35                android:text="@string/attach" />
36        </RelativeLayout>
37
38
39        <TextView
40            android:id="@+id/timer"
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:layout_alignParentTop="true"
44            android:layout_centerHorizontal="true"
45            android:layout_margin="8dp"
46            android:fontFamily="monospace"
47            android:textAppearance="?textAppearanceDisplayLarge" />
48    </RelativeLayout>
49</layout>