|
6 | 6 | android:layout_height="match_parent"
|
7 | 7 | tools:context=".ui.MainActivity">
|
8 | 8 |
|
9 |
| - <androidx.appcompat.widget.AppCompatTextView |
10 |
| - android:id="@+id/tvdata" |
11 |
| - android:layout_width="wrap_content" |
12 |
| - android:layout_height="wrap_content" |
13 |
| - android:layout_marginTop="@dimen/_40sdp" |
14 |
| - android:text="Loading..." |
15 |
| - app:layout_constraintLeft_toLeftOf="parent" |
16 |
| - app:layout_constraintRight_toRightOf="parent" |
17 |
| - app:layout_constraintTop_toTopOf="parent" /> |
18 | 9 |
|
19 | 10 | <androidx.appcompat.widget.AppCompatButton
|
20 | 11 | android:id="@+id/btngetdata"
|
21 | 12 | android:layout_width="wrap_content"
|
22 | 13 | android:layout_height="wrap_content"
|
23 |
| - android:layout_marginTop="@dimen/_40sdp" |
| 14 | + android:layout_marginTop="@dimen/_5sdp" |
24 | 15 | android:paddingLeft="@dimen/_40sdp"
|
25 | 16 | android:paddingTop="@dimen/_10sdp"
|
26 | 17 | android:paddingRight="@dimen/_40sdp"
|
27 | 18 | android:paddingBottom="@dimen/_10sdp"
|
28 | 19 | android:text="Get data"
|
29 | 20 | app:layout_constraintLeft_toLeftOf="parent"
|
30 | 21 | app:layout_constraintRight_toRightOf="parent"
|
31 |
| - app:layout_constraintTop_toBottomOf="@+id/tvdata" /> |
| 22 | + app:layout_constraintTop_toTopOf="parent" /> |
| 23 | + |
| 24 | + |
| 25 | + <androidx.recyclerview.widget.RecyclerView |
| 26 | + android:id="@+id/recyclerview" |
| 27 | + android:layout_width="match_parent" |
| 28 | + android:layout_height="wrap_content" |
| 29 | + android:layout_marginTop="@dimen/_5sdp" |
| 30 | + app:layout_constraintLeft_toLeftOf="parent" |
| 31 | + app:layout_constraintRight_toRightOf="parent" |
| 32 | + app:layout_constraintTop_toBottomOf="@+id/btngetdata" /> |
32 | 33 |
|
33 | 34 |
|
34 | 35 | <ProgressBar
|
35 | 36 | android:id="@+id/progress"
|
36 |
| - android:visibility="gone" |
37 | 37 | android:layout_width="wrap_content"
|
38 | 38 | android:layout_height="wrap_content"
|
39 | 39 | android:layout_gravity="center"
|
| 40 | + android:visibility="gone" |
40 | 41 | app:layout_constraintBottom_toBottomOf="parent"
|
41 | 42 | app:layout_constraintLeft_toLeftOf="parent"
|
42 | 43 | app:layout_constraintRight_toRightOf="parent"
|
|
0 commit comments