Skip to main content
Filter by
Sorted by
Tagged with
3 votes
2 answers
694 views

I am unable to change color of system navigation bar. In dark mode it ineed appears as transparent and its fine (ideally I would want it to be the same color as bottom navigation bar), but for light ...
Cuyer's user avatar
  • 76
0 votes
0 answers
47 views

My final goal is to load fonts from a Variable Font Collection file. Most phones sold in China enable users to use custom fonts system-wide(ideally), but most of those fonts don't have full support ...
Massi Neptune Jr.'s user avatar
-3 votes
2 answers
126 views

My problem is, I have a lot of data and want to render it in Jetpack Compose in a table, being able to modify that data. My situation Let’s say I have a class called User, with the name and some ...
axolotlKing0722's user avatar
1 vote
1 answer
65 views

I'm using images (.png) to show the "X" and "O" in the game. But it appears that they don't show up until the game is over. The game logic: enum class Player { X, O } enum ...
Snatcha34's user avatar
2 votes
2 answers
46 views

I inject the same MyViewModel into multiple Compose screens and use MutableStateFlow to manage state.I want to confirm: when updating MutableStateFlow.value in the ViewModel, is it necessary to wrap ...
歐告HI's user avatar
1 vote
1 answer
32 views

I am converting an app that is a few years old to Jetpack Compose. It's fragment based, and all of the fragments are migrated to Compose already, but I hit a problem converting the one and only ...
Kabliz's user avatar
  • 322
2 votes
1 answer
134 views

I've created a HorizontalPager with a width that matches the screen. However, I've noticed that when I use the edge swipe gesture on the phone to go back to the previous screen, it momentarily causes ...
user31077472's user avatar
1 vote
2 answers
77 views

I have a TextField that is displayed when the user clicks on the search button, and the visibility is animated. The problem is that when I request the focus to show the keyboard, the composition is ...
Bruno Martins's user avatar
2 votes
1 answer
105 views

I'm trying to follow Google's clean architecture guidelines. I have a navigation subgraph with multiple pages corresponding to stages of filling a form. Each page has it's own viewModel. On the last ...
Andrey Golubev's user avatar
0 votes
1 answer
51 views

When my Compose-based launch activity is run, it displays a video using ExoPlayer. This works fine, but when it happens after an in-app update the video starts playing briefly then restarts from the ...
Bungles's user avatar
  • 2,319
1 vote
1 answer
123 views

I'm learning to build an Android App using Jetpack Compose. In my UI, I have a custom card composable HomeScreenCards. When I apply elevation to the Card like this : elevation = CardDefaults....
gold-roger33's user avatar
2 votes
3 answers
284 views

I'm trying to animate a size change inside a Dialog in Jetpack Compose using AnimatedContent. The goal is to smoothly transition between two different UI states that have different heights. However, ...
Danfb__'s user avatar
  • 387
1 vote
1 answer
103 views

I have a view in my app which needs to show a mix of English and Arabic, as follows: The above view is a Column that contains two separate Text items. My app is localised to English. It has the odd ...
Adil Hussain's user avatar
  • 32.6k
0 votes
1 answer
98 views

Android beginner, please make no assumptions! I created code that used a SensorEventListener to update a UI using a MutableDoubleState as an intermediary. This worked well with the event registration ...
Toby Eggitt's user avatar
  • 1,902
0 votes
2 answers
87 views

I use Hilt with WorkManager to synchronize notifications in the background in my application, but I encounter a java.lang.NoSuchMethodException error when trying to create an instance of ...
mistelltein's user avatar
1 vote
2 answers
148 views

I need to know the size and position of the indirect child of my component in order to place the other child. Here's a simple example of what I mean. Column { Box { Text() } ...
Paitor's user avatar
  • 280
1 vote
3 answers
79 views

In Jetpack Compose, let's say I have a Layout with a big blue box and a smaller red box inside it: Box( contentAlignment = Alignment.Center, modifier = Modifier .background(Color.Blue) ...
axolotlKing0722's user avatar
0 votes
1 answer
66 views

An <appwidget-provider> expects a previewLayout attribute on modern Android versions. The documentation tells us what value we should use for initialLayout, but it never mentions the ...
anon's user avatar
  • 697
2 votes
3 answers
129 views

In Jetpack Compose, I was looking for an easy way to trigger a Composable element to recompose (meaning to update / reload). This can be useful e.g. for when you don't want to use MutableState. I had ...
axolotlKing0722's user avatar
3 votes
2 answers
987 views

The ClipboardManager interface was deprecated. What should I change?
Jiří's user avatar
  • 430
0 votes
0 answers
105 views

i have this setup LaunchedEffect(authUrl) { authUrl?.let { url -> val customTabsIntent = CustomTabsIntent.Builder() .setDownloadButtonEnabled(false) ....
dimitris.terzz's user avatar
-4 votes
1 answer
113 views

Today I tried to learn Jetpack Compose. But I immediately ran into a problem: scaffold is underlined in red for some reason, but everything works. I kind of added the library. Maybe I'm doing ...
NolReaction's user avatar
0 votes
3 answers
103 views

I'm working on a Jetpack Compose Android app that displays a list of trains. I have Screen A that shows a list of trains and Screen B that displays the details of a selected train. Each screen has its ...
Pawandeep Singh's user avatar
0 votes
2 answers
139 views

I'm trying that the Android app remembers in which position of the screen the user left it off, so they can carry on when they move back and forth in the app. I'm looking for the simplest way (ideally,...
Akronix's user avatar
  • 2,187
0 votes
1 answer
46 views

I've a simple GoogleMap in Compose: GoogleMap( modifier = Modifier.fillMaxSize(), cameraPositionState = cameraPositionState, uiSettings = MapUiSettings( ...
jack_the_beast's user avatar