Share via


MediaController.SetAnchorView(View) Method

Definition

Set the view that acts as the anchor for the control view.

[Android.Runtime.Register("setAnchorView", "(Landroid/view/View;)V", "GetSetAnchorView_Landroid_view_View_Handler")]
public virtual void SetAnchorView (Android.Views.View? view);
[<Android.Runtime.Register("setAnchorView", "(Landroid/view/View;)V", "GetSetAnchorView_Landroid_view_View_Handler")>]
abstract member SetAnchorView : Android.Views.View -> unit
override this.SetAnchorView : Android.Views.View -> unit

Parameters

view
View

The view to which to anchor the controller when it is visible.

Attributes

Remarks

Set the view that acts as the anchor for the control view. This can for example be a VideoView, or your Activity's main view. When VideoView calls this method, it will use the VideoView's parent as the anchor.

Java documentation for android.widget.MediaController.setAnchorView(android.view.View).

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.

Applies to