loading_status_layout.xml
2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
<?xml version="1.0" encoding="utf-8"?>
<com.hjq.widget.layout.NestedLinearLayout 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"
android:gravity="center"
android:background="@color/transparent"
android:orientation="vertical">
<View
android:layout_width="wrap_content"
android:layout_height="0px"
android:layout_weight="1" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/iv_status_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="@dimen/dp_10"
app:lottie_autoPlay="true"
app:lottie_loop="true"
tools:src="@drawable/status_network_ic" />
<com.hjq.widget.view.SmartTextView
android:id="@+id/iv_status_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_10"
android:textColor="@color/black30"
android:textSize="@dimen/sp_14"
tools:text="@string/status_layout_error_network" />
<com.hjq.shape.view.ShapeButton
android:id="@+id/iv_status_retry"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20"
android:paddingHorizontal="@dimen/dp_15"
android:paddingVertical="@dimen/dp_8"
android:text="@string/status_layout_retry"
android:textColor="@color/white"
android:textSize="@dimen/sp_13"
android:visibility="invisible"
app:shape="rectangle"
app:shape_radius="@dimen/dp_5"
app:shape_solidColor="@color/common_accent_color"
app:shape_solidPressedColor="@color/common_button_pressed_color"
tools:visibility="visible" />
<View
android:layout_width="wrap_content"
android:layout_height="0px"
android:layout_weight="1.5" />
</com.hjq.widget.layout.NestedLinearLayout>