Category "android-jetpack-compose"

Admob Banner randomly changing from BANNER to FULL_BANNER size with Jetpack Compose

I am integrating Admob's banners in my app, this app runs both in AndroidTV and Android, where it's running in mobile the dimensions must be 320x50(BANNER) whic

Jetpack compose deeplink handling branch.io

I'm using branch.io for handling deep links. Deep links can contain custom metadata in a form of JsonObject. The data can be obtained by setting up a listener,

Jetpack Compose vector parsing issue

I'm trying to load a vector but keep getting this error stack trace java.lang.IllegalArgumentException: Unknown command for: R at androidx.compose.ui.graph

Jetpack compose BottomNavigation - java.lang.IllegalStateException: Already attached to lifecycleOwner

When I double click the same item or if I go to each composable screen very quickly i receive an error, How do I solve this problem? I tried changing few things

jetpack Compose with Coil not loading URL images

New to Jetpack Compose and Coil, but not new to Android or Java/Kotlin. I'm not able to show images from a URL...Something basic missing? I took the Google/Andr

Composable as method parameter

I have a Scaffold composable which is used as the basis of all screens : @Composable fun ScreenScaffold( navController: NavController? = null, modif

Composable as method parameter

I have a Scaffold composable which is used as the basis of all screens : @Composable fun ScreenScaffold( navController: NavController? = null, modif

Flutter style code editing short cuts for jetpack compose?

I´m a little spoiled by these code editing shortcuts Flutter plugins provide (See example screenshot). Does somethings similar exist for Jetpack Compose?

Jetpack compose, bring nth item in column to top of the screen like Twitter Comment section

if you can notice here, as soon as i opened the screen the UI first focused on comment composable on the screen and i was able to scroll up for top composables.

How to impl LazyVerticalGrid with set full span or dynamic num of GridCells.Fixed in jetpack compose?

Just like Sliver in Flutter or StaggeredGridLayoutManager in android reyclerview so I can insert a banner or some thing else into grid layout

Set Content Compose Dialog Works on Phone, but Not Tablet? - Android

I've run this through the debugger a hundred times and stepped into the setContent over and over. I can't figure out why. No errors given. Works perfectly on A

How fix remember in Jetpack Compose?

The picture shows the code and logs For some reason startDate and endDate not recreated

Jetpack Compose structure

I have a question Now, for example, in the old days, we had different activities, we had different fragments The code was divided into different files For examp

Why Surface child compasable fill max size if i don't wrap it in an other container?

This code fills the full screen if i specify the size to be 100.dp. ComposeTheme { Surface( modifier = Modifier.fillMaxSize(), color = Mater

Why bottom sheet not work with bottom navigation in jetpack compose?

I try to learn jetpack compose these days, and I have a simple project in jetpack compose, bottom sheet work in my project, but when I use bottom navigation, it

Dynamic Icon content in Android Compose

What I need is to adjust Icon's content accordingly to the available screen space. If the screen height is enough - I would like to display a bigger image versi

How to check if user is logged in and redirect them to the right screen using Jetpack Navigation

what is the best way to save user logged in state, check if they logged in or not and redirect them to the right screen. I'm not using firebase Auth in this cur

How to update Jetpack compose UI by override method or outside the function

I am converting my older XML UI as per requirement. in there, I am unable to update by Jetpack compose UI by my override function. In some research I see many w

How to draw curved line chart using Canvas Jetpack Compose

Does anyone know how to drawLine with curved every corner using canvas in Jetpack Compose? I have achieved this using Canvas.drawPoints(): but I want to make e

Which one should I choose between collecting Flow from ViewModel or collecting Flow in Compose directly

The code A collect Flow in ViewModel, and convert a Flow as hot Flow using MutableStateFlow, then use collectAsState() in Compose. The code B collect Flow in Co