How to increase the height of a BottomSheetDialog to follow a vertical translation

All we need is a simple explanation of the problem, which is provided below. I’m trying to move views vertically in a BottoSheetDialog, but I’m getting an unexpected behavior. My BottomSheet looks like this Before Translation I’m moving my constraint Layout with myLayout.animate().translationY(-100f).setStartDelay(0).start() That’s the BottomSheet after the translation: After Transition How can I increase … Read more

Animating a specific line of a textview using android Animations

All we need is a simple explanation of the problem, which is provided below. I am wondering if it is possible to perform a fade out/fade in animation on a specific line of a textview. I have a two line textview which I would like the "title" to stay visible while the "data" fades out … Read more

Animate shape using Jetpack compose for Android

All we need is a simple explanation of the problem, which is provided below. I want to build a great lockscreen using compose like stock Android 12 like this: I managed to do something similar, however i have 2 issues, one is when I use pointerInteropFilter to get the action events I use a remember … Read more

How can I animateTo diagonally in Compose and coroutineScope?

All we need is a simple explanation of the problem, which is provided below. I have a box that I drag over and around (was a struggle, but I realised that the Kotlin SDK is actually really good with lots of examples). now. I setup this box in a way that when it’s clicks, and, … Read more

Animation yoyo keep run when typing Edittext

All we need is a simple explanation of the problem, which is provided below. when typing edit text yoyo animation keep run how to keep typing show animation Once ? text_send.addTextChangedListener(new TextWatcher() { @Override public void afterTextChanged(Editable s) {} @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void … Read more

How to smoothly animate objects in Android

All we need is a simple explanation of the problem, which is provided below. I have a view object in Android and I would like to animate it such that it flows from right to left on the screen. I currently use ObjectAnimator with the following code: ObjectAnimator animation = ObjectAnimator.ofFloat(view, "translationX", (-1)* 50* currentTimeSlot); … Read more

How to animate TextView width from Visible to Gone state?

All we need is a simple explanation of the problem, which is provided below. I want to animate TextView width when I change visibility of TextView. I don’t wanna achieve generic "fade in/out" effect, but I wanna collapse TextView from sides to 0 width. Here are my functions: fun fadeInTextViewSize(){ val parentWidth = (buttonText.parent as … Read more

Multiple objects animated at once in Compose

All we need is a simple explanation of the problem, which is provided below. I’m trying to animate the movement of multiple circles on canvas at once. So far I managed to animate one, that moves to a random spot on canvas on every user click using Animatable. Now I want to add another 2 … Read more

Jetpack compose from expanded bottomsheet to fullscreen

All we need is a simple explanation of the problem, which is provided below. Want to achieve something like in gif below using Jetpack Compose, does anyone know best soulution for this, used bottom sheet, but couldnt convert it to fullscreen https://miro.medium.com/max/304/1*lZTBcYUYb8eB65x_7bWbjw.gif Let’s Solve it: This is a common error many developers questioned us about … Read more

MotionLayout rotate image and resetting rotation android

All we need is a simple explanation of the problem, which is provided below. I’m rotating an imageview using MotionLayout. First click, image rotate clockwise, that’s what i want. But second click, image rotate counterclockwise. I tried some way to reset state of image but it doesn’t work. Can i have a advise??? <MotionScene xmlns:android="http://schemas.android.com/apk/res/android" … Read more