5,616 questions
4
votes
2
answers
173
views
How do I make an infinite animation with ease in?
I'm using jetpack compose in kotlin for my Android project. I am trying to animate planets orbiting around a center, which works perfectly. The animation starts at a button push and will continue ...
1
vote
1
answer
126
views
animateItem() in LazyList shadow clip / flickering problem
I'm currently experiencing an issue with cards in my lazy list in the app I'm developing:
when the lazy list reloads the items (because I trigger some MutableStateFlow change and so the items in my ...
3
votes
0
answers
144
views
Fragments, Predictive back animation customization
To implement Predictive Back feature in an app, that uses Fragments and Navigation Component, there are 2 options:
Option A: Use Transition API.
Just set animator animations directly into nav_graph ...
4
votes
1
answer
366
views
SwipeToDismiss positionalThreshold is ignored and executed action when user lifts finger
I am implementing SwipeToDismissBox using Jetpack Compose Material 3. I have two specific requirements:
Custom Threshold: The swipe action should be triggered when the user drags more than 25% of the ...
0
votes
1
answer
93
views
why my navbar animation is not smooth at the start of application
I just created some animation on my navbar. When i try to run it, i just wonder why the animation feels laggy at the start of application. And after some seconds, the animation start to feels smooth, ...
0
votes
0
answers
66
views
Shared element keeps going back to the top left grid square when using a container transform with shared element transitions
I'm working on a trivia game and I want the grid squares to go larger to show the full trivia question and buttons. I'm using a container transform and that works just fine except for one thing. All ...
0
votes
1
answer
104
views
RecyclerView Item move animation and strange behavior of on item click
I created a simple RecyclerView in Java and implemented item click handling in the adapter's onBindViewHolder method with this action that the clicked item moves to position 0.
@Override
public void ...
0
votes
0
answers
58
views
Why the content of webView shake when I change the height of the parent of the webview?
I am developing an Android project by java. First, I change the webView's parent view height to half of the screen. Then when user click a button, the webView's parent view will become full screen by ...
2
votes
1
answer
122
views
Cannot recognize "Modifier.sharedElement" in Jetpack Compose
I have already used imports and dependencies but there is two errors like this:
> Unresolved reference 'sharedElement'.
> Unresolved reference 'rememberSharedContentState'.
and here is part of ...
1
vote
0
answers
56
views
mousePad app, issue calculating the right postions diff between mobile app and PC
I am building a mobile (client) app that can control the mouse on a PC (server).
So I build a mobile app using expo that send the touches position to the server so I could control the mouse movement ...
3
votes
1
answer
299
views
Improving View.animate() performance on older Android versions
I'm developing an Android game that animates rectangular views moving horizontally across the screen using View.animate().translationX(...). The animation is just a plain rectangle moving left over a ...
0
votes
0
answers
20
views
Has Android changed how switch-activity anumations are handled?
I switch between activites a bunch in my app. I have an effect where an activity "slide in" on top of an existing one. example:
public static void switchToActivity(Activity origin, Class<?...
3
votes
1
answer
198
views
Jetpack Compose - AnimatedVisibility slideInHorizontally Lazy Row Clipping Children
I have a LazyRow and I wanted to have a slideInHorizontally effect with a bounce effect. But, the child on the right is always clipped. I remembered back in the XML, you can easily just clipToBounds = ...
1
vote
0
answers
44
views
RecyclerView bitmap generation - stop Progressbar animation
I use this example to generate pdf file from recyclerview. I call the getScreenshotFromRecyclerView function inside doInBackground of an AsyncTask and the bitmap is generated successfully.
The problem ...
1
vote
0
answers
68
views
Dynamic Fluid effect Background using Android java
I have been researching on how to recreate the background effect of Apple music and how it extracts colors and makes this dynamic slow moving fluid like with colors of extracted album art and animate ...