summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_main.xml116
-rw-r--r--app/src/main/res/layout/activity_player.xml144
-rw-r--r--app/src/main/res/layout/activity_recordings.xml53
-rw-r--r--app/src/main/res/layout/item_recording.xml47
4 files changed, 360 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..a281759
--- /dev/null
+++ b/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout
+ 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="match_parent"
+ android:background="@color/background"
+ android:paddingLeft="24dp"
+ android:paddingRight="24dp">
+
+ <TextView
+ android:id="@+id/titleText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="28dp"
+ android:letterSpacing="0.04"
+ android:text="@string/app_name"
+ android:textColor="@color/text_primary"
+ android:textSize="34sp"
+ android:textStyle="bold"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <TextView
+ android:id="@+id/libraryButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="18dp"
+ android:layout_marginEnd="4dp"
+ android:background="?android:attr/selectableItemBackground"
+ android:padding="8dp"
+ android:text="@string/library"
+ android:textColor="@color/text_secondary"
+ android:textSize="14sp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <TextView
+ android:id="@+id/subtitleText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2dp"
+ android:text="@string/subtitle"
+ android:textColor="@color/text_secondary"
+ android:textSize="13sp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/titleText" />
+
+ <ImageView
+ android:id="@+id/recIndicator"
+ android:layout_width="14dp"
+ android:layout_height="14dp"
+ android:layout_marginBottom="10dp"
+ android:contentDescription="@null"
+ android:src="@drawable/ic_rec_dot"
+ android:visibility="invisible"
+ app:layout_constraintBottom_toTopOf="@id/timerText"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+ <TextView
+ android:id="@+id/timerText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="20dp"
+ android:fontFamily="monospace"
+ android:text="@string/timer_zero"
+ android:textColor="@color/text_primary"
+ android:textSize="56sp"
+ android:textStyle="bold"
+ app:layout_constraintBottom_toTopOf="@id/recordButton"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+ <ImageButton
+ android:id="@+id/recordButton"
+ android:layout_width="200dp"
+ android:layout_height="200dp"
+ android:background="@drawable/bg_record_idle"
+ android:contentDescription="@string/cd_record"
+ android:scaleType="centerInside"
+ android:src="@android:color/transparent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <TextView
+ android:id="@+id/statusText"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="28dp"
+ android:gravity="center"
+ android:text="@string/status_idle"
+ android:textColor="@color/text_secondary"
+ android:textSize="15sp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/recordButton" />
+
+ <TextView
+ android:id="@+id/footerText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="12dp"
+ android:alpha="0.6"
+ android:text="@string/footer"
+ android:textColor="@color/text_secondary"
+ android:textSize="12sp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/app/src/main/res/layout/activity_player.xml b/app/src/main/res/layout/activity_player.xml
new file mode 100644
index 0000000..479efa9
--- /dev/null
+++ b/app/src/main/res/layout/activity_player.xml
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@color/background"
+ android:fillViewport="true">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:paddingLeft="20dp"
+ android:paddingTop="20dp"
+ android:paddingRight="20dp"
+ android:paddingBottom="28dp">
+
+ <TextView
+ android:id="@+id/titleText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textColor="@color/text_primary"
+ android:textSize="20sp"
+ android:textStyle="bold" />
+
+ <TextView
+ android:id="@+id/timeText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="4dp"
+ android:fontFamily="monospace"
+ android:textColor="@color/text_secondary"
+ android:textSize="14sp" />
+
+ <SeekBar
+ android:id="@+id/seekBar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="6dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="6dp"
+ android:gravity="center"
+ android:orientation="horizontal">
+
+ <Button
+ android:id="@+id/rewindButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/player_rewind" />
+
+ <Button
+ android:id="@+id/playButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="10dp"
+ android:layout_marginRight="10dp"
+ android:minWidth="72dp"
+ android:text="@string/player_play"
+ android:textSize="18sp" />
+
+ <Button
+ android:id="@+id/forwardButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/player_forward" />
+
+ <Button
+ android:id="@+id/speedButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="10dp"
+ android:text="@string/player_speed_1x" />
+ </LinearLayout>
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:layout_marginTop="18dp"
+ android:layout_marginBottom="16dp"
+ android:background="@color/divider" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/transcribe_title"
+ android:textColor="@color/text_primary"
+ android:textSize="18sp"
+ android:textStyle="bold" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:orientation="horizontal">
+
+ <Spinner
+ android:id="@+id/languageSpinner"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1" />
+
+ <Spinner
+ android:id="@+id/modelSpinner"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="10dp"
+ android:layout_weight="1" />
+ </LinearLayout>
+
+ <Button
+ android:id="@+id/transcribeButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="10dp"
+ android:text="@string/transcribe_action" />
+
+ <ProgressBar
+ android:id="@+id/progressBar"
+ style="?android:attr/progressBarStyleHorizontal"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="10dp"
+ android:max="1000"
+ android:visibility="gone" />
+
+ <TextView
+ android:id="@+id/statusText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="6dp"
+ android:textColor="@color/text_secondary"
+ android:textSize="13sp" />
+
+ <LinearLayout
+ android:id="@+id/transcriptContainer"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="12dp"
+ android:orientation="vertical" />
+
+ </LinearLayout>
+</ScrollView>
diff --git a/app/src/main/res/layout/activity_recordings.xml b/app/src/main/res/layout/activity_recordings.xml
new file mode 100644
index 0000000..c0ad20a
--- /dev/null
+++ b/app/src/main/res/layout/activity_recordings.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@color/background"
+ android:orientation="vertical"
+ android:paddingLeft="20dp"
+ android:paddingRight="20dp">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="24dp"
+ android:text="@string/recordings_title"
+ android:textColor="@color/text_primary"
+ android:textSize="26sp"
+ android:textStyle="bold" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2dp"
+ android:text="@string/recordings_subtitle"
+ android:textColor="@color/text_secondary"
+ android:textSize="13sp" />
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_marginTop="12dp"
+ android:layout_weight="1">
+
+ <ListView
+ android:id="@+id/recordingsList"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:divider="@color/divider"
+ android:dividerHeight="1dp"
+ android:scrollbars="none" />
+
+ <TextView
+ android:id="@+id/emptyText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:gravity="center"
+ android:text="@string/recordings_empty"
+ android:textColor="@color/text_secondary"
+ android:textSize="15sp"
+ android:visibility="gone" />
+ </FrameLayout>
+
+</LinearLayout>
diff --git a/app/src/main/res/layout/item_recording.xml b/app/src/main/res/layout/item_recording.xml
new file mode 100644
index 0000000..0065268
--- /dev/null
+++ b/app/src/main/res/layout/item_recording.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:orientation="horizontal"
+ android:paddingTop="14dp"
+ android:paddingBottom="14dp">
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/nameText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textColor="@color/text_primary"
+ android:textSize="16sp" />
+
+ <TextView
+ android:id="@+id/metaText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2dp"
+ android:textColor="@color/text_secondary"
+ android:textSize="13sp" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/transcriptBadge"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="12dp"
+ android:background="@drawable/badge_transcript"
+ android:paddingLeft="8dp"
+ android:paddingTop="3dp"
+ android:paddingRight="8dp"
+ android:paddingBottom="3dp"
+ android:text="@string/badge_transcript"
+ android:textColor="@color/badge_text"
+ android:textSize="11sp"
+ android:visibility="gone" />
+
+</LinearLayout>