Posts

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...

Progress Dialog - Android Studio - Compose

Image
Progress Dialog in Android Studio using Compose What are Progress Bars? Progress bars are used to indicate that a task is running in the background, such as downloading files or creating a user account. They help improve user experience by providing visual feedback during long operations.  In  Android , ProgressDialog is a dialog-based component used to display loading or progress status while a task is being processed. This post explains how to implement a simple  Progress Dialog  in  Android Studio  using  Jetpack Compose . >>  Check For Java >>  Check For Kotlin >>  Check For Compose Code: MainActivity.kt package com.technifysoft.myapplication import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import an...

Spinner - Android Studio - Compose

Image
How to use the Spinner in Android Studio with Compose In this tutorial, you’ll learn how to use a  Spinner in Android Studio using Jetpack Compose . A Spinner in Android works like a drop-down menu that displays a list of values, allowing the user to select  one option at a time . The Android Spinner is part of the  AdapterView  family, which means it requires an  Adapter  to bind data to the UI. In this example, we’ll use an adapter to populate the Spinner with items and handle user selection events. >>  Check For Java >>  Check For Kotlin >>  Check For Compose Code: MainActivity.kt package com.technifysoft.myapplication import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foun...

CheckBox - Android Studio - Compose

Image
How to use the CheckBox using Android Studio & Compose? Learn how to use the Android CheckBox widget to allow users to select multiple options. This tutorial covers the complete implementation using Android Studio, Jetpack Compose, and XML layouts with practical examples like a color selector. >>  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.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.mate...