|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
3 | 4 | xmlns:tools="http://schemas.android.com/tools" |
4 | 5 | android:layout_width="match_parent" |
5 | 6 | android:layout_height="match_parent" |
6 | | - android:background="@color/wall"> |
| 7 | + android:background="@color/wall" |
| 8 | + android:gravity="center" |
| 9 | + android:orientation="vertical"> |
7 | 10 |
|
8 | | - <LinearLayout |
9 | | - android:layout_width="match_parent" |
10 | | - android:layout_height="wrap_content" |
11 | | - android:layout_centerInParent="true" |
12 | | - android:orientation="vertical"> |
13 | | - |
14 | | - <ImageView |
15 | | - android:layout_width="@dimen/dp_200" |
16 | | - android:layout_height="@dimen/dp_100" |
17 | | - android:layout_gravity="center_horizontal" |
18 | | - android:src="@drawable/bad_loading" /> |
| 11 | + <com.airbnb.lottie.LottieAnimationView |
| 12 | + android:layout_width="@dimen/dp_200" |
| 13 | + android:layout_height="@dimen/dp_200" |
| 14 | + android:layout_gravity="center" |
| 15 | + app:lottie_autoPlay="true" |
| 16 | + app:lottie_loop="true" |
| 17 | + app:lottie_rawRes="@raw/play_error" /> |
19 | 18 |
|
20 | | - <TextView |
21 | | - android:id="@+id/loadErrorText" |
22 | | - android:layout_width="wrap_content" |
23 | | - android:layout_height="wrap_content" |
24 | | - android:layout_gravity="center_horizontal" |
25 | | - android:layout_marginTop="@dimen/dp_20" |
26 | | - android:layout_marginBottom="@dimen/dp_20" |
27 | | - android:textColor="@color/secondary_text" |
28 | | - android:textSize="@dimen/sp_13" |
29 | | - tools:text="@string/failed_load_data" /> |
30 | | - |
31 | | - </LinearLayout> |
| 19 | + <TextView |
| 20 | + android:id="@+id/loadErrorText" |
| 21 | + android:layout_width="wrap_content" |
| 22 | + android:layout_height="wrap_content" |
| 23 | + android:layout_gravity="center_horizontal" |
| 24 | + android:layout_marginTop="@dimen/dp_20" |
| 25 | + android:layout_marginBottom="@dimen/dp_20" |
| 26 | + android:textColor="@color/secondary_text" |
| 27 | + android:textSize="@dimen/sp_13" |
| 28 | + tools:text="@string/failed_load_data" /> |
32 | 29 |
|
33 | | -</RelativeLayout> |
| 30 | +</LinearLayout> |
0 commit comments