activity_main.xml 4.39 KB
Newer Older
Mattia Ducci's avatar
Mattia Ducci committed
1
<?xml version="1.0" encoding="utf-8"?>
2
<android.widget.LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Mattia Ducci's avatar
Mattia Ducci committed
3 4 5 6
    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"
7
    android:orientation="vertical"
Mattia Ducci's avatar
Mattia Ducci committed
8 9 10
    tools:context=".MainActivity">

    <TextView
11 12
        android:id="@+id/lbl_track_screen"
        android:layout_width="match_parent"
Mattia Ducci's avatar
Mattia Ducci committed
13
        android:layout_height="wrap_content"
14 15
        android:text="Track screen"
        android:textColor="@android:color/holo_red_light"
16
        android:textSize="24sp"
Mattia Ducci's avatar
Mattia Ducci committed
17 18 19 20 21
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

22 23 24 25 26 27 28 29
    <Switch
        android:id="@+id/entered_exited_screen_track_switch"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:showText="true"
        android:splitTrack="false"
        android:text="Tipo di evento"
        android:textOff="EXITED"
30 31
        android:textOn="ENTERED"
        android:textSize="18sp" />
32 33 34 35 36 37 38 39

    <Button
        android:id="@+id/btn_send_screen_track_event"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:onClick="onBtnScreenEventTrack"
        android:text="Invia screen track event" />

40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
    <TextView
        android:id="@+id/lbl_user_prefs"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="User preferences"
        android:textColor="@android:color/holo_red_light"
        android:textSize="24sp" />

    <Switch
        android:id="@+id/pref_bool_switch"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:showText="true"
        android:splitTrack="false"
        android:text="PrefBool"
        android:textOff="false"
        android:textOn="true"
        android:textSize="18sp" />

    <Switch
        android:id="@+id/pref_int_switch"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:showText="true"
        android:splitTrack="false"
        android:text="PrefInt"
        android:textOff="1"
        android:textOn="2"
        android:textSize="18sp" />

    <Button
        android:id="@+id/btn_send_pref_changes"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:onClick="onBtnUserPrefChanges"
        android:text="Invia pref changes" />

77

Mattia Ducci's avatar
Mattia Ducci committed
78 79 80 81 82 83 84 85
    <TextView
        android:id="@+id/textView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Track event"
        android:textColor="@android:color/holo_red_light"
        android:textSize="24sp" />

86 87 88 89 90 91 92 93
    <EditText
        android:id="@+id/editText_eventName"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ems="18"
        android:hint="event name"
        android:inputType="textPersonName" />

Mattia Ducci's avatar
Mattia Ducci committed
94 95
    <Switch
        android:id="@+id/event_category_switch"
96 97
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
Mattia Ducci's avatar
Mattia Ducci committed
98 99 100 101 102 103
        android:showText="true"
        android:splitTrack="false"
        android:text="Event category"
        android:textOff="application"
        android:textOn="action"
        android:textSize="18sp" />
104

Mattia Ducci's avatar
Mattia Ducci committed
105 106
    <Switch
        android:id="@+id/event_label_switch"
107 108
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
Mattia Ducci's avatar
Mattia Ducci committed
109 110 111 112 113 114 115
        android:showText="true"
        android:splitTrack="false"
        android:text="Event label"
        android:textOff="foreground"
        android:textOn="background"
        android:textSize="18sp" />

116 117 118 119 120 121

    <EditText
        android:id="@+id/editText_mostProbableActivity"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ems="18"
Mattia Ducci's avatar
Mattia Ducci committed
122
        android:hint="activity: walking or cycling. empty for running"
123 124 125 126 127 128 129 130 131
        android:inputType="textPersonName" />

    <Button
        android:id="@+id/btn_send_event"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:onClick="onBtnEventTrack"
        android:text="Invia event track" />

132
</android.widget.LinearLayout>