public class StatusLayouts extends Object
限定符和类型 | 字段和说明 |
---|---|
int |
btn_retry |
int |
empty_layout |
int |
error_layout |
int |
img_emptyData |
int |
loading_layout |
int |
networkerror_layout |
int |
parent_groupview |
int |
root_layout |
int |
txt_tips |
构造器和说明 |
---|
StatusLayouts()
默认方法。
|
StatusLayouts(int root_layout,
int parent_groupview,
int empty_layout,
int error_layout,
int loading_layout,
int networkerror_layout,
int btn_retry,
int img_emptyData,
int txt_tips)
设置各个状态页面布局,小于1(即0或负数)视为采用默认值,根布局如下:
<FrameLayout android:layout_width="match_parent"
android:id="@+id/base_root_layout"
android:layout_height="match_parent">
</FrameLayout>
|
public int root_layout
public int empty_layout
public int error_layout
public int loading_layout
public int networkerror_layout
public int parent_groupview
public int btn_retry
public int img_emptyData
public int txt_tips
public StatusLayouts(int root_layout, int parent_groupview, int empty_layout, int error_layout, int loading_layout, int networkerror_layout, int btn_retry, int img_emptyData, int txt_tips)
<FrameLayout android:layout_width="match_parent"
android:id="@+id/base_root_layout"
android:layout_height="match_parent">
</FrameLayout>
root_layout
- 部署动态数据的根布局(特别注意:该布局根应该是FragmentLayout,且其id必须和第二参parent_groupview一致)parent_groupview
- 部署动态数据的跟布局IDempty_layout
- 空数据页面布局error_layout
- 错误页面布局loading_layout
- 正在加载数据布局networkerror_layout
- 网络异常布局btn_retry
- 重试按钮IDimg_emptyData
- 空数据页面图片IDtxt_tips
- 空数据提示文本IDpublic StatusLayouts()