View.SetTransitionVisibility(ViewStates) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Changes the visibility of this View without triggering any other changes.
[Android.Runtime.Register("setTransitionVisibility", "(I)V", "GetSetTransitionVisibility_IHandler", ApiSince=29)]
public virtual void SetTransitionVisibility (Android.Views.ViewStates visibility);
[<Android.Runtime.Register("setTransitionVisibility", "(I)V", "GetSetTransitionVisibility_IHandler", ApiSince=29)>]
abstract member SetTransitionVisibility : Android.Views.ViewStates -> unit
override this.SetTransitionVisibility : Android.Views.ViewStates -> unit
Parameters
- visibility
- ViewStates
One of #VISIBLE
, #INVISIBLE
, or #GONE
.
- Attributes
Remarks
Changes the visibility of this View without triggering any other changes. This should only be used by animation frameworks, such as android.transition.Transition
, where visibility changes should not adjust focus or trigger a new layout. Application developers should use #setVisibility
instead to ensure that the hierarchy is correctly updated.
Only call this method when a temporary visibility must be applied during an animation and the original visibility value is guaranteed to be reset after the animation completes. Use #setVisibility
in all other cases.
Java documentation for android.view.View.setTransitionVisibility(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.