How to use Snackbars

A Snackbar is a replacement for Toasts in Android. Dependency implementation ‘com.google.android.material:material:1.4.0’ Layout A snackbar must be tied to a coordinator layout. If you use fragments the standard layout is FrameLayout which can be directly swapped with: <androidx.coordinatorlayout.widget.CoordinatorLayout Snackbar val snackbar = Snackbar.make( binding.root, “No internet connection! Please enable WiFi or Mobile Data”, Snackbar.LENGTH_INDEFINITE )…

Depdencency Graph with Gradle

Gradle has built-in capabilities to generate a dependency graph of all packages used in the application. Gradle Tools gradle app:dependencies Command line Windows .\gradlew.bat app:dependencies Linux / macOS ./gradlew app:dependencies Further Reading Anatomy of a Gradle file How to add local jar files to your gradle dependencies How to enable R8 in your build process