14 |
gabriel |
1 |
<?xml version="1.0" encoding="utf-8"?>
|
|
|
2 |
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
3 |
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
4 |
xmlns:tools="http://schemas.android.com/tools"
|
|
|
5 |
android:id="@+id/frameLayout3"
|
|
|
6 |
android:layout_width="match_parent"
|
|
|
7 |
android:layout_height="match_parent"
|
|
|
8 |
android:background="@color/windowBackgroud"
|
|
|
9 |
tools:context=".fragment.CapsuleDetail">
|
|
|
10 |
|
|
|
11 |
<androidx.cardview.widget.CardView
|
|
|
12 |
android:id="@+id/cardView3"
|
|
|
13 |
android:layout_width="0dp"
|
|
|
14 |
android:layout_height="240dp"
|
|
|
15 |
android:layout_gravity="center"
|
|
|
16 |
android:layout_marginLeft="20dp"
|
|
|
17 |
android:layout_marginTop="20dp"
|
|
|
18 |
android:layout_marginRight="20dp"
|
|
|
19 |
app:cardCornerRadius="8dp"
|
|
|
20 |
app:cardElevation="9dp"
|
|
|
21 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
22 |
app:layout_constraintHorizontal_bias="0.495"
|
|
|
23 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
24 |
app:layout_constraintTop_toTopOf="parent"
|
|
|
25 |
tools:visibility="visible">
|
|
|
26 |
|
|
|
27 |
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
28 |
android:layout_width="match_parent"
|
|
|
29 |
android:layout_height="match_parent"
|
|
|
30 |
tools:visibility="visible">
|
|
|
31 |
|
|
|
32 |
<ImageView
|
|
|
33 |
android:id="@+id/imageView4"
|
|
|
34 |
android:layout_width="120dp"
|
|
|
35 |
android:layout_height="120dp"
|
|
|
36 |
android:layout_marginTop="5dp"
|
|
|
37 |
android:foregroundGravity="center"
|
|
|
38 |
android:src="@drawable/cardview_footer_capsule"
|
|
|
39 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
40 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
41 |
app:layout_constraintTop_toTopOf="parent"
|
|
|
42 |
tools:srcCompat="@drawable/ic_cuestionario_start" />
|
|
|
43 |
|
|
|
44 |
<LinearLayout
|
|
|
45 |
android:layout_width="0dp"
|
|
|
46 |
android:layout_height="wrap_content"
|
|
|
47 |
android:layout_marginTop="5dp"
|
|
|
48 |
android:gravity="center"
|
|
|
49 |
android:orientation="vertical"
|
|
|
50 |
android:padding="5dp"
|
|
|
51 |
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
52 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
53 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
54 |
app:layout_constraintTop_toBottomOf="@+id/imageView4">
|
|
|
55 |
|
|
|
56 |
<TextView
|
|
|
57 |
android:id="@+id/textView19"
|
|
|
58 |
android:layout_width="wrap_content"
|
|
|
59 |
android:layout_height="wrap_content"
|
|
|
60 |
android:layout_marginTop="5dp"
|
|
|
61 |
android:fontFamily="@font/roboto"
|
|
|
62 |
android:text="Nombre de Capsula"
|
|
|
63 |
android:textAlignment="center"
|
|
|
64 |
android:textColor="@color/colorPrincipalNew"
|
|
|
65 |
android:textSize="20sp"
|
|
|
66 |
android:textStyle="bold" />
|
|
|
67 |
|
|
|
68 |
<LinearLayout
|
|
|
69 |
android:layout_width="match_parent"
|
|
|
70 |
android:layout_height="match_parent"
|
|
|
71 |
android:gravity="center"
|
|
|
72 |
android:orientation="horizontal"
|
|
|
73 |
android:padding="5dp">
|
|
|
74 |
|
|
|
75 |
<TextView
|
|
|
76 |
android:id="@+id/textView21"
|
|
|
77 |
android:layout_width="wrap_content"
|
|
|
78 |
android:layout_height="wrap_content"
|
|
|
79 |
android:layout_marginEnd="10dp"
|
|
|
80 |
android:fontFamily="@font/roboto"
|
|
|
81 |
android:text="Comentarios: 10"
|
|
|
82 |
android:textColor="@color/black"
|
|
|
83 |
android:textSize="14sp" />
|
|
|
84 |
|
|
|
85 |
<TextView
|
|
|
86 |
android:id="@+id/textView22"
|
|
|
87 |
android:layout_width="wrap_content"
|
|
|
88 |
android:layout_height="wrap_content"
|
|
|
89 |
android:layout_marginEnd="12dp"
|
|
|
90 |
android:fontFamily="@font/roboto"
|
|
|
91 |
android:text="Puntuacion: 4.9"
|
|
|
92 |
android:textColor="@color/black"
|
|
|
93 |
android:textSize="14sp" />
|
|
|
94 |
</LinearLayout>
|
|
|
95 |
|
|
|
96 |
<ProgressBar
|
|
|
97 |
android:id="@+id/progressBar3"
|
|
|
98 |
style="?android:attr/progressBarStyleHorizontal"
|
|
|
99 |
android:layout_width="match_parent"
|
|
|
100 |
android:layout_height="10dp"
|
|
|
101 |
android:layout_marginLeft="20dp"
|
|
|
102 |
android:layout_marginRight="20dp"
|
|
|
103 |
android:progressTint="@color/buttonIntroBackground" />
|
|
|
104 |
|
|
|
105 |
<TextView
|
|
|
106 |
android:id="@+id/textView17"
|
|
|
107 |
android:layout_width="wrap_content"
|
|
|
108 |
android:layout_height="wrap_content"
|
|
|
109 |
android:layout_marginBottom="10dp"
|
|
|
110 |
android:text="0%"
|
|
|
111 |
android:textColor="@color/colorTextColor"
|
|
|
112 |
android:textSize="14sp" />
|
|
|
113 |
|
|
|
114 |
</LinearLayout>
|
|
|
115 |
|
|
|
116 |
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
117 |
|
|
|
118 |
</androidx.cardview.widget.CardView>
|
|
|
119 |
|
|
|
120 |
<TextView
|
|
|
121 |
android:id="@+id/textView20"
|
|
|
122 |
android:layout_width="wrap_content"
|
|
|
123 |
android:layout_height="wrap_content"
|
|
|
124 |
android:fontFamily="@font/roboto"
|
|
|
125 |
android:padding="10dp"
|
|
|
126 |
android:text="Descripción de capsula, un texto que exprese en resumen lo que se encontrara en esta capsula"
|
|
|
127 |
android:textAlignment="center"
|
|
|
128 |
android:textColor="@color/colorTextColor"
|
|
|
129 |
android:textSize="20sp"
|
|
|
130 |
app:layout_constraintBottom_toTopOf="@+id/continuarbutton"
|
|
|
131 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
132 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
133 |
app:layout_constraintTop_toBottomOf="@+id/tabLayout2"
|
|
|
134 |
tools:visibility="gone" />
|
|
|
135 |
|
|
|
136 |
<TextView
|
|
|
137 |
android:id="@+id/textView23"
|
|
|
138 |
android:layout_width="wrap_content"
|
|
|
139 |
android:layout_height="wrap_content"
|
|
|
140 |
android:layout_marginTop="15dp"
|
|
|
141 |
android:text="@string/do_comments"
|
|
|
142 |
android:textColor="@color/colorTextColor"
|
|
|
143 |
android:textSize="16sp"
|
|
|
144 |
android:visibility="gone"
|
|
|
145 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
146 |
app:layout_constraintHorizontal_bias="0.498"
|
|
|
147 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
148 |
app:layout_constraintTop_toBottomOf="@+id/tabLayout2"
|
|
|
149 |
tools:visibility="visible" />
|
|
|
150 |
|
|
|
151 |
<RatingBar
|
|
|
152 |
android:id="@+id/ratingBar"
|
|
|
153 |
android:layout_width="wrap_content"
|
|
|
154 |
android:layout_height="wrap_content"
|
|
|
155 |
android:layout_marginTop="20dp"
|
|
|
156 |
android:numStars="5"
|
|
|
157 |
android:progressTint="@color/buttonIntroBackground"
|
|
|
158 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
159 |
app:layout_constraintHorizontal_bias="0.497"
|
|
|
160 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
161 |
app:layout_constraintTop_toBottomOf="@+id/textView23" />
|
|
|
162 |
|
|
|
163 |
|
|
|
164 |
<EditText
|
|
|
165 |
android:id="@+id/editTextComentar"
|
|
|
166 |
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
167 |
android:layout_width="0dp"
|
|
|
168 |
android:layout_height="wrap_content"
|
|
|
169 |
android:layout_marginStart="10dp"
|
|
|
170 |
android:layout_marginEnd="2dp"
|
|
|
171 |
android:background="@drawable/edit_rounded_style"
|
|
|
172 |
android:gravity="top|start"
|
|
|
173 |
android:hint="Comentar"
|
|
|
174 |
android:inputType="textMultiLine"
|
|
|
175 |
android:lines="8"
|
|
|
176 |
android:maxLines="10"
|
|
|
177 |
android:minLines="3"
|
|
|
178 |
android:paddingStart="10dp"
|
|
|
179 |
android:paddingTop="10dp"
|
|
|
180 |
android:paddingEnd="10dp"
|
|
|
181 |
android:paddingBottom="10dp"
|
|
|
182 |
android:scrollbars="vertical"
|
|
|
183 |
android:textAlignment="textStart"
|
|
|
184 |
android:textColor="@color/colorTextColor"
|
|
|
185 |
android:textColorHint="@color/colorAccent"
|
|
|
186 |
android:textSize="16sp"
|
|
|
187 |
android:visibility="gone"
|
|
|
188 |
app:layout_constraintBottom_toTopOf="@+id/continuarbutton"
|
|
|
189 |
app:layout_constraintEnd_toStartOf="@+id/button4"
|
|
|
190 |
app:layout_constraintHorizontal_bias="1.0"
|
|
|
191 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
192 |
app:layout_constraintTop_toBottomOf="@+id/ratingBar"
|
|
|
193 |
app:layout_constraintVertical_bias="0.099"
|
|
|
194 |
tools:visibility="visible" />
|
|
|
195 |
|
|
|
196 |
<Button
|
|
|
197 |
android:id="@+id/button4"
|
|
|
198 |
android:layout_width="50dp"
|
|
|
199 |
android:layout_height="wrap_content"
|
|
|
200 |
android:layout_marginEnd="8dp"
|
|
|
201 |
android:background="@drawable/baseline_keyboard_arrow_right_24"
|
|
|
202 |
android:backgroundTint="@color/colorPrimary"
|
|
|
203 |
android:elevation="5dp"
|
|
|
204 |
android:visibility="gone"
|
|
|
205 |
app:layout_constraintBottom_toTopOf="@+id/continuarbutton"
|
|
|
206 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
207 |
app:layout_constraintTop_toBottomOf="@+id/ratingBar"
|
|
|
208 |
app:layout_constraintVertical_bias="0.136"
|
|
|
209 |
tools:visibility="visible" />
|
|
|
210 |
|
|
|
211 |
<com.google.android.material.tabs.TabLayout
|
|
|
212 |
android:id="@+id/tabLayout2"
|
|
|
213 |
android:layout_width="0dp"
|
|
|
214 |
android:layout_height="wrap_content"
|
|
|
215 |
android:layout_marginTop="10dp"
|
|
|
216 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
217 |
app:layout_constraintHorizontal_bias="1.0"
|
|
|
218 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
219 |
app:layout_constraintTop_toBottomOf="@+id/cardView3"
|
|
|
220 |
app:tabIndicatorColor="@color/buttonIntroBackground">
|
|
|
221 |
|
|
|
222 |
<com.google.android.material.tabs.TabItem
|
|
|
223 |
android:id="@+id/tabItem"
|
|
|
224 |
android:layout_width="wrap_content"
|
|
|
225 |
android:layout_height="wrap_content"
|
|
|
226 |
android:text="Introducción" />
|
|
|
227 |
|
|
|
228 |
<com.google.android.material.tabs.TabItem
|
|
|
229 |
android:layout_width="wrap_content"
|
|
|
230 |
android:layout_height="wrap_content"
|
|
|
231 |
android:text="Comentarios" />
|
|
|
232 |
|
|
|
233 |
<com.google.android.material.tabs.TabItem
|
|
|
234 |
android:layout_width="wrap_content"
|
|
|
235 |
android:layout_height="wrap_content"
|
|
|
236 |
android:text="Comentar" />
|
|
|
237 |
</com.google.android.material.tabs.TabLayout>
|
|
|
238 |
|
|
|
239 |
<androidx.recyclerview.widget.RecyclerView
|
|
|
240 |
android:id="@+id/recyclerView"
|
|
|
241 |
android:layout_width="0dp"
|
|
|
242 |
android:layout_height="0dp"
|
|
|
243 |
android:layout_marginBottom="5dp"
|
|
|
244 |
app:layout_constraintBottom_toTopOf="@+id/continuarbutton"
|
|
|
245 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
246 |
app:layout_constraintHorizontal_bias="0.0"
|
|
|
247 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
248 |
app:layout_constraintTop_toBottomOf="@+id/tabLayout2"
|
|
|
249 |
tools:visibility="visible">
|
|
|
250 |
|
|
|
251 |
</androidx.recyclerview.widget.RecyclerView>
|
|
|
252 |
|
|
|
253 |
<Button
|
|
|
254 |
android:id="@+id/continuarbutton"
|
|
|
255 |
android:layout_width="match_parent"
|
|
|
256 |
android:layout_height="48dp"
|
|
|
257 |
android:layout_marginStart="10dp"
|
|
|
258 |
android:layout_marginEnd="10dp"
|
|
|
259 |
android:layout_marginBottom="5dp"
|
|
|
260 |
android:background="@drawable/rounded_primarynew_style"
|
|
|
261 |
android:elevation="5dp"
|
|
|
262 |
android:fontFamily="sans-serif"
|
|
|
263 |
android:text="@string/enter_capsule"
|
|
|
264 |
android:textColor="@color/colorTitleText"
|
|
|
265 |
android:textSize="14dp"
|
|
|
266 |
android:textStyle="bold"
|
|
|
267 |
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
268 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
269 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
270 |
app:layout_constraintWidth_percent="0.5"
|
|
|
271 |
tools:visibility="visible" />
|
|
|
272 |
</androidx.constraintlayout.widget.ConstraintLayout>
|