Skip to content

A custom view that displays an error Views,loading View,Empty View,Abnormal View

Notifications You must be signed in to change notification settings

adisonhyh/MyEmptyView

Repository files navigation

##MyEmptyView A custom view that displays an error Views,loading View,Empty View,Abnormal View

##Usage ###Include view in your layout This example shows the empty view with a ListView, but can be used with all kind of views!

<com.adison.library.EmptyView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/empty"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ListView
        android:id="@android:id/list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

</com.adison.library.EmptyView>

XML Example

In the layout:
<com.welbits.izanrodrigo.emptyview.library.EmptyView
    xmlns:android="http://schemas.android.com/apk/res/android"
    custom:abnormalView="@layout/empty_abnormal"
    custom:emptyView="@layout/empty_empty"
    custom:errorView="@layout/empty_error"
    android:id="@android:id/empty"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    ...
</com.welbits.izanrodrigo.emptyview.library.EmptyView>

About

A custom view that displays an error Views,loading View,Empty View,Abnormal View

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages