aboutsummaryrefslogtreecommitdiff
path: root/android/WALT/app/src/main/res/layout/fragment_midi.xml
blob: fba287fec66efc8d33d3832a62e04716128518dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<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_start_midi_in"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentStart="true"
                android:tint="@color/button_tint"
                walt:srcCompat="@drawable/ic_input_black_24dp"
                android:contentDescription="@string/start_midi_in" />

            <ImageButton
                android:id="@+id/button_start_midi_out"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:tint="@color/button_tint"
                walt:srcCompat="@drawable/ic_output_black_24dp"
                android:contentDescription="@string/start_midi_out" />
        </RelativeLayout>

        <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:binWidth="0.5" />

        <!-- For now the results are just listed in this textView -->
        <TextView
            android:id="@+id/txt_box_midi"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="2"
            android:background="#aaaaaa"
            android:gravity="bottom"
            android:scrollbars="vertical" />

    </LinearLayout>
</FrameLayout>