Questions tagged [android-jetpack]

Android Jetpack is a Google's set of libraries, tools and architectural guidance to build Android apps and provides common infrastructure code.

Android Jetpack is the next generation of Android components, bringing together the benefits of the Support Library -- backwards compatibility and immediate updates -- to a larger set of components, making it quick and easy to build robust, high quality apps.

It manages activities like background tasks, navigation, and lifecycle management, so you can eliminate boilerplate code and focus on what makes your app great.

It is designed to work well with Kotlin, saving you even more code with Android KTX. The new Android Jetpack components released today include WorkManager, Paging, Navigation, and Slices.

Useful Links

2879 questions
1
vote
1 answer

How to use float resource in jetpack compose

I have float value 360F. I created a filed called float.xml inside res/values. float.xml 360 and use like…
1
vote
2 answers

How to make rounded corner in top in jetpack compose

I am using Scaffold in my @Composable function. Inside content = { I am using LazyColumn. I want the Top Start and Top End to corner. Something like this Expected Output I tried this piece of code from here, but it didn't work. package…
1
vote
1 answer

Some problems with using android Material3 FilterChip

This is a low-level mistake caused by carelessness, no reference value. Since someone else answered the question, I had to keep it. I created a page with Compose's FilterChip: @OptIn(ExperimentalMaterial3Api::class) @Composable fun TestPage() { …
1
vote
1 answer

Difference between Navigating one fragment to another using fragment id and action id using nav graph in android jetpack library

I am using jetpack navigation graph in my android project. Normally to navigate one to another fragment we connect a link between them in nav graph and call like this …
Tausif
  • 778
  • 1
  • 5
  • 14
1
vote
1 answer

Home and Auth navigation flows in Jetpack Compose

I have a problem with navigation in my Compose app. So starting from the beginning I want to have two navigation graphs: one for authentication related things and second for main functionalities, which should be accessible only after login. So…
1
vote
1 answer

Jetpack Data Store @Inject need initialize

I followed this tutorial link But I met a problem that "kotlin.UninitializedPropertyAccessException: lateinit property splashViewModel has not been initialized" Here is my code @Module @InstallIn(SingletonComponent::class) object MainModule { …
1
vote
1 answer

Change Alignment of particular child item in LazyColumn jetpack compose

I am using LazyColumn in my @Compsoable screen. Inside LazyColumn there are so many child and which align verticalArrangement = Arrangement.Top and horizontalAlignment = Alignment.CenterHorizontally. But in one child Item I want to use from Start.…
1
vote
1 answer

How to expand TopAppBar programmatically?

MediumTopAppBar and LargeTopAppBar have expanded and closed state. EnterAlwaysScrollBehavior will immediately collapse when the content is pulled up, and will immediately appear when the content is pulled down. (from the doc) If scrolled down and…
1
vote
0 answers

Composable LazyColumn/Pager Scroll while zoomed

I need to create the pdf reader, I am sending images bitmap array to lazy compose view, it works fine when there is no zoom but with zoom the issue I am facing is that while scrolling to bottom it became too slow to scroll. Following is the…
Ramesh Kumar
  • 1,229
  • 14
  • 24
1
vote
1 answer

Avoid side padding from particular child item of LazyColumn in jetpack compose

I want to removed side padding of particular child item in LazyColum. I solved this problem in xml with the help of this post. I have same scenario in the jetpack compose. I am using BOM versions of compose_bom = "2022.11.00" with Material 3. …
1
vote
1 answer

Jetpack Compose Dialog view size(Height or width) is not updated after initial recomposition

I have a dialog where user have 2 option. each option have different Compose UI view. The problem is that the height of the dialog is never updated according to the user selected option. So Is there any way to change height of Dialog dynamically…
1
vote
0 answers

Prevent other composables in a box to be focusable and clickable, Jetpack Compose

When placing 2 or more composables in a Box() in jetpack compose, even if they overlap, they can be focused and clicked through each other, is there a way to prevent this behavior? Box( modifier = Modifier.fillMaxSize() ) { …
1
vote
3 answers

How to load one ad for screen in Jetpack Compose

This is my code: AndroidView( modifier = modifier, factory = { val view = LayoutInflater.from(context).inflate(R.layout.native_ad, null, true) val adView =…
Unes
  • 312
  • 7
  • 12
1
vote
1 answer

Is it possible to make overline text (ā) in Jetpack Compose?

I want to make text Overline, but in TextDecoration have only Underline and LineThrough styles. I tried use TextDecoration
1
vote
2 answers

Jetpack Compose Constraint Layout Constraints not linking as expected

I'm using constrainAs with Jetpack Compose to constrain a list of options. To the left of the text there is a space, I believe this is caused by the fact that I constrain the text box to the start to the parent and the end to the start of the…