Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

7 votes
1 answer
2k views

doOnPreDraw method not getting called for some items in a recyclerView

I'm having troubles with some animation in a recycler view. I do the relevant measurements in onViewAttachedToWindow: override fun onViewAttachedToWindow(holder: PairingViewHolder) { super....
Lorenzo Benevento's user avatar
0 votes
2 answers
839 views

Android animation problem - visibility change faster than animation

I have a problem with adjusting the animation to change the visibility of the view. I've read about various tips, but the recommended solutions do not help me. Animation doesn't work smoothly - what ...
Kamil's user avatar
  • 113
1 vote
2 answers
328 views

TranslateAnimation not work at the first time

I want to visible/gone button with animation right to left /left to right by clicking on it's row, and this is my code to set it visible: button.setVisibility(View.VISIBLE); TranslateAnimation ...
Mohammad Eshraqi's user avatar
0 votes
1 answer
34 views

Android Animation not work when i call visibility

The animation does not work after I set visibility to Invisible, I tried clear animation but not work. I have a button when I click the button it opens a linear layout with animation when I press back ...
user avatar
0 votes
0 answers
361 views

Android zoom in animation from visibility start state of View.GONE

I have a RelativeLayout containing an ImageView and progress bar. The starting state on the RelativeLayout is View.Gone. Using an animation library (tried several so the problem isn't the libs), I'm ...
Roy Hen Engel's user avatar
29 votes
5 answers
50k views

Animate visibility of a view from gone to visible with animation

I have a view that is invisible by default(Just for the first time). Now I need to switch the visibility to VISIBLE with this animation: if (myView.getVisibility() == View.INVISIBLE) { myView....
DastakWall's user avatar
-1 votes
1 answer
420 views

How are methods View.clearAnimation and Animation.AnimationListener.onAnimationEnd related?

I was having a problem, where setVisibility() would not work properly after applying an animation to a view once. PROBLEM public void show(): 1. setVisibility(View.VISIBLE) is called on a view 2. ...
Morphing Coffee's user avatar
0 votes
1 answer
191 views

Imageview visibility affected before animation

I'm working with some animations in my project : I have my own animated class : public class Anim1Foto implements Animator.AnimatorListener { private ImageView imagen1; private ImageView ...
Asdemuertes's user avatar
0 votes
3 answers
766 views

I want to animate view on setVisibility but it works only for the first time

I've added android:animateLayoutChanges="true" to my recycler view and visibility is handle in onClick as follow, but it works only at first click. rlOtherOptions.setOnClickListener(new View....
amit bansode's user avatar
1 vote
1 answer
2k views

Animate Between Visibility Modes For Menu Item

I am trying to animate between the visibility mode for a menu. By default all menu items are hidden but when the user clicks on the edit button i want to show all the items with an animation. I have ...
Jude Fernandes's user avatar
0 votes
1 answer
527 views

setVisibility not work after animation set for a view

After searching some questions like this, I still don't know its detail. Someone says that calling clearAnimation before setting visibility works correctly, but for me, it doesn't work sometimes. So, ...
liujie's user avatar
  • 1
1 vote
1 answer
573 views

View.setVisibility not works after use Animation fade_in/out

Why does mImageView.setVisibility not works after I use one animation? I have this code works fine (CODE1)... tbnVisible.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { ...
Biruel Rick's user avatar
0 votes
1 answer
174 views

FliCard and ListView A strange visibility bug in Android

I am trying to implement a FlipCard behavior in a ListView for my items and the bug is that my convertView don't update its visibility state according to the visibility I set in the getView method. It'...
Mathias Seguy Android2ee's user avatar
4 votes
4 answers
7k views

Android Visibility from GONE to VISIBLE doesn't work first time

Hello I have a problem with an animation I try to make. I use this library AndroidViewAnimations. Here is my layout xml code: <Button android:id="@+id/buttonDetails" style="...
user3596163's user avatar
1 vote
1 answer
1k views

Animate element from Gone to Visible (rather than from Invisible)

I want to fade in an element, but in a way that it is hidden (GONE) into visible, moving away the elements in the way. The animation I am currently using is the AlphaAnimation Animation fadeIn = new ...
Mahoni's user avatar
  • 7,366

15 30 50 per page