Java android.view SurfaceView fields, constructors, methods, implement or subclass

Example usage for Java android.view SurfaceView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view SurfaceView.

The text is from its open source code.

Subclass

android.view.SurfaceView has subclasses.
Click this link to see all its subclasses.

Constructor

Method

intgetHeight()
Return the height of your view.
SurfaceHoldergetHolder()
Return the SurfaceHolder providing access and control over this SurfaceView's underlying surface.
ViewGroup.LayoutParamsgetLayoutParams()
Get the LayoutParams associated with this view.
ViewParentgetParent()
Gets the parent of this view.
ViewTreeObservergetViewTreeObserver()
Returns the ViewTreeObserver for this view's hierarchy.
intgetWidth()
Return the width of your view.
voidsetBackgroundColor(@ColorInt int color)
Sets the background color for this view.
voidsetFocusable(boolean focusable)
Set whether this view can receive the focus.
voidsetFocusableInTouchMode(boolean focusableInTouchMode)
Set whether this view can receive focus while in touch mode.
voidsetLayoutParams(ViewGroup.LayoutParams params)
Set the layout parameters associated with this view.
voidsetOnClickListener(@Nullable OnClickListener l)
Register a callback to be invoked when this view is clicked.
voidsetOnKeyListener(OnKeyListener l)
Register a callback to be invoked when a hardware key is pressed in this view.
voidsetOnTouchListener(OnTouchListener l)
Register a callback to be invoked when a touch event is sent to this view.
voidsetZOrderMediaOverlay(boolean isMediaOverlay)
Control whether the surface view's surface is placed on top of another regular surface view in the window (but still behind the window itself).
voidsetZOrderOnTop(boolean onTop)
Control whether the surface view's surface is placed on top of its window.
StringtoString()