A MultiStatusLayout for Android PageStatus -- use freely configurable(多状态Layout -- 可自由配置)
implementation 'com.vension:mutilstatuslayout:_latestVersion'
- 具体使用查看demo示例
val msl_WrapActivity = MultiStatusLayout(this).wrap(this)
msl_WrapActivity.setTextColor(android.R.color.holo_red_dark)
.setTextSize(40)
.setErrorImage(R.drawable.img_change_error)
.setErrorText("我是自定义的错误数据提示")
.setRetryTextColor(R.color.colorAccent)
.setRetryBackground(R.drawable.shape_custom_retry)
.showError()
Attribute 属性 | Description 描述 |
---|---|
msl_EmptyResId | 空布局资源id |
msl_LoadingResId | 加载中布局资源id |
msl_ErrorResId | 错误布局资源id |
msl_EmptyImage | 空布局图片 |
msl_EmptyText | 空布局文本 |
msl_ErrorImage | 错误布局图片 |
msl_ErrorText | 错误布局文本 |
msl_RetryText | 错误布局重试按钮文本 |
msl_LoadingText | loading布局加载文本 |
msl_LoadingColor | loading布局加载文本颜色 |
msl_TextColor | 文本颜色 |
msl_TextSize | 文本尺寸 |
msl_RetryTextColor | 重试文本颜色 |
msl_RetryTextSize | 重试文本尺寸 |
msl_RetryBackground | 重试背景 |
- V1.0.0: <初始化版本>
Copyright 2018, Vension
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.