Why doesn't setVisibility work after a view is animated?

后端 未结 6 1736
别跟我提以往
别跟我提以往 2020-12-04 20:56

Why doesn\'t the textView become invisible?

Here is my layout xml:




        
6条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 21:42

    I came up with a workaround for this: basically right before you call setVisibility(View.GONE), do an animation with duration=0 setFillAfter(false) and have the angle from/to set to the current angle of rotation.

    This will clear the setFillAfter bitmap and allow the view to be gone.

提交回复
热议问题