Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
306 views

During the Google IO 2025, they presented a new ButtonGroup Composable that animates the width of the contained Buttons once they are clicked. However, the latest non-deprecated overload does not ...
BenjyTec's user avatar
  • 12.6k
1 vote
1 answer
61 views

I want to use only square crop of the image from sensor, therefore I want to have square preview in UI, other UI elements are supposed to be placed outside of preview. UI is built using jetpack ...
Shmozart's user avatar
1 vote
1 answer
63 views

I have a composable which uses Canvas to draw tasks on a clock-like dial. The tasks are read from a ViewModel state, which in turn loads them from a database. The list of tasks varies depending on the ...
Joyce Opio's user avatar
1 vote
2 answers
156 views

I am facing weird behaviour in my application and it's probably because of lifecycle of ViewModel (injected in root composable), but I can't find any information about it in documentation. Problem: ...
Cuyer's user avatar
  • 76
1 vote
1 answer
58 views

topBar = { TopAppBar( title = { Text("Norm Calculator") }, actions = { IconButton(onClick = onThemeToggle) { Icon( ...
Maj mac's user avatar
  • 61
1 vote
0 answers
115 views

I've got the following case: The user has a list of elements, including a range slider, if the range slider is changed (or any of the elements in the list) the entire list should get refreshed with ...
JustSightseeing's user avatar
1 vote
1 answer
183 views

I'm using Compose Multiplatform 1.8.2 and in my commonMain, I have the following composable function with a preview: import androidx.compose.foundation.Image import androidx.compose.foundation.layout....
Pierre Vieira's user avatar
0 votes
1 answer
60 views

I'm building a Quran app using Jetpack Compose in Kotlin. The app builds successfully and installs on a real Android device (Samsung S908E), but crashes instantly on launch. Crash Log: Caused by: java....
Nasser Abouzide's user avatar
2 votes
1 answer
96 views

My UI is not updating to show the new list of items when I change customers. I have a Composable screen to display the customer and a list of the items for that customer. When I select a new customer, ...
jonathan3087's user avatar
2 votes
1 answer
184 views

I'm updating my app to use the new Credential Manager API for authenticating users via Firebase with Google Sign-In, since the previous approach using GoogleSignIn.getSignedInAccountFromIntent is now ...
Bhavik Maradiya's user avatar
3 votes
2 answers
80 views

How to achieve this behaviour in Jetpack compose using Row with two Text composables? I have tried using Modifier.weight(1f) as below, but that only works assuming both text are longer than half the ...
Bruce's user avatar
  • 2,618
0 votes
1 answer
85 views

Vertical padding is added to every text in my application. I understand that it is necessary for the correct display of text in multiple lines. However, in my case, it is crucial to remove these ...
Windusk's user avatar
2 votes
1 answer
97 views

The setup In Jetpack Compose, I have a Column (gray) with two elements, a long text (yellow) and a short text (cyan): @Composable @Preview fun Foo() = Column( Modifier .background(Color....
axolotlKing0722's user avatar
0 votes
1 answer
63 views

With the code below I'm getting an error: @Composable invocations can only happen from the context of a @Composable function View: Button( onClick = { val data = Data(str: String) ...
mfusco's user avatar
  • 51
0 votes
1 answer
38 views

I have an app which displays something like an activity stream, with different Composables for different types of Message. The suggested approach for this uses a when statement, like: items( ...
acrabb3's user avatar
  • 509
0 votes
1 answer
216 views

I want my Android Jetpack Compose app to draw behind the system navigation bar, but not behind the system status bar. I managed to do this, but for window.navigationBarColor I get the warning: ...
18446744073709551615's user avatar
0 votes
1 answer
66 views

I'm using ExoPlayer and PlayerView to render videos in Compose as follows: val exoPlayer = remember(videoUrl) { ExoPlayer.Builder(this).build().apply { setMediaItem(MediaItem....
Amr Jyniat's user avatar
1 vote
1 answer
373 views

With the code provided in Kotlin documentation, I'm getting the following error when implementing a TextField: val state = rememberTextFieldState("Initial text", TextRange(0, 12)) TextField(...
mfusco's user avatar
  • 51
1 vote
1 answer
189 views

I'm currently experimenting with Android XR development and want to replicate the spatial navigation experience shown during Google I/O 2025, where the user moved smoothly between spatial panels and ...
Anand Kulkarni's user avatar
2 votes
3 answers
271 views

With the code below, the ButtonGroup isn't styling as intended. I'd like the ButtonGroup itself to be wide enough to contain at least 5 buttons and scroll horizontally if necessary. However, the width ...
mfusco's user avatar
  • 51
0 votes
1 answer
76 views

I'm wondering if there's any way to rotate not only the layout of the app, but the entire device screen, including system UI elements like the keyboard (IME), status bar, and navigation bar. Currently,...
KyluAce's user avatar
  • 1,000
0 votes
1 answer
180 views

I have a BasicTextField which has imepadding applied, but once the keyboard is opened, It does not push up the contents of BasicTextField, It hides under the keyboard. I want it to scroll up above the ...
truthsayer's user avatar
0 votes
0 answers
94 views

I’m working on a Jetpack Compose app where I want a Text item in a LazyColumn become transparent as it scrolls under a semi-transparent TopAppBar. To achieve this, I’m using onGloballyPositioned to ...
korina's user avatar
  • 1
2 votes
0 answers
89 views

I have all the screens inside a Scaffold and a NavHost: Scaffold( snackbarHost = { SnackbarHost(hostState = snackbarHostState) }, modifier = Modifier.fillMaxSize() ...
Akronix's user avatar
  • 2,187
3 votes
2 answers
237 views

The problem is the view model state and the content showing on the screen mismatches. I have a shared ChatViewModel in two screens. It is initialized in the navigation as such: val userId = "...
GenyoNguyen's user avatar

1
3 4
5
6 7
287