layout_display_gif.xml 8.54 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".DisplayGIFActivity">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="horizontal">

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
17
            android:layout_margin="8dp"
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
            android:layout_weight="1">

            <LinearLayout
                android:id="@+id/linearLayout3"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="8dp"
                android:orientation="horizontal"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent">

                <ImageView
                    android:id="@+id/img_displayGif_gif"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:src="@drawable/abc_vector_test" />

                <androidx.constraintlayout.widget.ConstraintLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_weight="1">

                    <TextView
                        android:id="@+id/lbl_displayGif_name"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="8dp"
                        android:text="TextView"
                        android:textAppearance="@style/AppTextTitle"
                        android:textSize="22sp"
                        app:layout_constraintEnd_toEndOf="parent"
                        app:layout_constraintStart_toStartOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <TextView
                        android:id="@+id/lbl_displayGif_titleTag"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="16dp"
                        android:text="Tags :"
                        app:layout_constraintEnd_toEndOf="parent"
                        app:layout_constraintStart_toStartOf="parent"
                        app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_name" />

                    <TextView
                        android:id="@+id/lbl_displayGif_tag"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="16dp"
                        android:layout_marginTop="8dp"
                        android:text="TextView"
                        app:layout_constraintEnd_toEndOf="parent"
                        app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_titleTag"
                        app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_titleTag" />
                </androidx.constraintlayout.widget.ConstraintLayout>
            </LinearLayout>

            <TextView
                android:id="@+id/lbl_displayGif_nbResult"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
81
                android:layout_marginTop="40dp"
82
                android:text="Nb Results"
83
84
                app:layout_constraintStart_toStartOf="@+id/linearLayout3"
                app:layout_constraintTop_toBottomOf="@+id/linearLayout3" />
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

            <EditText
                android:id="@+id/txt_displayGif_nbResult"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginStart="8dp"
                android:ems="10"
                android:inputType="numberDecimal"
                android:text="8"
                android:textColor="@color/white"
                app:layout_constraintBottom_toBottomOf="@+id/lbl_displayGif_nbResult"
                app:layout_constraintEnd_toEndOf="@+id/linearLayout3"
                app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_nbResult"
                app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_nbResult" />

            <SeekBar
                android:id="@+id/skbr_displayGif_nbResult"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginTop="16dp"
                android:max="49"
                android:progress="7"
                app:layout_constraintEnd_toEndOf="@+id/txt_displayGif_nbResult"
                app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_nbResult"
                app:layout_constraintTop_toBottomOf="@+id/txt_displayGif_nbResult" />

111
112
113
114
115
116
            <TextView
                android:id="@+id/lbl_displayGif_recherche"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="32dp"
                android:text="Rechercher un gif"
117
                app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_nbResult"
118
119
                app:layout_constraintTop_toBottomOf="@+id/skbr_displayGif_nbResult" />

120
121
122
123
124
125
126
127
128
129
130
131
            <EditText
                android:id="@+id/txt_displayGif_recherche"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginStart="8dp"
                android:ems="10"
                android:inputType="textPersonName"
                android:textColor="@color/white"
                app:layout_constraintBottom_toBottomOf="@+id/lbl_displayGif_recherche"
                app:layout_constraintStart_toEndOf="@+id/lbl_displayGif_recherche"
                app:layout_constraintTop_toTopOf="@+id/lbl_displayGif_recherche" />

132
133
134
135
136
137
138
139
140
141
            <TextView
                android:id="@+id/lbl_displayGif_searchTenor"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Search Tenor"
                android:textSize="12sp"
                app:layout_constraintEnd_toEndOf="@+id/lbl_displayGif_recherche"
                app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_recherche"
                app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_recherche" />

142
143
            <Switch
                android:id="@+id/swtch_displayGif_isNSFW"
144
145
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
146
147
148
149
150
151
                android:layout_marginTop="16dp"
                android:text="NSFW"
                android:textColor="@color/white"
                app:layout_constraintStart_toStartOf="@+id/lbl_displayGif_recherche"
                app:layout_constraintTop_toBottomOf="@+id/lbl_displayGif_recherche" />

152
153
        </androidx.constraintlayout.widget.ConstraintLayout>

154
        <androidx.constraintlayout.widget.ConstraintLayout
155
156
            android:layout_width="match_parent"
            android:layout_height="match_parent"
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
            android:layout_margin="8dp"
            android:layout_weight="1">

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/rclr_displayGif_relatedGif"
                android:layout_width="0dp"
                android:layout_height="0dp"
                android:layout_weight="1"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                tools:listitem="@layout/layout_pattern_gif" />

            <TextView
                android:id="@+id/lbl_displayGif_titleRelatedGif"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Related GIFs"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />
        </androidx.constraintlayout.widget.ConstraintLayout>
179
180
181
182

    </LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>