ArcLayout.LayoutParams

public class ArcLayout.LayoutParams


Layout parameters for a widget added to an arc. This allows each element to specify whether or not it should be rotated(around the center of the child) when drawn inside the arc. For example, when the child is put at the center-bottom of the arc, whether the parent layout is responsible to rotate it 180 degree to draw it upside down.

Note that the rotate parameter is ignored when drawing "Fullscreen" elements.

Summary

Constants

static final int

Align to the center of the parent ArcLayout.

static final int

Align to the inner edge of the parent ArcLayout.

static final int

Align to the outer edge of the parent ArcLayout.

Public constructors

Copy constructor

Creates a new set of layout parameters.

LayoutParams(int width, int height)

Creates a new set of layout parameters with specified width and height

Public methods

@ArcLayout.LayoutParams.VerticalAlignment int

Gets how the widget is positioned vertically in the ArcLayout.

boolean

Gets whether the widget shall be rotated by the ArcLayout container corresponding to its layout position angle

void
setRotated(boolean rotated)

Sets whether the widget shall be rotated by the ArcLayout container corresponding to its layout position angle

void

Sets how the widget is positioned vertically in the ArcLayout.

Inherited methods

From class ViewGroup.MarginLayoutParams
int
int
int
boolean
void
resolveLayoutDirection(int layoutDirection)
void
setLayoutDirection(int layoutDirection)
void