android-jetpack-compose Questions
4
Solved
I'm using the paddingValues provided by the compose scaffold to account for the bottom bar in my app.
I also just implemented the new enableEdgeToEdge() feature provided by androidx.activity:activi...
Trial asked 14/10, 2023 at 10:55
1
Solved
I'm trying to implement a custom progress indicator in Jetpack Compose that looks like the attached image.
A rounded square with a custom icon inside.
When the loading starts, there should be a pro...
Hoch asked 4/10, 2024 at 14:27
4
Solved
I need to show my bottomsheet first in collapsed state. And on swipping bottomsheet up, it should first fix in half height of screen first. Again on swipping up , it should expand to max height of ...
Hasa asked 12/10, 2022 at 11:56
1
I've been researching for a while but I still have no clue about how to do it. What I know so far is that Typeface has a CustomFallbackBuilder on which you define the font families which you want t...
Scot asked 27/6, 2022 at 13:23
3
I have a simple Jetpack Compose application that uses the Navigation Component.
My UI is comprised of the following composables (redacted UI to be concise):
NavHost:
@Composable
fun NavHost(
nav...
Scintilla asked 26/1, 2023 at 21:4
1
The device's keyboard is overlapping with the ModalBottomSheet that has a text field, I have already set android:windowSoftInputMode="adjustResize" in my manifest file And consumed the im...
Connective asked 9/7, 2023 at 7:43
3
Solved
I'm trying to using backticks ` in the definition of my instrumented tests. I don't understand why compiler complains about a strange error:
Caused by: com.android.tools.r8.internal.Jj: com.android...
Wallboard asked 27/2, 2023 at 9:36
3
I have a Composable which needs to fetch some data from my local Room Database when called. When I navigate to another Composable and then navigate back it should fetch the data again.
I fetch the ...
Rarely asked 3/6, 2023 at 15:42
2
Solved
I have an Immersive application that's hiding the system bar using the Compose accompanist library in system navigation
val systemUiController: SystemUiController = rememberSystemUiController()
sy...
Kiangsi asked 16/11, 2022 at 18:30
1
Official article about Jetpack Compose phases and this article about deferring reads for performance suggests moving any state reads from Composition phase to Layout or Draw phases such as
Modifier...
Semolina asked 1/6, 2022 at 7:22
2
Solved
I am able to do SwipeToDismiss but I want to restore the swiped LazyColumn item back to its original state.
I don't want to remove swiped item but want to restore it to its original state.
I am abl...
Wigley asked 28/1, 2022 at 5:44
3
Solved
Trying to add elevation to my TopAppBar in Scaffold topBar. Using Jetpack compose, material 3.
This is how it worked before:
TopAppBar(
title = {
Text(text = title)
},
elevation = 3.dp //Not va...
Profusion asked 7/1, 2023 at 17:37
2
How to add a lazy column inside another lazy column in jetpack compose like below screenshot.(The inner list size maybe vary)
@Composable
fun SingleItem() {
LazyColumn(modifier = Modifier
.fillM...
Bandoline asked 5/9, 2022 at 12:42
2
Solved
I discovered today that MaterialTheme applies an alpha to Text's colour. As you can see from the example attached, when I change the background colour, the text's colour appears to be different bec...
Terrazzo asked 13/10, 2022 at 2:9
3
I have a SwipeToDismiss instance to delete items with dismissThresholds 75%.
If user swipes row too fast without reaching 75% threshold the row being deleted. How to prevent that?
Here is code wher...
Reeder asked 19/6, 2022 at 11:35
2
I need to use the emoji2-emojipicker from androidx which is made like so with XML views:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width=...
Archdiocese asked 22/6, 2023 at 10:11
3
Solved
Why is it that border modifier is not applied when used with .apply { }?
val selected = remember { mutableStateOf(true) }
val selectableModifier = Modifier
.padding(horizontal = 5.dp, vertical = ...
Eskimoaleut asked 26/8, 2021 at 6:46
2
Solved
I am drawing a custom shape for a topbar in jetpack compose. I want to draw a shadow for the path.
val topBarShapePath = Path().apply {
moveTo(dpToPixels(leftPadding), 0f)
lineTo(dpToPixels(leftP...
Gussy asked 3/12, 2021 at 22:57
4
I'm facing weird exception while placing all images from internal storage in LazyVerticalGrid. It was working fine without any problem till now, but recently this problem appears without any notice...
Farrow asked 5/1, 2022 at 9:20
3
Solved
I mean ways other than using vectorResource(id = ...) (this confuses me with constant calls to context, resources, and other things).
I ask this because i see that we can make TextStyles, Shapes, C...
Unstudied asked 6/12, 2020 at 12:57
6
I take an example from this codelab
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View {
return ComposeView(requireContext()).apply ...
Starspangled asked 18/10, 2021 at 9:1
2
Solved
Assume that my application looks like this
@Composable
fun AppNavigation() {
val navController = rememberNavController()
NavHost(navController, startDestination = Route.Home.route) {
/// other ...
Mauser asked 12/4, 2021 at 14:1
4
I'm building an app with Room, Retrofit and Hilt. When I run the app I get an error 2 files found with path 'META-INF/gradle/incremental.annotation.processors'. I've tried to clean and rebuild proj...
Anu asked 28/12, 2022 at 19:0
1
I have a question about jetpack compose modifier.
I can't understand foldin and foldout, what are them and when I can use them?
Thank you
Spivey asked 14/6, 2022 at 17:12
3
Solved
I am working on a project that utilizes Jetpack Compose Navigation with Type-Safe Navigation. Within my application, I have an composable function responsible for hosting the navigation graph. Here...
Anabolite asked 16/5, 2024 at 12:22
1 Next >
© 2022 - 2025 — McMap. All rights reserved.