belongs to Maven artifact com.android.support:wear:28.0.0-alpha1
BoxInsetLayout.LayoutParams
  public
  static
  
  
  class
  BoxInsetLayout.LayoutParams
  
  
  
  
  
  
  
  
  
  
    extends FrameLayout.LayoutParams
  
  
  
  
  
  
| java.lang.Object | ||||
| ↳ | android.view.ViewGroup.LayoutParams | |||
| ↳ | android.view.ViewGroup.MarginLayoutParams | |||
| ↳ | android.widget.FrameLayout.LayoutParams | |||
| ↳ | android.support.wear.widget.BoxInsetLayout.LayoutParams | |||
Per-child layout information for layouts that support margins, gravity and boxedEdges.
 See BoxInsetLayout Layout Attributes for a list
 of all child view attributes that this class supports.
Summary
| XML attributes | |
|---|---|
| BoxInsetLayout_Layout_boxedEdges | |
| Constants | |
|---|---|
| int | BOX_ALLThe view will force an inset on all of the edges of the children. | 
| int | BOX_BOTTOMThe view will force an inset on the bottom edge of the children. | 
| int | BOX_LEFTThe view will force an inset on the left edge of the children. | 
| int | BOX_NONEDefault boxing setting. | 
| int | BOX_RIGHTThe view will force an inset on the right edge of the children. | 
| int | BOX_TOPThe view will force an inset on the top edge of the children. | 
| Inherited constants | 
|---|
|  From
  class 
    android.widget.FrameLayout.LayoutParams
   | 
|  From
  class 
    android.view.ViewGroup.LayoutParams
   | 
| Fields | |
|---|---|
| 
    public
    
    
    int | boxedEdgesSpecifies the screen-specific insets for each of the child edges. | 
| Inherited fields | 
|---|
|  From
  class 
    android.widget.FrameLayout.LayoutParams
   | 
|  From
  class 
    android.view.ViewGroup.MarginLayoutParams
   | 
|  From
  class 
    android.view.ViewGroup.LayoutParams
   | 
| Public constructors | |
|---|---|
| 
      BoxInsetLayout.LayoutParams(Context context, AttributeSet attrs)
      Creates a new set of layout parameters. | |
| 
      BoxInsetLayout.LayoutParams(int width, int height)
      Creates a new set of layout parameters with the specified width and height. | |
| 
      BoxInsetLayout.LayoutParams(int width, int height, int gravity)
      Creates a new set of layout parameters with the specified width, height and gravity. | |
| 
      BoxInsetLayout.LayoutParams(int width, int height, int gravity, int boxed)
       | |
| 
      BoxInsetLayout.LayoutParams(ViewGroup.LayoutParams source)
      Copy constructor. | |
| 
      BoxInsetLayout.LayoutParams(ViewGroup.MarginLayoutParams source)
      Copy constructor. | |
| 
      BoxInsetLayout.LayoutParams(FrameLayout.LayoutParams source)
      Copy constructor. | |
| 
      BoxInsetLayout.LayoutParams(BoxInsetLayout.LayoutParams source)
      Copy constructor. | |
| Inherited methods | |
|---|---|
|  From
class 
  
    android.view.ViewGroup.MarginLayoutParams
  
 | |
|  From
class 
  
    android.view.ViewGroup.LayoutParams
  
 | |
|  From
class 
  
    java.lang.Object
  
 | |
XML attributes
BoxInsetLayout_Layout_boxedEdges
Constants
BOX_ALL
int BOX_ALL
The view will force an inset on all of the edges of the children.
Constant Value: 15 (0x0000000f)
BOX_BOTTOM
int BOX_BOTTOM
The view will force an inset on the bottom edge of the children.
Constant Value: 8 (0x00000008)
BOX_LEFT
int BOX_LEFT
The view will force an inset on the left edge of the children.
Constant Value: 1 (0x00000001)
BOX_NONE
int BOX_NONE
Default boxing setting. There are no insets forced on the child views.
Constant Value: 0 (0x00000000)
BOX_RIGHT
int BOX_RIGHT
The view will force an inset on the right edge of the children.
Constant Value: 4 (0x00000004)
BOX_TOP
int BOX_TOP
The view will force an inset on the top edge of the children.
Constant Value: 2 (0x00000002)
Fields
boxedEdges
int boxedEdges
Specifies the screen-specific insets for each of the child edges.
Public constructors
BoxInsetLayout.LayoutParams
BoxInsetLayout.LayoutParams (Context context, AttributeSet attrs)
Creates a new set of layout parameters. The values are extracted from the supplied attributes set and context.
| Parameters | |
|---|---|
| context | Context: the application environment | 
| attrs | AttributeSet: the set of attributes from which to extract the layout parameters' values | 
BoxInsetLayout.LayoutParams
BoxInsetLayout.LayoutParams (int width, 
                int height)Creates a new set of layout parameters with the specified width and height.
| Parameters | |
|---|---|
| width | int: the width, eitherMATCH_PARENT,WRAP_CONTENTor a fixed size in pixels | 
| height | int: the height, eitherMATCH_PARENT,WRAP_CONTENTor a fixed size in pixelsy | 
BoxInsetLayout.LayoutParams
BoxInsetLayout.LayoutParams (int width, 
                int height, 
                int gravity)Creates a new set of layout parameters with the specified width, height and gravity.
| Parameters | |
|---|---|
| width | int: the width, eitherMATCH_PARENT,WRAP_CONTENTor a fixed size in pixels | 
| height | int: the height, eitherMATCH_PARENT,WRAP_CONTENTor a fixed size in pixels | 
| gravity | int: the gravity | 
See also:
BoxInsetLayout.LayoutParams
BoxInsetLayout.LayoutParams (int width, 
                int height, 
                int gravity, 
                int boxed)| Parameters | |
|---|---|
| width | int | 
| height | int | 
| gravity | int | 
| boxed | int | 
BoxInsetLayout.LayoutParams
BoxInsetLayout.LayoutParams (ViewGroup.LayoutParams source)
Copy constructor. Clones the width and height of the source.
| Parameters | |
|---|---|
| source | ViewGroup.LayoutParams: The layout params to copy from. | 
BoxInsetLayout.LayoutParams
BoxInsetLayout.LayoutParams (ViewGroup.MarginLayoutParams source)
Copy constructor. Clones the width, height and margin values.
| Parameters | |
|---|---|
| source | ViewGroup.MarginLayoutParams: The layout params to copy from. | 
BoxInsetLayout.LayoutParams
BoxInsetLayout.LayoutParams (FrameLayout.LayoutParams source)
Copy constructor. Clones the width, height, margin values, and gravity of the source.
| Parameters | |
|---|---|
| source | FrameLayout.LayoutParams: The layout params to copy from. | 
BoxInsetLayout.LayoutParams
BoxInsetLayout.LayoutParams (BoxInsetLayout.LayoutParams source)
Copy constructor. Clones the width, height, margin values, boxedEdges and gravity of the source.
| Parameters | |
|---|---|
| source | BoxInsetLayout.LayoutParams: The layout params to copy from. | 
- Interfaces
- Classes
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
