Menu

Post image 1
Post image 2
1 / 2
0

I built a Modern Android Toast Library that works properly on Android 11+ (with icons, colors & Version Catalog support)

DEV Community·Akshay·about 1 month ago
#hdfFHwNf
Reading 0:00
15s threshold

🚀 I built a Modern Android Toast Library that works properly on Android 11+ (with icons, colors & Version Catalog support) Android’s default Toast customization stopped working reliably after Android 11 (API 30) . Setting background colors directly on Toast views is now restricted — which makes many old solutions break. So I built a lightweight modern alternative: 👉 Toast Library It provides: ✅ Success / Error / Info / Default variants 🎨 Colored rounded backgrounds 🧩 Built-in vector icons 📍 Gravity control (TOP / CENTER / BOTTOM) 📦 JitPack installation 🧰 Version Catalog support (latest Android Studio) ⚡ Lightweight & dependency-free 📦 Installation (JitPack) Step 1 — Add JitPack repository Inside settings.gradle.kts pluginManagement { repositories { google () mavenCentral () maven ( "https://jitpack.io" ) } } dependencyResolutionManagement { repositoriesMode . set ( RepositoriesMode .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More