jetpack-compose-accompanist Questions

6

Using accompanist-pager version 0.25.1, animateScrollToPage() doesn't seem to scroll all the way to make the next page fully visible, the previous page is still shown. The non animated version scro...
Liechtenstein asked 14/9, 2022 at 9:4

2

Solved

I'm using SwipeRefresh view in compose (from accompanist). I have LazyVerticalGrid inside it, and grid populates paging data from network. If there's no content in paging data, i'm showing empty st...

4

A few days ago I bumped on a problem where a part of my view is overlaped by keyboard. Let's say we have 3 different dialogs (could be any content), which looks like this: When I want to write in ...

6

I want to implement transparent status bar in jetpack compose. I have integrated the Accompanist library for this but it has no transparent effect on status bar. implementation "com.google.acc...

4

Solved

I'm using Scaffold for my main screen with a fixed bottomBar that is visible in every screen of the app, and I'm applying the innerPadding of the Scaffold to its content. I want the keyboard to app...

3

Solved

I'm pretty new to jetpack and am following this guide. When trying to create my tabs I'm hitting an UnresolvedReference and I'm not sure why @ExperimentalPagerApi @ExperimentalMaterialApi @Composab...

2

Solved

I implemented a simple HorizontalPager which works mostly as expected. The app I develop is for one specific device, a 8" Tablet in landscape mode. At the moment it is required to swipe more t...

6

Situation I'm writing a pretty simple app using Kotlin & Android Jetpack Compose I have a scaffold containing my navHost and a bottomBar. I can use that bottomBar to navigate between three main...

0

I'm trying to find a solution for displaying multiple bottom sheets on top of each other to accomodate our UX/Design. Currently been trying with Accompanist and Compose Navigation Reimagined, but t...

3

Solved

I've created a fairly classic collapsing image layout in Jetpack compose, where I have an image at the top of the screen which parallax scrolls away and at a certain point I change the toolbar back...

6

Solved

I am using JetPack Compose Pager from Accompanist and I'm wonder how do I know exactly when my page is Showed at screen. Like onPageSelected method from ViewPager. Here is my code: HorizontalPager(...

2

Solved

I want a similiar effect to TikToks profile screen. On top is the ProfilPicture and username, below that is a stickyHeader with a TabRow (Posts, Drafts, Likes, Favorites) and below that is a Horizo...

2

I want to know how to detect when the user has revoked permission(denied permission twice) in the accompanist permission library, I also checked the library's GitHub repository and samples are old....

1

Solved

I was trying to create a sample Tab View in Jetpack compose, so the structure will be like Inside a Parent TabRow we are iterating the tab title and create Tab composable. More precise code will be...

1

I am using com.google.accompanist:accompanist-permissions:0.25.1 in my project. I am trying to request bluetooth permission in runtime which is requesting. I want to know how user know that permiss...

2

Solved

There are two screens in my app. The first screen shows the list of images on the device by using the Paging3 library in a vertical grid. Now, when the user clicks on an image, I am passing the cli...

0

My apps performance is pretty good overall, the only part where the FPS drops is when swiping through the HorizontalPager by accompanist. Each Page has a simple LazyVerticalGrid with 3 fixed column...

4

Solved

I recently migrated from Accompanist's ImagePainter to Coil's, below is the pertinent code after my updates. val painter = rememberImagePainter(DRAWABLE_RESOURCE_ID) when (painter.state) { is Ima...

2

Solved

I am using coil(version 2.1.0) to load images from URL. When there is network connection, the images are loading fine. However, when there is no network connection, the images are not being pulled ...

1

I have tried accompanist library for navigation from this article and I want to prevent bottom sheet to be closed when I click on the background of bottom sheet (the gray area) and to make it non c...

1

Solved

I know that a normal bottom sheet can be setup like this rememberModalBottomSheetState( initialValue = ModalBottomSheetValue.Hidden, confirmStateChange = { it != ModalBottomSheetValue.HalfExpand...

1

Solved

I'm learning accompanist pager and I want to set effect on the pager. I want to use the lerp method like the document Modifier.graphicsLayer { // Calculate the absolute offset for the current page...

1

Solved

I have a HorizontalPager val pageCount = bannerList.size val startIndex = Int.MAX_VALUE / 2 val pagerState = rememberPagerState(initialPage = 100) HorizontalPager( count = Int.MAX_VALUE, state = ...

1

Solved

i want to scroll the view pager horizontally on button click in jetpack compose.Anyone have any idea about this ? Here i am using Accompanist library.

1

Solved

I'm using Google's Accompanist Horizontal Pager, and I need the pager to wrap content size. For some reason it fills max size. Currently it's a child of constraint layout, however I tried putting i...

© 2022 - 2025 — McMap. All rights reserved.