Showing posts with label how to add text in android using jetpack compose android. Show all posts
Showing posts with label how to add text in android using jetpack compose android. Show all posts

Saturday, 24 June 2023

Jetpack Compose Add text in android application.

Adding text in android is we were using TextView in android studio.

But using jetpack compose we don't need TextView as a deign layout.

Yes , using Jetpack Compose we can add text only with coding so lets start how its work ,


First you have to add some dependency library in your build.gradle (app module)


Snackbar in Kotlin

How to show snackbar in place of toast message , below is the code for showing snackbar in kotlin. Below code is put in Utils.kt  (common fi...