A beautiful Dialog which appears when you have lost your internet connection.
Switch branches/tags
Nothing to show
Clone or download
MarsVard Merge pull request #21 from JobGetabu/patch-1
Resolved the connection problem
Latest commit 0b9ce98 Oct 4, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
Images Media added Nov 23, 2017
library Resolved the connection problem Apr 24, 2018
.gitignore Initial commit Nov 22, 2017
LICENSE Initial commit Nov 22, 2017
README.md Update README.md Dec 25, 2017


No Internet Dialog

A beautiful Dialog which appears when you have lost your Internet connection.

Android Arsenal API



Add following line of code to your module(app) level gradle file

    implementation 'am.appwise.components:NoInternetDialog:1.1.3'




Use simple builder to initiate the dialog. It will automatically appear if you'll lose your Internet connection, and dissapear, once it came back

  NoInternetDialog noInternetDialog = new NoInternetDialog.Builder(context).build();


  NoInternetDialog noInternetDialog = new NoInternetDialog.Builder(fragment).build();

and at the end

    protected void onDestroy() {

Customize the dialog with ease

  builder.setBgGradientStart() // Start color for background gradient
  builder.setBgGradientCenter() // Center color for background gradient
  builder.setBgGradientEnd() // End color for background gradient
  builder.setBgGradientOrientation() // Background gradient orientation (possible values see below)
  builder.setBgGradientType() // Type of background gradient (possible values see below)
  builder.setDialogRadius() // Set custom radius for background gradient
  builder.setTitleTypeface() // Set custom typeface for title text
  builder.setMessageTypeface() // Set custom typeface for message text
  builder.setButtonColor() // Set custom color for dialog buttons
  builder.setButtonTextColor() // Set custom text color for dialog buttons
  builder.setButtonIconsColor() // Set custom color for icons of dialog buttons
  builder.setWifiLoaderColor() // Set custom color for wifi loader
  builder.setConnectionCallback() // Set a Callback for network status
  builder.setCancelable(false) // Set cancelable status for dialog
alt text alt text
alt text alt text

This is work is is inspired from the work of Ramakrishna V. in Dribbble.




Connection callback status added Cancelable flag added


Receivers issue fixed


Vector drawable issue fixed for < API 21 UI issues fixed for small devices


New customization features added Issues fixed


Appear issue fixed


First version of library


    No Internet Dialog©
    Copyright 2017 Appwise
    Url: https://github.com/appwise-labs/NoInternetDialog

    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


    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.