BoxInsetLayout

@UiThread public class BoxInsetLayout


BoxInsetLayout is a screen shape-aware ViewGroup that can box its children in the center square of a round screen by using the layout_boxedEdges attribute. The values for this attribute specify the child's edges to be boxed in: left|top|right|bottom or all. The layout_boxedEdges attribute is ignored on a device with a rectangular screen.

Summary

Nested types

BoxInsetLayout.LayoutParams

Per-child layout information for layouts that support margins, gravity and boxedEdges.

Public constructors

Simple constructor to use when creating a view from code.

Constructor that is called when inflating a view from XML.

BoxInsetLayout(
    @NonNull Context context,
    @Nullable AttributeSet attrs,
    @StyleRes int defStyle
)

Perform inflation from XML and apply a class-specific base style from a theme attribute.

Inherited methods

From class View
void
void
void
ViewPropertyAnimator
void
void
void
void

This method is deprecated.

void
boolean
boolean
boolean
boolean
boolean
canScrollHorizontally(int direction)
boolean
canScrollVertically(int direction)
final void
void
final void
boolean
void
void
static int
combineMeasuredStates(int curState, int newState)
void
WindowInsets
AccessibilityNodeInfo
void
void

This method is deprecated.

boolean
boolean
dispatchNestedFling(float velocityX, float velocityY, boolean consumed)
boolean
dispatchNestedPreFling(float velocityX, float velocityY)
boolean
dispatchNestedPrePerformAccessibilityAction(
    int action,
    Bundle arguments
)
boolean
dispatchNestedPreScroll(
    int dx,
    int dy,
    int[] consumed,
    int[] offsetInWindow
)
boolean