SurfaceControlViewHost.LayoutParams
public
static
class
SurfaceControlViewHost.LayoutParams
extends Object
| java.lang.Object | |
| ↳ | android.view.SurfaceControlViewHost.LayoutParams |
Specifies the layout parameters for a View hosted by a SurfaceControlViewHost. This is a subset of WindowManager.LayoutParams that are
applicable for Views hosted by SurfaceControlViewHost.
Summary
Public constructors | |
|---|---|
LayoutParams(int width, int height, boolean focusable)
Creates a new set of layout parameters. |
|
Public methods | |
|---|---|
int
|
getHeight()
Returns the height, in pixels, of the bounds for the |
int
|
getWidth()
Returns the width, in pixels, of the bounds for the |
boolean
|
isFocusable()
Returns |
Inherited methods | |
|---|---|
Public constructors
LayoutParams
public LayoutParams (int width,
int height,
boolean focusable)Creates a new set of layout parameters. If focusable is set to false,
this View won't ever get key input focus, so the user can not send key or other
button events to it. Those will instead go to the current focused window.
If set to true, View is focusable.
| Parameters | |
|---|---|
width |
int: The width, in pixels, of the bounds for the View. |
height |
int: The height, in pixels, of the bounds for the View. |
focusable |
boolean: Whether the View can receive key input focus. |
Public methods
getHeight
public int getHeight ()
Returns the height, in pixels, of the bounds for the View.
| Returns | |
|---|---|
int |
|
getWidth
public int getWidth ()
Returns the width, in pixels, of the bounds for the View.
| Returns | |
|---|---|
int |
|
isFocusable
public boolean isFocusable ()
Returns true if this View can receive key input focus.
| Returns | |
|---|---|
boolean |
|