aboutsummaryrefslogtreecommitdiff
path: root/android/WALT/app/src/main/res/layout/fragment_accelerometer.xml
diff options
context:
space:
mode:
Diffstat (limited to 'android/WALT/app/src/main/res/layout/fragment_accelerometer.xml')
-rw-r--r--android/WALT/app/src/main/res/layout/fragment_accelerometer.xml80
1 files changed, 80 insertions, 0 deletions
diff --git a/android/WALT/app/src/main/res/layout/fragment_accelerometer.xml b/android/WALT/app/src/main/res/layout/fragment_accelerometer.xml
new file mode 100644
index 0000000..693287f
--- /dev/null
+++ b/android/WALT/app/src/main/res/layout/fragment_accelerometer.xml
@@ -0,0 +1,80 @@
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ 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">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <View android:layout_height="match_parent"
+ android:layout_width="0dp"
+ android:layout_weight="1" />
+
+ <ImageButton
+ android:id="@+id/button_start"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:tint="@color/button_tint"
+ app:srcCompat="@drawable/ic_play_arrow_black_24dp"
+ android:contentDescription="@string/start" />
+
+ </LinearLayout>
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <RelativeLayout
+ android:id="@+id/latency_chart_layout"
+ android:layout_width="match_parent"
+ android:visibility="gone"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:layout_margin="5dp"
+ android:background="@drawable/border">
+
+ <com.github.mikephil.charting.charts.ScatterChart
+ android:id="@+id/latency_chart"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="5dp" />
+
+ <Button
+ android:id="@+id/button_close_chart"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignTop="@id/latency_chart"
+ android:layout_alignEnd="@id/latency_chart"
+ android:tint="@color/button_tint"
+ android:layout_margin="5dp"
+ android:text="@string/close" />
+ </RelativeLayout>
+
+ <TextView
+ android:id="@+id/txt_log"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:background="#000000"
+ android:gravity="bottom"
+ android:textColor="#ffffff"
+ android:scrollbars="vertical" />
+
+ </LinearLayout>
+ </FrameLayout>
+ </LinearLayout>
+</FrameLayout>