Photo by freddie marriage from Unsplash

Why Not! Image Carousel! Version 2 released! 😃 In this post, I will discuss some of the new features and some challenges I face during coding it.

What’s new in version 2?

There are many new features, changes, and modifications that come with version 2. Notable features/changes are —

  1. Custom view with View Binding support.
  2. Infinite carousel support.
  3. Touch-to-pause support.
  4. Carousel view gravity added so that the view can be aligned from start.
  5. ImageCarousel is now a lifecycle-aware component.
  6. More use cases and inspiring samples were added.

The full release note can be found here. Let’s discuss some of the features.

Custom view with View Binding support

The age of findViewById()


I am very excited to introduce version 2 of the Oops! No Internet! Android library.

Photo by brandon siu on Unsplash

In this new version, we’ve restructured and refactored the whole library. The library is now using a lifecycle-aware component to show & hide the dialogs and snackbars, which will reduce code and many unexpected crashes. We’ve also introduced a ready-to-use lifecycle-aware component. Which will make it easy to create any new components/elements to automatically do things based on the Internet connectivity change. The library also now dark-mode ☀️ 🌘 ready.

A short introduction… 🚀

Dialogs

As the entire library has been restructured, we’ve changed NoInternetDialog to NoInternetDialogPendulum . We’ve created…


Photo by Annie Spratt on Unsplash

Do you know that creating an image carousel in Android is easier then you think! 😉

Recently in a project, I have to show some images for preview. I am thinking to use an image carousel library to show the images. But the library I found does not make me feel good 😑! They are old or have discontinued/old library dependency 🙄!

So I thought let’s try to make one 😁! Then I checkout the existing libraries source codes and I found that creating a carousel is a two-line code 😲!

Really!

To create a carousel (ViewPager like view) just attach…


Yet another No Internet Dialog library for Android!

Photo by NASA on Unsplash

A couple of months ago I found a library, called “NoInternetDialog”. It’s an awesome Android library to notify users when there is no active internet connection!

But the library is not currently maintained. And it has a serious crash issue! I wanted to fork and fix the bug, but it has a lot of depreciated codes and written in Java 😑!

So finally I get inspired by the idea 😉 and create a new library,

Oops! No Internet!

No internet dialog and snackbar for rescue!

It’s written in Kotlin. Just initialize it…

Md. Mahmudul Hasan Shohag

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

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