DEV Community

Cover image for Creating a Floating Alert Dialog like google translate with Material Design 3 in android
Shah Poran
Shah Poran

Posted on

Creating a Floating Alert Dialog like google translate with Material Design 3 in android

I’m going to show you how to create a Floating alert dialog like tap to translate features in the google translate app using a material design 3. The google translate app can open a floating alert dialog wherever you want to select a text. My approach is simple. At first, I will create a translucent theme that actually inheritance from Theme.Material3.DayNight.NoActionBar after that, I will set the theme for the activity which will open when a floating dialog appears on the screen. You can read the full article from here, https://poran-cse.medium.com/creating-a-floating-alert-dialog-like-google-translate-with-material-design-3-in-android-4b5cbab57571

Top comments (0)