aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Burk <philburk@mobileer.com>2023-02-06 16:17:46 -0800
committerGitHub <noreply@github.com>2023-02-06 16:17:46 -0800
commita3a972f4eb28e6325217efd69f796465cae3a668 (patch)
tree4d55e60c741e5b74344d5267b2ac781a22a3a039
parente19e3987714b3a30dcba3f7fab458b2f2d71c7ae (diff)
downloadoboe-a3a972f4eb28e6325217efd69f796465cae3a668.tar.gz
Add scrolling to most Activities for small screens (#1704)
Fixes #1703
-rw-r--r--apps/OboeTester/app/src/main/java/com/mobileer/oboetester/RoundTripLatencyActivity.java2
-rw-r--r--apps/OboeTester/app/src/main/res/layout/activity_auto_glitches.xml16
-rw-r--r--apps/OboeTester/app/src/main/res/layout/activity_echo.xml5
-rw-r--r--apps/OboeTester/app/src/main/res/layout/activity_manual_glitches.xml19
-rw-r--r--apps/OboeTester/app/src/main/res/layout/activity_recorder.xml14
-rw-r--r--apps/OboeTester/app/src/main/res/layout/activity_rt_latency.xml14
-rw-r--r--apps/OboeTester/app/src/main/res/layout/activity_tap_to_tone.xml23
-rw-r--r--apps/OboeTester/app/src/main/res/layout/activity_test_input.xml14
-rw-r--r--apps/OboeTester/app/src/main/res/layout/activity_test_output.xml14
-rw-r--r--apps/OboeTester/app/src/main/res/layout/auto_test_runner.xml4
10 files changed, 87 insertions, 38 deletions
diff --git a/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/RoundTripLatencyActivity.java b/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/RoundTripLatencyActivity.java
index 72d41dba..69207688 100644
--- a/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/RoundTripLatencyActivity.java
+++ b/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/RoundTripLatencyActivity.java
@@ -22,7 +22,6 @@ import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.NonNull;
-import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
@@ -344,7 +343,6 @@ public class RoundTripLatencyActivity extends AnalyzerActivity {
mShareButton = (Button) findViewById(R.id.button_share);
mShareButton.setEnabled(false);
mAnalyzerView = (TextView) findViewById(R.id.text_status);
- mAnalyzerView.setMovementMethod(new ScrollingMovementMethod());
updateEnabledWidgets();
hideSettingsViews();
diff --git a/apps/OboeTester/app/src/main/res/layout/activity_auto_glitches.xml b/apps/OboeTester/app/src/main/res/layout/activity_auto_glitches.xml
index 6d251efc..69801638 100644
--- a/apps/OboeTester/app/src/main/res/layout/activity_auto_glitches.xml
+++ b/apps/OboeTester/app/src/main/res/layout/activity_auto_glitches.xml
@@ -1,14 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
+ android:fillViewport="true"
+ tools:context="com.mobileer.oboetester.AutomatedGlitchActivity" >
+<LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context="com.mobileer.oboetester.AutomatedGlitchActivity">
+ android:paddingTop="@dimen/activity_vertical_margin" >
<LinearLayout
android:layout_width="match_parent"
@@ -36,7 +41,8 @@
<com.mobileer.oboetester.AutomatedTestRunner
android:id="@+id/auto_test_runner"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical" />
</LinearLayout>
+</ScrollView>
diff --git a/apps/OboeTester/app/src/main/res/layout/activity_echo.xml b/apps/OboeTester/app/src/main/res/layout/activity_echo.xml
index 128a2160..65cd6ea7 100644
--- a/apps/OboeTester/app/src/main/res/layout/activity_echo.xml
+++ b/apps/OboeTester/app/src/main/res/layout/activity_echo.xml
@@ -4,10 +4,11 @@
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.mobileer.oboetester.EchoActivity"
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="wrap_content"
+ android:fillViewport="true" >
<LinearLayout
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
diff --git a/apps/OboeTester/app/src/main/res/layout/activity_manual_glitches.xml b/apps/OboeTester/app/src/main/res/layout/activity_manual_glitches.xml
index e8e7216c..5798e2ea 100644
--- a/apps/OboeTester/app/src/main/res/layout/activity_manual_glitches.xml
+++ b/apps/OboeTester/app/src/main/res/layout/activity_manual_glitches.xml
@@ -1,14 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
+ android:fillViewport="true"
+ tools:context="com.mobileer.oboetester.ManualGlitchActivity"
+ >
+<LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context="com.mobileer.oboetester.ManualGlitchActivity">
+ android:paddingTop="@dimen/activity_vertical_margin">
<com.mobileer.oboetester.StreamConfigurationView
android:id="@+id/inputStreamConfiguration"
@@ -100,5 +106,8 @@
<com.mobileer.oboetester.WaveformView
android:id="@+id/waveview_audio"
android:layout_width="fill_parent"
- android:layout_height="fill_parent" />
+ android:layout_height="fill_parent"
+ android:minHeight="100dp"
+ />
</LinearLayout>
+</ScrollView>
diff --git a/apps/OboeTester/app/src/main/res/layout/activity_recorder.xml b/apps/OboeTester/app/src/main/res/layout/activity_recorder.xml
index 0bc2bd1b..4ee772f0 100644
--- a/apps/OboeTester/app/src/main/res/layout/activity_recorder.xml
+++ b/apps/OboeTester/app/src/main/res/layout/activity_recorder.xml
@@ -1,14 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
+ android:fillViewport="true"
+ tools:context="com.mobileer.oboetester.RecorderActivity" >
+<LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context="com.mobileer.oboetester.RecorderActivity">
+ android:paddingTop="@dimen/activity_vertical_margin" >
<com.mobileer.oboetester.StreamConfigurationView
android:id="@+id/streamConfiguration"
@@ -96,3 +101,4 @@
android:layout_height="20dp" />
</LinearLayout>
+</ScrollView>
diff --git a/apps/OboeTester/app/src/main/res/layout/activity_rt_latency.xml b/apps/OboeTester/app/src/main/res/layout/activity_rt_latency.xml
index 93c881e8..09728da8 100644
--- a/apps/OboeTester/app/src/main/res/layout/activity_rt_latency.xml
+++ b/apps/OboeTester/app/src/main/res/layout/activity_rt_latency.xml
@@ -1,14 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
+ android:fillViewport="true"
+ tools:context="com.mobileer.oboetester.RoundTripLatencyActivity" >
+<LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context="com.mobileer.oboetester.RoundTripLatencyActivity">
+ android:paddingTop="@dimen/activity_vertical_margin" >
<com.mobileer.oboetester.StreamConfigurationView
android:id="@+id/inputStreamConfiguration"
@@ -97,3 +102,4 @@
android:textStyle="bold" />
</LinearLayout>
+</ScrollView>
diff --git a/apps/OboeTester/app/src/main/res/layout/activity_tap_to_tone.xml b/apps/OboeTester/app/src/main/res/layout/activity_tap_to_tone.xml
index ed89cffb..6390e79d 100644
--- a/apps/OboeTester/app/src/main/res/layout/activity_tap_to_tone.xml
+++ b/apps/OboeTester/app/src/main/res/layout/activity_tap_to_tone.xml
@@ -1,13 +1,20 @@
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
+ android:fillViewport="true"
+ tools:context="com.mobileer.oboetester.TapToToneActivity"
+ >
+<LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context="com.mobileer.oboetester.TapToToneActivity">
+ android:paddingTop="@dimen/activity_vertical_margin">
<include layout="@layout/merge_audio_simple"/>
@@ -41,8 +48,8 @@
<com.mobileer.oboetester.WaveformView
android:id="@+id/waveview_audio"
android:layout_width="fill_parent"
- android:layout_height="fill_parent" />
-
-
+ android:layout_height="fill_parent"
+ android:minHeight="100dp"
+ />
</LinearLayout>
-
+</ScrollView>
diff --git a/apps/OboeTester/app/src/main/res/layout/activity_test_input.xml b/apps/OboeTester/app/src/main/res/layout/activity_test_input.xml
index 77424b48..27c99eb7 100644
--- a/apps/OboeTester/app/src/main/res/layout/activity_test_input.xml
+++ b/apps/OboeTester/app/src/main/res/layout/activity_test_input.xml
@@ -1,14 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
+ android:fillViewport="true"
+ tools:context="com.mobileer.oboetester.TestInputActivity"
+ >
+<LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
- tools:context="com.mobileer.oboetester.TestInputActivity">
+ >
<include layout="@layout/merge_audio_common"/>
@@ -43,3 +50,4 @@
android:layout_width="fill_parent"
android:layout_height="20dp" />
</LinearLayout>
+</ScrollView>
diff --git a/apps/OboeTester/app/src/main/res/layout/activity_test_output.xml b/apps/OboeTester/app/src/main/res/layout/activity_test_output.xml
index 395ea161..639eae7c 100644
--- a/apps/OboeTester/app/src/main/res/layout/activity_test_output.xml
+++ b/apps/OboeTester/app/src/main/res/layout/activity_test_output.xml
@@ -1,14 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
+ android:fillViewport="true"
+ tools:context="com.mobileer.oboetester.TestOutputActivity"
+ >
+<LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
- tools:context="com.mobileer.oboetester.TestOutputActivity">
+ >
<include layout="@layout/merge_audio_common"/>
@@ -165,3 +172,4 @@
android:orientation="horizontal" />
</LinearLayout>
+</ScrollView>
diff --git a/apps/OboeTester/app/src/main/res/layout/auto_test_runner.xml b/apps/OboeTester/app/src/main/res/layout/auto_test_runner.xml
index bdaf90d5..acbcb599 100644
--- a/apps/OboeTester/app/src/main/res/layout/auto_test_runner.xml
+++ b/apps/OboeTester/app/src/main/res/layout/auto_test_runner.xml
@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
@@ -70,7 +70,7 @@
<TextView
android:id="@+id/text_log_auto"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
android:scrollbars = "vertical"
android:gravity="bottom"
android:text="@string/log_of_test_results"