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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright 2016 czy1121
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<resources>
<item name="empty_image" type="id" />
<item name="empty_text" type="id" />
<item name="error_image" type="id" />
<item name="error_text" type="id" />
<item name="retry_button" type="id" />
<attr name="styleLoadingLayout" format="reference" />
<style name="SobotLoadingLayout"></style>
<style name="SobotLoadingLayout.Style">
<item name="llEmptyResId">@layout/sobot_loading_layout_empty</item>
<item name="llLoadingResId">@layout/sobot_loading_layout_loading</item>
<item name="llErrorResId">@layout/sobot_loading_layout_error</item>
<item name="llTextColor">@color/sobot_loading_layout_text_color</item>
<item name="llTextSize">16sp</item>
<item name="llButtonTextColor">@color/sobot_loading_layout_text_color</item>
<item name="llButtonTextSize">16sp</item>
<item name="llButtonBackground">@drawable/sobot_loading_layout_button</item>
<item name="llEmptyImage">@null</item>
<item name="llEmptyText">@string/sobot_no_data_string</item>
<item name="llErrorImage">@null</item>
<item name="llErrorText">@string/sobot_no_net_string</item>
<item name="llRetryText">@string/sobot_error_click_reload_string</item>
</style>
<declare-styleable name="SobotLoadingLayout">
<!-- 空布局资源id -->
<attr name="llEmptyResId" format="reference" />
<!-- 加载中布局资源id -->
<attr name="llLoadingResId" format="reference" />
<!-- 错误布局资源id -->
<attr name="llErrorResId" format="reference" />
<!-- 空布局图片 -->
<attr name="llEmptyImage" format="reference" />
<!-- 空布局文本 -->
<attr name="llEmptyText" format="string" />
<!-- 错误布局图片 -->
<attr name="llErrorImage" format="reference" />
<!-- 错误布局文本 -->
<attr name="llErrorText" format="string" />
<!-- 错误布局重试按钮文本 -->
<attr name="llRetryText" format="string" />
<!-- 文本颜色 -->
<attr name="llTextColor" format="color" />
<!-- 文本尺寸 -->
<attr name="llTextSize" format="dimension" />
<!-- 按钮文本颜色 -->
<attr name="llButtonTextColor" format="color" />
<!-- 按钮文本尺寸 -->
<attr name="llButtonTextSize" format="dimension" />
<!-- 按钮背景 -->
<attr name="llButtonBackground" format="reference" />
</declare-styleable>
</resources>