Skip to main content
The 2024 Developer Survey results are live! See the results

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
3 votes
0 answers
53 views

Lazy Column with Scrollable Gradient background in Jetpack Compose

I'm working on a Jetpack Compose app having a Scaffold layout. My layout includes a title, a tab bar, and a LazyColumn. I want to create a gradient background that scrolls with the LazyColumn content ...
Bhoomi Vaghasiya's user avatar
0 votes
0 answers
20 views

Is there a way we can use same navController in two different navHost in android jetpack for type safe navigation

I am using a bottom navigation in android jetpack @Composable fun BottomNavigationBar() { val navController = rememberNavController() var navigationSelectedItem by remember { mutableStateOf(...
Rajiv Agarwal's user avatar
1 vote
1 answer
42 views

First draggable item is not on top of other items in a Row while it's dragged on Jetpack Compose

I have a collection of five items, all of which are draggable. I want to achieve behavior in which the dragged item will overlap all the others. I tried changing the zIndex parameter but it didn't ...
Alex Bro's user avatar
1 vote
0 answers
32 views

How to keep the button over the other elements even if it is disabled in Jetpack Compose?

I have a screen where I display a list of items: Scaffold( content = { //List of items }, floatingActionButton = { Button( onClick = { if (...
Always Learner's user avatar
0 votes
1 answer
80 views

Kotlin Multiplatform + Jetpack Navigation + Android Studio Koala 2024.1.1 Patch 1 issues

I've started moving one of my older project (Java) to the KMP setup, my goal was to just move around the structure to KMP and slowly import Kotlin code from the shared folder into the androidApp. I ...
Suau's user avatar
  • 4,698
0 votes
0 answers
15 views

Which resource qualifiers should I use for devices having similar screen sizes but showing views in different sizes?

I am working with views in xml in Android development, and I noticed that some devices with similar screen sizes (both in terms of DPI and pixels) show the UI of the app differently. For example, a ...
Mike's user avatar
  • 165
0 votes
1 answer
103 views

Composable recomposing even with strong-skipping mode enabled

I have tested this using Kotlin 2.0.0, 2.0.10-RC and 1.9.20 just to be sure thisn't some weird Kotlin compiler issue. However, I am currently struggling to understand how lambdas affect the ability to ...
Andre Thiele's user avatar
  • 3,921
1 vote
2 answers
46 views

Any solution to apply rounded corners in Jetpack Glance

Is there any solution to apply rounded corners in Rows or Columns in Jetpack Glance cornerRadius works only in android S+, so any workaround ? @Composable fun ParkingSessionsWidget(sessions: List<...
Anis Amh's user avatar
1 vote
1 answer
66 views

Jetpack compose navigation: why I have wrong hierarchy of a destination?

Problem: I have an issue with the hierarchy of my Compose Navigation. The version of compose-navigation I am using is: androidx.navigation:navigation-compose:2.7.7. Background: I am trying to ...
sunakulto's user avatar
1 vote
0 answers
38 views

Preserve the scroll position and paging data when switching tabs in Jetpack Compose

I have two tabs: Video and Magazine. The screens for both tabs are identical, utilizing Jetpack Compose for the UI. Data is fetched using the Paging 3 library from a common API endpoint, ...
Veeresh Charantimath's user avatar
0 votes
0 answers
42 views

Compose Lazy Column is very Laggy while scrolling

In my compose Application I have a simple list with LazyColumn but I'm facing a lag when I scrolling specially at first In my list I have a image loading and had some conditions but I remove those ...
amirhesni's user avatar
  • 459
0 votes
1 answer
22 views

cannot find symbol class ActivityMainBindingImpl

I am currently learning about Data binding and I did exactly as the tutorial but I keep getting the error "error: cannot find symbol class ActivityMainBindingImpl" when I run the app no ...
Zaid Hassan's user avatar
0 votes
0 answers
12 views

ScrollableTabRow maxValue incorrect cannot scroll to the tab I need

I don't think this problem has a solution but if anyone else is experiencing this please let me know what I can do! Here is the relevant code. The maxValue of the scrollState is 1125; which I assume ...
user1743524's user avatar
0 votes
0 answers
34 views

How to draw a 3D mask on the face in android media pipe

[![ After I get 468 points ( x, y ,z) from how can I draw a mask (use .obj file)on my face, please give me some tutorial make a mask in face by android java or kotlin.you have example please share ...
gowthaman C's user avatar
0 votes
0 answers
24 views

Generating jar file and deploying it to Jenkins Android

been trying to generate Jar file of my existing Jetpack Compose project. I want to: Build jar file Upload that build to Jenkins Server. I want to know, what is the correct way of doing it. I have ...
Akash Nair's user avatar
0 votes
0 answers
42 views

How to make delayed arrival of tooltips in jetpack compose?

I am using ToolTipBox and tooltip, they work fine, i can customize the appearance, but the tooltips show up too fast, so when i`m hovering over the row of buttons it looks like crazy slideshow. I want ...
KimKar's user avatar
  • 1
0 votes
1 answer
49 views

Box lose shape while scrolling LazyRow

I have a problem, when i scroll my LazyRow, boxes which going out from it lose their shape. I am using a modifier.clip(RoundedCornerShape(20.dp)) and if item is visible in row it clips, but if not it ...
Егор Сауткин's user avatar
0 votes
0 answers
23 views

how to save fragments using jetpack navigation like other apps do

Jetpack-navigation works well and is responsive in most applications. For example, YouTube: When you go into it you see fragment container and bottom navigation. Inside the fragment container there ...
TenolToSy 's user avatar
0 votes
0 answers
46 views

Navigation component, Fragments and predictive back: some clarification

I'm trying to implement the predictive back gesture in an app based over fragments and navigation component. While it works out of the box for bottom sheets and activities, it doesn't work with ...
m.i.n.a.r.'s user avatar
  • 1,040
3 votes
2 answers
128 views

Is there a way to use LazyRow to set the height of each child Composable to match the height of the tallest child Composable?

I'm trying to create a UI in Jetpack Compose where each child Composable has the same height as the tallest child Composable. Initially, I implemented this using Row and IntrinsicSize, but I noticed ...
user25428584's user avatar
0 votes
1 answer
55 views

Suppressing the message "Application Error. Please report this error to the app developer" in Android Automotive app

An Android Automotive app that was working fine in my car a couple months ago doesn't start correctly now. The screen says "Application Error. Please report this error to the app developer" ...
Alex Wang's user avatar
  • 1,020
0 votes
1 answer
260 views

Error related to AlarmManager permission.SCHEDULE_EXACT_ALARM or android.permission.USE_EXACT_ALARM

I have an related to AlarmManager: receiver.BootCompletedReceiver.onReceive. Someone help me fix error, this occurs when user update app on Android 14? Thank u very much Exception : java.lang....
Minh Tiến Đào's user avatar
0 votes
2 answers
77 views

Is it possible to keep the state of the Jetpack Navigation (NavHost) after the screen rotation which leads to activity restart?

Main issue is that I want my app to show the same screen it was showing before and after screen rotation. I want the NavHostController backstack to stay the same too. I have an Android application ...
Ali Has's user avatar
  • 670
2 votes
1 answer
77 views

Kotlin jetpack compose API call without endpoint and in post method

interface ApiInterface { @Multipart @POST("/") suspend fun getRendomFact( @Part("secret_key") secretKey: String, @Part("token") token: String, @Part("...
Arvind Gehlod's user avatar
1 vote
1 answer
95 views

Passing UI and Click events in multi module app using Android Jetpack compose

I'm working on a scenario with Jetpack Compose where I dynamically generate the UI based on the details of Android UI components (data) received from an API response. I've created a separate module ...
S S's user avatar
  • 301
1 vote
0 answers
67 views

Carousel autoscroll is not working when it focus jetpack compose

I am facing an issue regarding Carousel. Here I share my code. In this code I want to perform autoscroll my images. When I am focusing any of other view around carousel that time autoscroll will ...
Vishal Bhimporwala's user avatar
1 vote
1 answer
109 views

LargeTopAppBar is collapsible even if the inner content is not scrollable in Jetpack Compose

I am trying to implement a screen that uses TopAppBar and some items with LazyColumn. However, LargeTopAppBar is collapsible even if the inner content is not scrollable. STEPS I made a scrollBehavior ...
ChungJungSoo's user avatar
0 votes
0 answers
34 views

Recomposition does not occur in jetpack compose while the value updated

When the currentManzil is updated from the ActionBar the filename is also updated but PdfView composable is not recall which uses the filename. Because here in my code the currentManzil is updated ...
Muhammad Umair Rasheed's user avatar
0 votes
0 answers
42 views

LaunchedEffect unexpected behavior not getting composable animation properly

I have a flow in my screen's composable, continuously receiving from backend new values, which I transform to screen offsets for animation purposes and put in a map called markersMap: @Composable fun ...
Jolly Wojak's user avatar
0 votes
0 answers
31 views

The issue is that a single music track is playing twice simultaneously in ExoPlayer

In an Android project developed with Jetpack Compose, I am using ExoPlayer to play music and simultaneously show a notification to the user that music is playing. However, the problem is that the ...
dexis team's user avatar

15 30 50 per page
1
2 3 4 5
103