summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/color/option_text.xml5
-rw-r--r--app/src/main/res/drawable/bg_option.xml24
-rw-r--r--app/src/main/res/drawable/bg_refresh_item.xml15
-rw-r--r--app/src/main/res/drawable/bg_toggle.xml24
-rw-r--r--app/src/main/res/drawable/ic_bell_off.xml14
-rw-r--r--app/src/main/res/drawable/ic_mic.xml10
-rw-r--r--app/src/main/res/drawable/ic_refresh.xml10
-rw-r--r--app/src/main/res/drawable/ic_speaker.xml10
-rw-r--r--app/src/main/res/drawable/ic_swap.xml10
-rw-r--r--app/src/main/res/layout/activity_main.xml296
-rw-r--r--app/src/main/res/layout/activity_player.xml37
-rw-r--r--app/src/main/res/layout/item_spinner_refresh.xml27
-rw-r--r--app/src/main/res/values-sw600dp/bools.xml4
-rw-r--r--app/src/main/res/values/bools.xml5
-rw-r--r--app/src/main/res/values/strings.xml35
-rw-r--r--app/src/main/res/values/themes.xml22
16 files changed, 413 insertions, 135 deletions
diff --git a/app/src/main/res/color/option_text.xml b/app/src/main/res/color/option_text.xml
new file mode 100644
index 0000000..11ac466
--- /dev/null
+++ b/app/src/main/res/color/option_text.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_checked="true" android:color="@color/text_primary" />
+ <item android:color="@color/text_secondary" />
+</selector>
diff --git a/app/src/main/res/drawable/bg_option.xml b/app/src/main/res/drawable/bg_option.xml
new file mode 100644
index 0000000..81c76b6
--- /dev/null
+++ b/app/src/main/res/drawable/bg_option.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_checked="true">
+ <shape android:shape="rectangle">
+ <solid android:color="#2AE53935" />
+ <corners android:radius="8dp" />
+ <stroke
+ android:width="1dp"
+ android:color="@color/accent" />
+ </shape>
+ </item>
+ <item android:state_pressed="true">
+ <shape android:shape="rectangle">
+ <solid android:color="#1FFFFFFF" />
+ <corners android:radius="8dp" />
+ </shape>
+ </item>
+ <item>
+ <shape android:shape="rectangle">
+ <solid android:color="#0DFFFFFF" />
+ <corners android:radius="8dp" />
+ </shape>
+ </item>
+</selector>
diff --git a/app/src/main/res/drawable/bg_refresh_item.xml b/app/src/main/res/drawable/bg_refresh_item.xml
new file mode 100644
index 0000000..f479a5c
--- /dev/null
+++ b/app/src/main/res/drawable/bg_refresh_item.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item>
+ <shape android:shape="rectangle">
+ <solid android:color="@android:color/transparent" />
+ </shape>
+ </item>
+ <item
+ android:height="1dp"
+ android:gravity="bottom">
+ <shape android:shape="rectangle">
+ <solid android:color="#55FFFFFF" />
+ </shape>
+ </item>
+</layer-list>
diff --git a/app/src/main/res/drawable/bg_toggle.xml b/app/src/main/res/drawable/bg_toggle.xml
new file mode 100644
index 0000000..f08be92
--- /dev/null
+++ b/app/src/main/res/drawable/bg_toggle.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_selected="true">
+ <shape android:shape="rectangle">
+ <solid android:color="#2AE53935" />
+ <corners android:radius="10dp" />
+ <stroke
+ android:width="1dp"
+ android:color="@color/accent" />
+ </shape>
+ </item>
+ <item android:state_pressed="true">
+ <shape android:shape="rectangle">
+ <solid android:color="#1FFFFFFF" />
+ <corners android:radius="10dp" />
+ </shape>
+ </item>
+ <item>
+ <shape android:shape="rectangle">
+ <solid android:color="#0DFFFFFF" />
+ <corners android:radius="10dp" />
+ </shape>
+ </item>
+</selector>
diff --git a/app/src/main/res/drawable/ic_bell_off.xml b/app/src/main/res/drawable/ic_bell_off.xml
new file mode 100644
index 0000000..3e3ca8b
--- /dev/null
+++ b/app/src/main/res/drawable/ic_bell_off.xml
@@ -0,0 +1,14 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="16dp"
+ android:height="16dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24"
+ android:tint="@color/text_secondary">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.9,2 2,2zM18,16v-5c0,-3.07 -1.63,-5.64 -4.5,-6.32V4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.64,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z" />
+ <path
+ android:strokeColor="@android:color/white"
+ android:strokeWidth="2.4"
+ android:pathData="M4.2,3.2L20.8,20.8" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_mic.xml b/app/src/main/res/drawable/ic_mic.xml
new file mode 100644
index 0000000..94bb721
--- /dev/null
+++ b/app/src/main/res/drawable/ic_mic.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="16dp"
+ android:height="16dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24"
+ android:tint="@color/text_secondary">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M12,14c1.66,0 3,-1.34 3,-3V5c0,-1.66 -1.34,-3 -3,-3S9,3.34 9,5v6c0,1.66 1.34,3 3,3zM17,11c0,2.76 -2.24,5 -5,5s-5,-2.24 -5,-5H5c0,3.53 2.61,6.43 6,6.92V21h2v-3.08c3.39,-0.49 6,-3.39 6,-6.92h-2z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_refresh.xml b/app/src/main/res/drawable/ic_refresh.xml
new file mode 100644
index 0000000..fe87a2b
--- /dev/null
+++ b/app/src/main/res/drawable/ic_refresh.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="18dp"
+ android:height="18dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24"
+ android:tint="@color/text_secondary">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M17.65,6.35C16.2,4.9 14.21,4 12,4c-4.42,0 -7.99,3.58 -7.99,8s3.57,8 7.99,8c3.73,0 6.84,-2.55 7.73,-6h-2.08c-0.82,2.33 -3.04,4 -5.65,4 -3.31,0 -6,-2.69 -6,-6s2.69,-6 6,-6c1.66,0 3.14,0.69 4.22,1.78L13,11h7V4l-2.35,2.35z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_speaker.xml b/app/src/main/res/drawable/ic_speaker.xml
new file mode 100644
index 0000000..2c665c5
--- /dev/null
+++ b/app/src/main/res/drawable/ic_speaker.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="16dp"
+ android:height="16dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24"
+ android:tint="@color/text_secondary">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M3,9v6h4l5,5V4L7,9H3zM16.5,12c0,-1.77 -1.02,-3.29 -2.5,-4.03v8.05c1.48,-0.73 2.5,-2.25 2.5,-4.02zM14,3.23v2.06c2.89,0.86 5,3.54 5,6.71s-2.11,5.85 -5,6.71v2.06c4.01,-0.91 7,-4.49 7,-8.77s-2.99,-7.86 -7,-8.77z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_swap.xml b/app/src/main/res/drawable/ic_swap.xml
new file mode 100644
index 0000000..948f460
--- /dev/null
+++ b/app/src/main/res/drawable/ic_swap.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24"
+ android:tint="@color/text_primary">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M16,17.01V10h-2v7.01h-3L15,21l4,-3.99h-3zM9,3L5,6.99h3V14h2V6.99h3L9,3z" />
+</vector>
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 2f3a1ac..c713d95 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -65,93 +65,58 @@
android:scaleType="centerInside"
android:src="@android:color/transparent" />
- <androidx.appcompat.widget.AppCompatCheckBox
- android:id="@+id/compressCheckbox"
- android:layout_width="wrap_content"
+ <TextView
+ android:id="@+id/statusText"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="4dp"
- android:contentDescription="@string/compress_recording"
- android:text="@string/compress_short"
+ android:layout_marginTop="6dp"
+ android:gravity="center"
+ android:text="@string/status_idle"
android:textColor="@color/text_secondary"
- android:textSize="13sp" />
-
- <LinearLayout
- android:id="@+id/inputRow"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="4dp"
- android:gravity="center_vertical"
- android:orientation="horizontal">
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/input_label"
- android:textColor="@color/text_secondary"
- android:textSize="13sp" />
+ android:textSize="14sp" />
- <Spinner
- android:id="@+id/inputSpinner"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="8dp"
- android:minWidth="180dp" />
- </LinearLayout>
+ <com.tomcooks.reccoon.WaveformView
+ android:id="@+id/waveformView"
+ android:layout_width="match_parent"
+ android:layout_height="64dp"
+ android:layout_marginTop="8dp" />
<LinearLayout
- android:id="@+id/outputRow"
- android:layout_width="wrap_content"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="4dp"
+ android:layout_marginTop="8dp"
android:gravity="center_vertical"
android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/output_label"
- android:textColor="@color/text_secondary"
- android:textSize="13sp" />
+ <com.tomcooks.reccoon.LevelMeterView
+ android:id="@+id/levelMeter"
+ android:layout_width="0dp"
+ android:layout_height="44dp"
+ android:layout_weight="1" />
- <Spinner
- android:id="@+id/outputSpinner"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ <ImageButton
+ android:id="@+id/swapButton"
+ android:layout_width="44dp"
+ android:layout_height="44dp"
android:layout_marginStart="8dp"
- android:minWidth="180dp" />
+ android:background="@drawable/bg_toggle"
+ android:contentDescription="@string/swap_channels"
+ android:padding="10dp"
+ android:scaleType="centerInside"
+ android:src="@drawable/ic_swap" />
</LinearLayout>
- <androidx.appcompat.widget.AppCompatCheckBox
- android:id="@+id/monitorCheckbox"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="2dp"
- android:contentDescription="@string/monitor_recording"
- android:text="@string/monitor_short"
- android:textColor="@color/text_secondary"
- android:textSize="13sp" />
-
- <com.tomcooks.reccoon.WaveformView
- android:id="@+id/waveformView"
- android:layout_width="match_parent"
- android:layout_height="64dp"
- android:layout_marginTop="16dp" />
-
- <com.tomcooks.reccoon.LevelMeterView
- android:id="@+id/levelMeter"
+ <View
android:layout_width="match_parent"
- android:layout_height="38dp"
- android:layout_marginTop="10dp" />
+ android:layout_height="1dp"
+ android:layout_marginTop="14dp"
+ android:background="@color/divider" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
- android:layout_marginTop="6dp"
+ android:layout_marginTop="10dp"
android:gravity="center"
android:orientation="horizontal">
@@ -173,55 +138,176 @@
android:text="@string/discard_action" />
</LinearLayout>
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:layout_marginTop="14dp"
+ android:background="@color/divider" />
+
<LinearLayout
- android:id="@+id/optionsRow"
- android:layout_width="wrap_content"
+ android:id="@+id/deviceSelectorRow"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="2dp"
- android:gravity="center"
+ android:layout_marginTop="10dp"
+ android:gravity="center_vertical"
android:orientation="horizontal">
- <androidx.appcompat.widget.AppCompatCheckBox
- android:id="@+id/monoCheckbox"
- android:layout_width="wrap_content"
+ <LinearLayout
+ android:id="@+id/inputRow"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
- android:contentDescription="@string/mono_recording"
- android:text="@string/mono_short"
- android:textColor="@color/text_secondary"
- android:textSize="13sp" />
+ android:layout_weight="1"
+ android:orientation="vertical">
- <androidx.appcompat.widget.AppCompatCheckBox
- android:id="@+id/silenceCheckbox"
- android:layout_width="wrap_content"
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="16dp"
+ android:layout_height="16dp"
+ android:contentDescription="@null"
+ android:src="@drawable/ic_mic" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:text="@string/input_label"
+ android:textColor="@color/text_secondary"
+ android:textSize="12sp"
+ android:textStyle="bold" />
+ </LinearLayout>
+
+ <Spinner
+ android:id="@+id/inputSpinner"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2dp"
+ android:minWidth="0dp" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/outputRow"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
- android:contentDescription="@string/silence_recording"
- android:text="@string/silence_short"
- android:textColor="@color/text_secondary"
- android:textSize="13sp" />
- </LinearLayout>
+ android:layout_weight="1"
+ android:orientation="vertical">
- <androidx.appcompat.widget.AppCompatCheckBox
- android:id="@+id/swapCheckbox"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="2dp"
- android:contentDescription="@string/swap_channels"
- android:text="@string/swap_short"
- android:textColor="@color/text_secondary"
- android:textSize="13sp" />
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
- <TextView
- android:id="@+id/statusText"
+ <ImageView
+ android:layout_width="16dp"
+ android:layout_height="16dp"
+ android:contentDescription="@null"
+ android:src="@drawable/ic_speaker" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="4dp"
+ android:text="@string/output_label"
+ android:textColor="@color/text_secondary"
+ android:textSize="12sp"
+ android:textStyle="bold" />
+ </LinearLayout>
+
+ <Spinner
+ android:id="@+id/outputSpinner"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2dp"
+ android:minWidth="0dp" />
+ </LinearLayout>
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/optionsRow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginTop="6dp"
- android:gravity="center"
- android:text="@string/status_idle"
- android:textColor="@color/text_secondary"
- android:textSize="14sp" />
+ android:layout_marginTop="10dp"
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
+
+ <RadioGroup
+ android:id="@+id/formatGroup"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="2"
+ android:orientation="horizontal">
+
+ <RadioButton
+ android:id="@+id/formatWav"
+ style="@style/OptionChip"
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:contentDescription="@string/format_wav_description"
+ android:text="@string/format_wav" />
+
+ <RadioButton
+ android:id="@+id/formatM4a"
+ style="@style/OptionChip"
+ android:layout_width="0dp"
+ android:layout_marginStart="2dp"
+ android:layout_weight="1"
+ android:contentDescription="@string/format_m4a_description"
+ android:text="@string/format_m4a" />
+ </RadioGroup>
+
+ <Space
+ android:layout_width="12dp"
+ android:layout_height="1dp" />
+
+ <androidx.appcompat.widget.AppCompatCheckBox
+ android:id="@+id/silenceCheckbox"
+ style="@style/OptionChip"
+ android:layout_width="0dp"
+ android:layout_height="44dp"
+ android:layout_weight="1"
+ android:contentDescription="@string/silence_recording"
+ android:drawableStart="@drawable/ic_bell_off"
+ android:gravity="center"
+ android:maxLines="2"
+ android:text="@string/silence_short" />
+
+ <Space
+ android:layout_width="12dp"
+ android:layout_height="1dp" />
+
+ <RadioGroup
+ android:id="@+id/channelGroup"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="2"
+ android:orientation="horizontal">
+
+ <RadioButton
+ android:id="@+id/monoButton"
+ style="@style/OptionChip"
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:contentDescription="@string/mono_recording"
+ android:drawableStart="@drawable/ic_mic"
+ android:text="@string/mono_short" />
+
+ <RadioButton
+ android:id="@+id/stereoButton"
+ style="@style/OptionChip"
+ android:layout_width="0dp"
+ android:layout_marginStart="2dp"
+ android:layout_weight="1"
+ android:contentDescription="@string/stereo_recording"
+ android:drawableStart="@drawable/ic_mic"
+ android:text="@string/stereo_short" />
+ </RadioGroup>
+ </LinearLayout>
<View
android:layout_width="match_parent"
diff --git a/app/src/main/res/layout/activity_player.xml b/app/src/main/res/layout/activity_player.xml
index 2bb2f54..5a9013a 100644
--- a/app/src/main/res/layout/activity_player.xml
+++ b/app/src/main/res/layout/activity_player.xml
@@ -98,14 +98,6 @@
android:text="@string/action_rename" />
<Button
- android:id="@+id/exportButton"
- style="?android:attr/buttonBarButtonStyle"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="@string/action_export" />
-
- <Button
android:id="@+id/deleteButton"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
@@ -159,18 +151,29 @@
android:textSize="18sp"
android:textStyle="bold" />
- <Spinner
- android:id="@+id/modelSpinner"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp" />
-
- <Button
- android:id="@+id/transcribeButton"
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
- android:text="@string/transcribe_action" />
+ android:orientation="horizontal">
+
+ <Button
+ android:id="@+id/transcribeButton"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="@string/transcribe_action" />
+
+ <Button
+ android:id="@+id/exportButton"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="8dp"
+ android:layout_weight="1"
+ android:enabled="false"
+ android:text="@string/action_export"
+ android:textSize="12sp" />
+ </LinearLayout>
<ProgressBar
android:id="@+id/progressBar"
diff --git a/app/src/main/res/layout/item_spinner_refresh.xml b/app/src/main/res/layout/item_spinner_refresh.xml
new file mode 100644
index 0000000..3cfddc6
--- /dev/null
+++ b/app/src/main/res/layout/item_spinner_refresh.xml
@@ -0,0 +1,27 @@
+<?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:background="@drawable/bg_refresh_item"
+ android:gravity="center_vertical"
+ android:minHeight="44dp"
+ android:orientation="horizontal"
+ android:paddingLeft="12dp"
+ android:paddingTop="10dp"
+ android:paddingRight="12dp"
+ android:paddingBottom="10dp">
+
+ <ImageView
+ android:layout_width="18dp"
+ android:layout_height="18dp"
+ android:contentDescription="@null"
+ android:src="@drawable/ic_refresh" />
+
+ <TextView
+ android:id="@+id/refreshText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="8dp"
+ android:textColor="@color/text_secondary"
+ android:textSize="13sp" />
+</LinearLayout>
diff --git a/app/src/main/res/values-sw600dp/bools.xml b/app/src/main/res/values-sw600dp/bools.xml
new file mode 100644
index 0000000..94b0f65
--- /dev/null
+++ b/app/src/main/res/values-sw600dp/bools.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <bool name="device_selectors_side_by_side">false</bool>
+</resources>
diff --git a/app/src/main/res/values/bools.xml b/app/src/main/res/values/bools.xml
new file mode 100644
index 0000000..9fc67cb
--- /dev/null
+++ b/app/src/main/res/values/bools.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Phones put the MIC and SPK pickers on one row; tablets stack them. -->
+ <bool name="device_selectors_side_by_side">true</bool>
+</resources>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 648210b..0059492 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">RECCoon</string>
- <string name="subtitle">by Tom Cooks · v1.0.0</string>
+ <string name="subtitle">by Tom Cooks · v1.1.2</string>
<string name="timer_zero">00:00</string>
- <string name="footer">44.1 kHz · 16-bit · PCM (WAV) · cue markers</string>
+ <string name="footer">44.1 kHz · 16-bit · WAV or AAC (M4A) · cue markers</string>
<string name="status_idle">Tap the button to start recording</string>
<string name="status_recording">Recording… tap again to stop and save</string>
- <string name="status_saving">Saving to Downloads…</string>
+ <string name="status_saving">Saving to Downloads/RECCoon…</string>
<string name="status_discarding">Discarding…</string>
<string name="discarded">Recording discarded</string>
<string name="discard_action">Discard</string>
+ <string name="discard_confirm_title">Discard recording?</string>
+ <string name="discard_confirm_message">Do you really want to discard the current recording?</string>
+ <string name="ok">OK</string>
<string name="cd_record">Start recording</string>
<string name="cd_stop">Stop and save</string>
@@ -23,24 +26,29 @@
<string name="marker_added_fmt">Marker %1$d added</string>
<string name="markers_title">Markers</string>
- <string name="mono_short">Mono</string>
+ <string name="mono_short">MONO</string>
+ <string name="stereo_short">STEREO</string>
<string name="mono_recording">Record in mono (half file size)</string>
- <string name="compress_short">Compressed (small M4A)</string>
- <string name="compress_recording">Save a compressed M4A instead of a WAV (much smaller, lossy)</string>
- <string name="input_label">Mic</string>
+ <string name="stereo_recording">Record in stereo (separate left and right channels)</string>
+ <string name="format_wav">WAV</string>
+ <string name="format_m4a">M4A</string>
+ <string name="format_wav_description">Save an uncompressed WAV file</string>
+ <string name="format_m4a_description">Save a compressed, much smaller M4A file</string>
+ <string name="input_label">MIC</string>
<string name="input_auto">Auto (Android picks)</string>
<string name="input_phone">Phone mic (built-in)</string>
+ <string name="input_refresh">Refresh inputs</string>
+ <string name="input_refreshed">Inputs refreshed</string>
<string name="silence_short">Silence alerts</string>
<string name="silence_recording">Silence notifications &amp; vibrations while recording</string>
- <string name="swap_short">Swap L/R</string>
<string name="swap_channels">Swap the left and right channels (use this if the meters are inverted)</string>
- <string name="monitor_short">Monitor</string>
- <string name="monitor_recording">Play the microphone through the selected output while recording</string>
<string name="monitor_warning">Monitoring live audio can cause feedback — use headphones.</string>
<string name="err_monitor">Could not start live monitoring</string>
- <string name="output_label">Out</string>
+ <string name="output_label">SPK</string>
<string name="output_auto">Auto (system default)</string>
<string name="output_speaker">Phone speaker</string>
+ <string name="output_refresh">Refresh outputs</string>
+ <string name="output_refreshed">Outputs refreshed</string>
<string name="dnd_title">Allow Do Not Disturb</string>
<string name="dnd_message">To silence notifications and vibrations while recording, allow RECCoon access to Do Not Disturb.</string>
<string name="dnd_open_settings">Open settings</string>
@@ -53,7 +61,7 @@
<string name="library">Recordings</string>
<string name="action_share">Share</string>
<string name="action_rename">Rename</string>
- <string name="action_export">Export</string>
+ <string name="action_export">Export .txt/.srt</string>
<string name="action_delete">Delete</string>
<string name="delete_title">Delete recording?</string>
<string name="delete_message">Delete %1$s? This cannot be undone.</string>
@@ -69,7 +77,7 @@
<string name="model_download_channel">Model download</string>
<string name="notification_recording">Recording audio…</string>
<string name="recordings_title">Recordings</string>
- <string name="recordings_subtitle">Saved in Downloads · reccoon-*.wav / *.m4a</string>
+ <string name="recordings_subtitle">Saved in Downloads/RECCoon</string>
<string name="recordings_empty">No recordings yet.\nTap the record button to make one.</string>
<string name="badge_transcript">TXT</string>
@@ -92,6 +100,7 @@
<string name="status_transcribing">Transcribing…</string>
<string name="status_no_speech">No speech was recognized</string>
<string name="status_transcript_saved">Transcript saved</string>
+ <string name="status_transcript_saved_fmt">Transcript saved %1$s</string>
<string name="err_download">Download failed: %1$s</string>
<string name="err_transcribe">Transcription failed: %1$s</string>
<string name="err_playback">Could not play this file</string>
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index 1cc7d6d..bbcdbd8 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -10,4 +10,26 @@
<item name="colorPrimaryDark">@color/background</item>
<item name="colorAccent">@color/accent</item>
</style>
+
+ <!-- Compact segmented-control look for the WAV/M4A, MONO/STEREO and
+ Silence alerts radios/checkbox. The radio circle is hidden and the
+ checked state is shown by the chip background and text colour. -->
+ <style name="OptionChip">
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">44dp</item>
+ <item name="android:button">@null</item>
+ <item name="android:background">@drawable/bg_option</item>
+ <item name="android:textColor">@color/option_text</item>
+ <item name="android:textSize">9sp</item>
+ <item name="android:minWidth">0dp</item>
+ <item name="android:minHeight">0dp</item>
+ <item name="android:paddingLeft">5dp</item>
+ <item name="android:paddingRight">5dp</item>
+ <item name="android:paddingTop">4dp</item>
+ <item name="android:paddingBottom">4dp</item>
+ <item name="android:drawablePadding">2dp</item>
+ <item name="android:includeFontPadding">false</item>
+ <item name="android:gravity">center</item>
+ <item name="android:maxLines">2</item>
+ </style>
</resources>