• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2    xmlns:tools="http://schemas.android.com/tools"
3    xmlns:walt="http://schemas.android.com/apk/res-auto"
4    android:layout_width="match_parent"
5    android:layout_height="match_parent"
6    tools:context="org.chromium.latency.walt.TapLatencyFragment">
7
8    <LinearLayout
9        android:layout_width="match_parent"
10        android:layout_height="match_parent"
11        android:orientation="vertical">
12
13        <RelativeLayout
14            android:layout_width="match_parent"
15            android:layout_height="wrap_content"
16            android:orientation="horizontal">
17
18            <ImageButton
19                android:id="@+id/button_stop_audio"
20                android:layout_width="wrap_content"
21                android:layout_height="wrap_content"
22                android:layout_alignParentLeft="true"
23                android:tint="@color/button_tint"
24                android:src="@drawable/ic_stop_black_24dp" />
25
26            <ImageButton
27                android:id="@+id/button_start_audio"
28                android:layout_width="wrap_content"
29                android:layout_height="wrap_content"
30                android:layout_alignParentRight="true"
31                android:tint="@color/button_tint"
32                android:src="@drawable/ic_play_arrow_black_24dp" />
33
34            <Spinner
35                android:id="@+id/spinner_audio_mode"
36                android:layout_height="45dp"
37                android:layout_width="fill_parent"
38                android:layout_toRightOf="@id/button_stop_audio"
39                android:layout_toLeftOf="@id/button_start_audio"
40                android:prompt="@string/audio_mode"/>
41
42        </RelativeLayout>
43
44        <include
45            android:id="@+id/chart_layout"
46            layout="@layout/line_chart" />
47
48        <org.chromium.latency.walt.HistogramChart
49            android:id="@+id/latency_chart"
50            android:layout_width="match_parent"
51            android:layout_height="0dp"
52            android:layout_weight="1"
53            android:visibility="gone"
54            walt:description="Latency [ms]"
55            walt:binWidth="0.1" />
56
57        <!-- For now the results are just listed in this textView -->
58        <TextView
59            android:id="@+id/txt_box_audio"
60            android:layout_width="match_parent"
61            android:layout_height="0dp"
62            android:layout_weight="2"
63            android:background="#aaaaaa"
64            android:gravity="bottom"
65            android:scrollbars="vertical" />
66
67    </LinearLayout>
68</FrameLayout>
69