main_fragment.xml 4.37 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
                                                   xmlns:app="http://schemas.android.com/apk/res-auto"
                                                   android:layout_width="match_parent"
                                                   android:layout_height="match_parent"
                                                   android:padding="@dimen/activity_padding">

    <androidx.appcompat.widget.AppCompatImageView
            android:id="@+id/image_logo"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/card10_logo_text"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
15
            app:layout_constraintTop_toTopOf="parent"/>
16
17
18
19
20
21
22
23

    <TextView android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/label_status"
              android:layout_marginTop="@dimen/logo_margin_bottom"
              android:gravity="center"
              app:layout_constraintLeft_toLeftOf="parent"
              app:layout_constraintRight_toRightOf="parent"
24
              app:layout_constraintTop_toBottomOf="@+id/image_logo"/>
25
26
27
28
29
30
31
32
33
34
35
36
37

    <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent"
                                                       android:layout_height="wrap_content"
                                                       app:layout_constraintTop_toBottomOf="@+id/label_status"
                                                       android:id="@+id/container_connected">
        <Button android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/main_label_margin"
                android:id="@+id/button_hatchery"
                android:text="@string/main_button_browse_apps"

                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"
38
                app:layout_constraintTop_toTopOf="parent"/>
39
40
41
42
43
44
45
46
47

        <Button android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/main_label_margin"
                android:id="@+id/button_send"
                android:text="@string/main_button_send_file"

                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"
48
                app:layout_constraintTop_toBottomOf="@+id/button_hatchery"/>
49
50
51
52
53
54
55
56
57

        <Button android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/main_label_margin"
                android:id="@+id/button_mood"
                android:text="@string/main_button_mood"

                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"
58
                app:layout_constraintTop_toBottomOf="@+id/button_send"/>
59
60
61
62
63
64
    </androidx.constraintlayout.widget.ConstraintLayout>

    <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent"
                                                       android:layout_height="wrap_content"
                                                       app:layout_constraintTop_toBottomOf="@+id/label_status"
                                                       android:id="@+id/container_disconnected">
65
        <Button android:id="@+id/button_pair"
66
67
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
68
                android:text="pair"
69
70
71
72
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"/>

73
74
75
76
77
78
79
        <Button android:id="@+id/button_connect"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/main_button_connect"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintLeft_toRightOf="@id/button_pair"/>

80
    </androidx.constraintlayout.widget.ConstraintLayout>
81
</androidx.constraintlayout.widget.ConstraintLayout>