Version 2 of Oops! No Internet! library released!

Photo by brandon siu on Unsplash

A short introduction… 🚀

Dialogs

Preview of NoInternetDialogPendulum
Preview of NoInternetDialogSignal

Snackbar

Preview of NoInternetSnackbarFire

Lifecycle-Aware Component

We are now using the Maven repository for our library 😎 Yeaaa…

How to use… 🤨

android {

// ...

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies {
// ...

// Material Components for Android. Replace the version with the latest version of Material Components library.
implementation 'com.google.android.material:material:x.x.x'

implementation 'org.imaginativeworld.oopsnointernet:oopsnointernet:x.x.x'
}
  • 0. Minimum SDK for this library is API 21 (Android 5.0 Lollipop).
  • 1. Your application has to use AndroidX to use this library.
  • 2. You have to use *.MaterialComponents.* in your styles.
// Kotlin
class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

// ...

// No Internet Dialog: Pendulum
NoInternetDialogPendulum.Builder(
this,
lifecycle
).build()


// No Internet Dialog: Signal
NoInternetDialogSignal.Builder(
this,
lifecycle
).build()


// No Internet Snackbar: Fire
NoInternetSnackbarFire.Builder(
binding.mainContainer,
lifecycle
).build()

}
}

What next… 🤔

--

--

--

Student, App Developer, Blogger, Coder and 🐧 Lover.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The day after Hello World

IPC Techniques for Android

Easier Android Shared Preferences in Kotlin

Add to Cart with Flutter Provider — An Easy Way

Android App Bundle and Play Instant

Handling configuration changes using static references

Three Handy Tools for Android Development

Better dependency management in Android Studio 3.5 with Gradle buildSrcVersions

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Md. Mahmudul Hasan Shohag

Md. Mahmudul Hasan Shohag

Student, App Developer, Blogger, Coder and 🐧 Lover.

More from Medium

Everyone Can Code As Long As They Can Speak English

Which is better: Threading or waxing facial hair?

Contractor Pro Docs

Acrylic is Hiring: Full Stack Software Intern (Full-time)