Pull-to-refresh in Jetpack Compose with state persistence across navigation?[STUCK ON TOP]
I’m building a Jetpack Compose application where I need to implement a pull-to-refresh functionality in a LazyColumn. However, I noticed that the state disappears when I navigate to another screen and come back after scrolling lazycolumn and it is stuck on top still refreshing task is going on. But when i am on the screen without navigating and scrolling lazycolumn it is still refreshing that is fine. But after navigate to another screen come back scrolling lazycolumn indicator is stuck on top not in threshold while task is not finished up.
Disable Collapse Behaviour in Top Bar in Compose
i am using top bar that is scrolled along with lazycolumn it works, but when the lazy column scrolled down the topbar collapses but i don’t want to collapse it. And topbar should be fixed height and need to scroll along with lazy column when user scrolled down. Also the top bar should be visible when scrolled up in lazycolumn immediately.
Auto Text Size issue in jetpack compose
in my app i have an id card composable which displays id card but on different screens the proportions are messed up because of variation in dpi so i wanted to have a text whose bounds are fixed and it should auto decide the text size to fit i looked up on google got some code which looks fine but somehow doesnt work
Capture Composable to bitmap without rendering them
i made a simple app which makes you an id card when you open the id card it shows the details with the card design that you can print. the whole card design looks good in preview but when i use different device the proportions are messed up so i thought of a different idea but i don’t know how to implement it as i am new to this.
Android Studio Compose Preview Not Updating
Currently doing a small course on app development using Android Studio and Compose, reference is given here.
Where do I put the “request permission” code to avoid constant recomposition of the “permission” window?
Whenever I write permissions request code, the window appears but it doesn’t go away when I press on “allow” or “deny”. I have been told that it is because the window keeps getting recomposed. So i’m trying to write a basic request permission app to better understand the concept, but I can’t get the “permission” window to disappear once I press allow. If I move the “val requestPermissionLauncher” anywhere outside of the composable I receive an error. How can I make the permission window disappear when I click allow or deny and execute the following code?
Here is the code:
How can I make a composable independent from the recomposition of another composable?
I have two composable function on the same screen.
The first one updates each seconds: