14,285 questions
1
vote
1
answer
50
views
Justify Jetpack Compose
I have started taking training courses at developer.android.com. I can't figure out why TextAlign.Justify doesn't work.
There's my code
class MainActivity : ComponentActivity() {
override fun ...
0
votes
0
answers
24
views
How to remove overlapping of sheet content and navigation bar in bottomsheet scaffold?
I want to remove the overlapping between sheet content and navigation bar of a bottom sheet scaffold.
This is the a clip of the output:
This is my Code Sample :
val sheetState = ...
0
votes
0
answers
25
views
How to make common dropdown for two TextFields in Jetpack Compose?
I want to make common dropdown for two TextField. I have manage to do something like following. But there is a problem with focusing. When I click again on the second TextField to open dropdown, it ...
0
votes
0
answers
23
views
MPAndroidChart real-time plot glitch when updating entries with static viewport and live cursor
I am developing a real-time BLE audio application on Android. The audio sampling rate is 16,000 samples per second, and I receive data in 100 packets per second, each packet having 160 samples (so ...
1
vote
1
answer
39
views
Compose LazyColumn vs Column padding differs
When using the LazyColumn the navigation bar presents a translucent style, when using Box or a Column the navigation bar appears to be opaque, why is this difference? Shouldn't the navigation bar be ...
2
votes
1
answer
44
views
Add a trailing icon in a Text to wrap with the content
I want to add an icon Icon at the end of some Text (not a TextField) and have them wrap together when there is not enough space.
They are considered as two separate entities and arranged by the ...
0
votes
0
answers
43
views
why is the hilt module not binding the interface and implementation? [closed]
I have a web layer (LoginWebLayer) calling the api. it is very simple, one method overidden from its interface.
@Singleton
class LoginWebLayer @Inject constructor(
authDataStore: AuthDataStore,
...
1
vote
0
answers
47
views
AsyncImage not loading image, error with 'unimplemented'
I have been trying to separate out tasks because OpenAI can take some time to generate images, so I have a page that allows you to input items and it will build a recipe for you. I originally had it ...
4
votes
1
answer
75
views
Jetpack Compose FloatingActionButton shadow disappears or gets clipped during visibility animation
I'm using Jetpack Compose to animate a FloatingActionButton that hides when the user scrolls down and reappears when scrolling up.
To animate the FAB, I use AnimatedVisibility with fadeIn/fadeOut and ...
0
votes
0
answers
62
views
absolute positioned element in Jetpack Compose
In CSS, we have absolute position attribute to define the layer and position of an element within in our app. The absolute position ignores the default styling flow of the structure and can also work ...
2
votes
3
answers
165
views
How do I change color of Android system navigation bar API 35+
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 ...
0
votes
0
answers
36
views
Is it possible to access SideEffect or LaunchedEffect from outside a Composable in Jetpack Compose? [closed]
I’m working with Jetpack Compose and using the Effect APIs like SideEffect, LaunchedEffect, and DisposableEffect to handle logic that depends on the Composable lifecycle.
These APIs work great inside ...
1
vote
1
answer
87
views
Compose Multiplatform Project (Android Target): Resources not working in module
Full reproducible example here
I'm working on a Jetpack Compose Multiplatform project. In my module ui-system, I have a drawable located at:
ui-system/src/commonMain/composeResources/drawable/compose-...
0
votes
0
answers
26
views
Problem when I try to convert font family defined in XML to Compose FontFamily
My final goal is to load fonts from a Variable Font Collection. But in Compose there isn't a Font() function that takes a TTC index, so I tried defining a font family in XML file(which supports ...
0
votes
0
answers
89
views
Unresolved references with HiltViewModels. Android Jetpack Compose
With the following implementations, I'm getting unresolved reference errors with the following lines:
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.room.Dao
import ...