Skip to content

Repository files navigation

NetworkErrorView

A custom view for displaying a network error view with beautiful and simple animation.

Alt text

Usage

<humazed.github.com.NetworkErrorView
android:id="@+id/networkErrorView"android:layout_width="wrap_content"android:layout_height="wrap_content"/>
networkErrorView.show();
networkErrorView.hide();

don't usenetworkErrorView.setVisibility(View.VISIBLE);

available customization:

app:nev_message="new error message"
app:nev_messageColor="#FFD50000"
app:nev_imageTint="#FFD50000"
app:nev_retryText="Try again"
app:nev_retryBackground="#FFD50000"
app:nev_retryColor="#FFD50000"

Dependency

Add this to your module's build.gradle file (make sure the version matches the last release):

Add it in your root build.gradle at the end of repositories:

allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}

Add the dependency

dependencies {
// ... other dependencies
implementation 'com.github.humazed:NetworkErrorView:1.0.2'
}

Credits

Extracted and repackaged from Nick Butcher'sPlaid App.

About

A custom view for displaying a network error view with beautiful and simple animation.

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages