Posts

Showing posts with the label android studio tutorials jetpack compose

Text To Speech - Android Studio - Compose

Image
How to implement Text to Speech using Android Studio Jetpack Compose? In this tutorial, we will create a "Text To Speech" application that can be used to speak text from any view, such as an EditText or TextView. >>  Watch For Java >>  Check for Kotlin >>  Check for Compose Code MainActivity.kt package com.technifysoft.myapplication import android.os.Bundle import android.speech.tts.TextToSpeech import android.widget.Toast import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues 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.heightIn import androidx...

Show Snackbar - Android Studio - Compose

Image
How to show a Snackbar and a Snackbar with an Action Button? Learn how to easily display a  Snackbar  in your Android app using  Jetpack  Compose  in  Android Studio . A Snackbar is a lightweight feedback mechanism that appears at the bottom of the screen to show quick messages to users. In this step-by-step tutorial, you’ll understand how to create, customize, and add actions to a Snackbar, making your app more interactive and user-friendly. Perfect for beginners and developers who want to enhance their Android UI/UX with modern material design components. >> Check for Java >> Check for Kotlin >> Check for Compose Code Here is the full code to show a Snackbar and a Snackbar with an Action Button 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.activity.enableEdgeToEd...