main_fragment.xml 5.35 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
    <Button android:id="@+id/button_pair"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/main_button_pair"
            android:layout_marginTop="@dimen/main_label_margin"
            style="@style/MainButton"
            app:layout_constraintTop_toBottomOf="@id/label_status"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"/>

36
    <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent"
Anon's avatar
Anon committed
37
                                                       android:layout_height="0dp"
38
                                                       app:layout_constraintTop_toBottomOf="@id/button_pair"
Anon's avatar
Anon committed
39
                                                       app:layout_constraintBottom_toBottomOf="parent"
40
41
42
43
                                                       android:id="@+id/container_disconnected">
    </androidx.constraintlayout.widget.ConstraintLayout>

    <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent"
Anon's avatar
Anon committed
44
                                                       android:layout_height="0dp"
45
                                                       app:layout_constraintTop_toBottomOf="@id/button_pair"
46
47
                                                       android:id="@+id/container_connected">
        <Button android:layout_width="wrap_content"
48
                android:layout_height="wrap_content"
49
                android:layout_marginTop="@dimen/main_label_margin"
Anon's avatar
Anon committed
50
                style="@style/MainButton"
51
52
                android:id="@+id/button_hatchery"
                android:text="@string/main_button_browse_apps"
53
                app:layout_constraintLeft_toLeftOf="parent"
54
                app:layout_constraintRight_toRightOf="parent"
Anon's avatar
Anon committed
55
                app:layout_constraintTop_toTopOf="parent"/>
56

57
        <Button android:layout_width="wrap_content"
58
                android:layout_height="wrap_content"
Anon's avatar
Anon committed
59
60
                android:layout_marginTop="@dimen/main_button_margin"
                style="@style/MainButton"
61
62
63
64
                android:id="@+id/button_send"
                android:text="@string/main_button_send_file"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"
Anon's avatar
Anon committed
65
                app:layout_constraintTop_toBottomOf="@+id/button_hatchery"/>
Anon's avatar
Anon committed
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86

        <Button android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/main_button_margin"
                style="@style/MainButton"
                android:id="@+id/button_mood"
                android:text="@string/main_button_mood"
                app:layout_constraintTop_toBottomOf="@+id/button_send"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"/>

        <Button android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/main_button_margin"
                style="@style/MainButton"
                android:id="@+id/button_beautiful"
                android:text="@string/main_button_beautiful"
                app:layout_constraintTop_toBottomOf="@+id/button_mood"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"/>

Anon's avatar
Anon committed
87
88
89
90
91
92
93
94
95
96
        <Button android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/main_button_margin"
                style="@style/MainButton"
                android:id="@+id/button_set_time"
                android:text="@string/main_button_set_time"
                app:layout_constraintTop_toBottomOf="@+id/button_beautiful"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"/>

97
    </androidx.constraintlayout.widget.ConstraintLayout>
98

99
</androidx.constraintlayout.widget.ConstraintLayout>
Anon's avatar
Anon committed
100