Example usage for Java android.view SurfaceView fields, constructors, methods, implement or subclass
The text is from its open source code.
int | getHeight() Return the height of your view. |
SurfaceHolder | getHolder() Return the SurfaceHolder providing access and control over this SurfaceView's underlying surface. |
ViewGroup.LayoutParams | getLayoutParams() Get the LayoutParams associated with this view. |
ViewParent | getParent() Gets the parent of this view. |
ViewTreeObserver | getViewTreeObserver() Returns the ViewTreeObserver for this view's hierarchy. |
int | getWidth() Return the width of your view. |
void | setBackgroundColor(@ColorInt int color) Sets the background color for this view. |
void | setFocusable(boolean focusable) Set whether this view can receive the focus. |
void | setFocusableInTouchMode(boolean focusableInTouchMode) Set whether this view can receive focus while in touch mode. |
void | setLayoutParams(ViewGroup.LayoutParams params) Set the layout parameters associated with this view. |
void | setOnClickListener(@Nullable OnClickListener l) Register a callback to be invoked when this view is clicked. |
void | setOnKeyListener(OnKeyListener l) Register a callback to be invoked when a hardware key is pressed in this view. |
void | setOnTouchListener(OnTouchListener l) Register a callback to be invoked when a touch event is sent to this view. |
void | setZOrderMediaOverlay(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). |
void | setZOrderOnTop(boolean onTop) Control whether the surface view's surface is placed on top of its window. |
String | toString() |