aboutsummaryrefslogtreecommitdiff
path: root/android/WALT/app/src/main/res/layout/fragment_audio.xml
diff options
context:
space:
mode:
Diffstat (limited to 'android/WALT/app/src/main/res/layout/fragment_audio.xml')
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_audio.xml68
1 files changed, 68 insertions, 0 deletions
diff --git a/android/WALT/app/src/main/res/layout/fragment_audio.xml b/android/WALT/app/src/main/res/layout/fragment_audio.xml
new file mode 100644
index 0000000..e11f157
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_audio.xml
@@ -0,0 +1,68 @@
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:walt="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="org.chromium.latency.walt.TapLatencyFragment">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <ImageButton
+ android:id="@+id/button_stop_audio"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_stop_black_24dp" />
+
+ <ImageButton
+ android:id="@+id/button_start_audio"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:tint="@color/button_tint"
+ android:src="@drawable/ic_play_arrow_black_24dp" />
+
+ <Spinner
+ android:id="@+id/spinner_audio_mode"
+ android:layout_height="45dp"
+ android:layout_width="fill_parent"
+ android:layout_toRightOf="@id/button_stop_audio"
+ android:layout_toLeftOf="@id/button_start_audio"
+ android:prompt="@string/audio_mode"/>
+
+ </RelativeLayout>
+
+ <include
+ android:id="@+id/chart_layout"
+ layout="@layout/line_chart" />
+
+ <org.chromium.latency.walt.HistogramChart
+ android:id="@+id/latency_chart"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:visibility="gone"
+ walt:description="Latency [ms]"
+ walt:binWidth="0.1" />
+
+ <!-- For now the results are just listed in this textView -->
+ <TextView
+ android:id="@+id/txt_box_audio"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="2"
+ android:background="#aaaaaa"
+ android:gravity="bottom"
+ android:scrollbars="vertical" />
+
+ </LinearLayout>
+</FrameLayout>