android-animation

Cardview ripple effect doesn't work

安稳与你 提交于 2020-08-07 03:49:41
问题 Min SDK is 21. When I click on a cardview in my recycler adapter, the ripple effect doesn't happen and just goes to the next screen. The recyclerview is inside a fragment. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <android.support.v7.widget.CardView android:id="@+id

Cardview ripple effect doesn't work

无人久伴 提交于 2020-08-07 03:49:31
问题 Min SDK is 21. When I click on a cardview in my recycler adapter, the ripple effect doesn't happen and just goes to the next screen. The recyclerview is inside a fragment. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <android.support.v7.widget.CardView android:id="@+id

Android smooth animation not coming fine [closed]

你离开我真会死。 提交于 2020-07-16 10:55:46
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 days ago . Improve this question How to do Animation like in the Image with images I am trying with animations Puffout, scale out which is not coming fine. Please help me on this. Thanks in Advance 来源: https://stackoverflow.com/questions/62756897/android-smooth-animation-not-coming-fine

How to do android scale animation based on view's position on screen and focus that view in centre?

江枫思渺然 提交于 2020-07-10 10:27:08
问题 I want animation like this: Calendar Animation I want to scale animation on calendar and focus on current date to centre. I am new in android animation, I do some stuff for scaling: zoom_in.xml <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:fillAfter="true"> <scale android:duration="1000" android:fromXScale="1" android:fromYScale="1" android:pivotX="50%" android:pivotY="50%" android:toXScale="2" android:toYScale="2" /> </set> but

How to do android scale animation based on view's position on screen and focus that view in centre?

 ̄綄美尐妖づ 提交于 2020-07-10 10:26:28
问题 I want animation like this: Calendar Animation I want to scale animation on calendar and focus on current date to centre. I am new in android animation, I do some stuff for scaling: zoom_in.xml <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:fillAfter="true"> <scale android:duration="1000" android:fromXScale="1" android:fromYScale="1" android:pivotX="50%" android:pivotY="50%" android:toXScale="2" android:toYScale="2" /> </set> but

Applying shake animation while retaining the scale animation

♀尐吖头ヾ 提交于 2020-07-09 19:57:40
问题 I am applying a scale animation on RecyclerView. I am applying this animation on OnFocusChangeListener event. After this animation is applied, I also want to apply a shake animation to the same item while it retains the previous scale. but in my case the item is scaled back to normal size before applying the shake animation. Here is the problem I face. scale animation zoom_in.xml <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android

Applying shake animation while retaining the scale animation

半腔热情 提交于 2020-07-09 19:57:28
问题 I am applying a scale animation on RecyclerView. I am applying this animation on OnFocusChangeListener event. After this animation is applied, I also want to apply a shake animation to the same item while it retains the previous scale. but in my case the item is scaled back to normal size before applying the shake animation. Here is the problem I face. scale animation zoom_in.xml <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android

How to smoothly change drawable resource during MotionLayout transition?

烈酒焚心 提交于 2020-07-07 12:26:06
问题 I want to change image in fab button during transition, but i haven't found how to do it with xml because CustomAttribute tag supports only drawable colors as values. My solution is to set TransitionAdapter to MotionLayout and change drawable in onTransitionChange function. motionLayout.setTransitionListener(object : TransitionAdapter() { var fromStart = true var wasChanged = false override fun onTransitionChange( motionLayout: MotionLayout?, startId: Int, endId: Int, progress: Float ) { if (

How to smoothly change drawable resource during MotionLayout transition?

纵饮孤独 提交于 2020-07-07 12:25:32
问题 I want to change image in fab button during transition, but i haven't found how to do it with xml because CustomAttribute tag supports only drawable colors as values. My solution is to set TransitionAdapter to MotionLayout and change drawable in onTransitionChange function. motionLayout.setTransitionListener(object : TransitionAdapter() { var fromStart = true var wasChanged = false override fun onTransitionChange( motionLayout: MotionLayout?, startId: Int, endId: Int, progress: Float ) { if (

How to smoothly change drawable resource during MotionLayout transition?

戏子无情 提交于 2020-07-07 12:24:19
问题 I want to change image in fab button during transition, but i haven't found how to do it with xml because CustomAttribute tag supports only drawable colors as values. My solution is to set TransitionAdapter to MotionLayout and change drawable in onTransitionChange function. motionLayout.setTransitionListener(object : TransitionAdapter() { var fromStart = true var wasChanged = false override fun onTransitionChange( motionLayout: MotionLayout?, startId: Int, endId: Int, progress: Float ) { if (