Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

I am trying to create a path animation of Svg in the desktop compose app. fun SvgDocument.drawCompletedFills(buildPaths: List<BuildPath>, drawScope: DrawScope, canvas: Canvas, targetLength: ...
3 votes
1 answer
4k views

Initial State looks like this (animatedOffset = 0f) at 1f I want to get the reversed gradient: Current code: val transition = rememberInfiniteTransition(label = "NavIconGradientAnim") val ...
4 votes
2 answers
635 views

I want to create an animation where there’s a button that occupies the full width of the row. When a second button appears (its width depends on its text), the width of the first button should ...
8 votes
5 answers
12k views

I want to animate some text's visibility to not just appear/disappear but to slide in/out in Jetpack Compose Android app that I'm building. I just literally copy-pasted that little code snippet from ...
0 votes
0 answers
26 views

I have a kiosk app with a continuous infiniteTransition. The app sits on the same screen sometimes hours on end, does this eventually cause strain on memory or does Jetpack Compose handle this? I'm ...
0 votes
1 answer
58 views

I had tried to make a simple animation using Jetpack Compose that when the button click the text must be displayed. The button will move from left-right with rotation and text will get visible coming ...
0 votes
1 answer
73 views

Given an animation showing an Int value where the composable starts small and gets bigger (using scaleIn) how can the animation be immediately interrupted and restarted? In the following example we ...
0 votes
1 answer
434 views

I hava Row with .horizontalScroll(scrollState) and I need to implement show and hide Row items animation. I need it so that when it is necessary to hide elements, they all collapse into one element ...
1 vote
1 answer
134 views

I have Row with .horizontalScroll() and I need bounce animation effect. That is, when the list appears, it scrolls forward a little, and then returns back. At the same time, I need a spring effect ...
3 votes
2 answers
652 views

In my Android app, I am displaying data in the lazy column, when the user clicks on one of the items in the list, it navigates to a new screen ("B") and when the user presses back it ...
3 votes
2 answers
1k views

I have this composable here with a history, an input/output, and a button to show/hide the history (I have removed the parameters unnecessary to my concern): @Composable fun MainWindow( ...
3 votes
3 answers
4k views

I have a case in which it would be useful to use a single animated float value to control the animations of other elements, including fading between two colors. Is there a suggested way of doing this ...
2 votes
1 answer
512 views

I need some advice on my code written in Jetpack Compose. I am trying to implement a simple composable with a simple animation. Let's say I have a container with two horizontally arranged buttons ...
0 votes
1 answer
160 views

Why do these 2 errors appear despite using the correct imports and dependenices? Unresolved reference: rememberSharedElementFor Unresolved reference: sharedElement MainActivity.kt import android.os....
1 vote
1 answer
200 views

I just want a simple one-time animation where the numbers 0-10 are displayed for 10 seconds. I expected that for such a simple task it would be enough to use animateIntAsState, but I can't seem to get ...
4 votes
2 answers
3k views

I have an animateDpAsState(..), whenever this animation is triggered it changes the Modifier.size(value) of an Image(...) thus causing recomposition. Is there a way to skip composition phase for this ...
4 votes
1 answer
727 views

I have a surface in Jetpack Compose which expands on click. var expanded by remember { mutableStateOf(false) } Column(modifier = Modifier.fillMaxSize()) { Surface(color = Color.Gray, onClick = { ...
0 votes
1 answer
364 views

I'm using Animatable to implement linear progress animation. Here is my code: val progress = remember(currStory) { Animatable(0f) } progress.animateTo( targetValue = 1f, ...
0 votes
1 answer
832 views

I've just learned how to animate a color from an initial value to a target value indefinitely. Now I want that animation to go through more colors. This is what I've got so far: @Preview(heightDp = 30,...
4 votes
1 answer
2k views

This is a share your knowledge, Q&A-style question inspired by this question to detect which section of arc segment or degree of touch inside a circle or semi-circle as in gif and image below. ...
3 votes
0 answers
344 views

I have a LazyColumn with items that have subsections, that appear and disappear on click. I want to animate the items content size change: when I click on an item, I want to reveal its subsection (or ...
1 vote
1 answer
480 views

I am trying to create a text effect in Jetpack Compose where the text uses a brush that looks like a set of colors smoothly changing diagonally. The individual letters in the text should move up and ...
0 votes
1 answer
815 views

I'm implementing AnimatedContent and I'm noticing that when my state issues the same target as is currently displaying (when new paged results for a list are issued from the view model) ...
3 votes
1 answer
1k views

I want to make an animation of a button, when clicked, its sizes increase and go beyond the size of the Box(). I wrote an animation with a custom Shape, it works, but where it is used, you have to ...
7 votes
1 answer
5k views

I am trying to make shaking animation of shape in Jetpack Compose. I want to use this animation to show error when user enters invalid Pin code. But all I can find is slide in, slide out animations ...