Posts

Bottom Sheet Dialog Fragment - Android Studio - Kotlin

Image
How to create and show Bottom Sheet Dialog In this tutorial, we will learn how to implement a Bottom Sheet Dialog Fragment in Android Studio using Kotlin . Bottom Sheet Dialogs are a modern UI component from Material Design that slide up from the bottom of the screen to display additional content or actions without leaving the current screen. Example Use Cases:  Share options  Quick action menus  Simple forms or confirmations >> Check For Java  >> Check For Kotlin  >> Check For Compose Code activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:app= "http://schemas.android.com/apk/res-auto" xmlns:tools= "http://schemas.android.com/tools" android:id= "@+id/main" android:layout_width= "match_parent" android:layout_height= "match_parent" android:orientation= "verti...

Bottom Sheet Dialog Fragment - Android Studio - Java

Image
How to create and show Bottom Sheet Dialog In this tutorial, we will learn how to implement a Bottom Sheet Dialog Fragment in Android Studio using Java. Bottom Sheet Dialogs are a modern UI component from Material Design that slide up from the bottom of the screen to display additional content or actions without leaving the current screen.  Example Use Cases:  Share options  Quick action menus  Simple forms or confirmations >> Check For Java  >> Check For Kotlin  >> Check For Compose Code activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:app= "http://schemas.android.com/apk/res-auto" xmlns:tools= "http://schemas.android.com/tools" android:id= "@+id/main" android:layout_width= "match_parent" android:layout_height= "match_parent" android:orientation= "vertica...

Bottom Sheet Dialog - Android Studio - Compose

Image
How to create and show Bottom Sheet Dialog In this tutorial, we will learn how to implement a  Bottom Sheet Dialog  in  Android Studio using Jetpack Compose . Bottom Sheet Dialogs are a modern UI component from  Material Design  that slide up from the bottom of the screen to display additional content or actions without leaving the current screen. Example Use Cases: Share options Quick action menus Simple forms or confirmations >> Check For Java >> Check For Kotlin >> Check For Compose Code: MainActivity.kt package com.technifysoft.myapplication import android.os.Bundle import android.widget.Toast import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize im...