activity_main.xml 3.91 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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116

    <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" />

    <EditText
        android:id="@+id/editText_eventCategory"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ems="18"
        android:hint="event category"
        android:inputType="textPersonName" />

    <EditText
        android:id="@+id/editText_eventLabel"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ems="18"
        android:hint="event label"
        android:inputType="textPersonName" />

    <EditText
        android:id="@+id/editText_mostProbableActivity"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ems="18"
        android:hint="most probable activity"
        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" />

117
</android.widget.LinearLayout>