RotatedViewGroup

public class RotatedViewGroup extends ViewGroup

ViewGroup that can rotate a child view by 90º either clockwise or counter-clockwise. While not fully supported, if the view has multiple children, they will all be rotated in the same direction, just within the RotatedViewGroup's padding.

Inherited Constant Summary

Inherited Field Summary

Public Constructor Summary

RotatedViewGroup(Context context)
RotatedViewGroup(Context context, AttributeSet attrs)
RotatedViewGroup(Context context, AttributeSet attrs, int defStyle)

Public Method Summary

boolean
dispatchTouchEvent(MotionEvent event)
int
ViewParent
invalidateChildInParent(int[] location, Rect dirty)
boolean
void
setChildRotation(int rotation)

Protected Method Summary

void
dispatchDraw(Canvas canvas)
void
onLayout(boolean changed, int left, int top, int right, int bottom)
void
onMeasure(int widthMeasureSpec, int heightMeasureSpec)

Inherited Method Summary

Public Constructors

public RotatedViewGroup (Context context)

Parameters
context

public RotatedViewGroup (Context context, AttributeSet attrs)

Parameters
context
attrs

public RotatedViewGroup (Context context, AttributeSet attrs, int defStyle)

Parameters
context
attrs
defStyle

Public Methods

public boolean dispatchTouchEvent (MotionEvent event)

Parameters
event

public int getChildRotation ()

public ViewParent invalidateChildInParent (int[] location, Rect dirty)

Parameters
location
dirty

public boolean isChildRotated ()

public void setChildRotation (int rotation)

Parameters
rotation

Protected Methods

protected void dispatchDraw (Canvas canvas)

Parameters
canvas

protected void onLayout (boolean changed, int left, int top, int right, int bottom)

Parameters
changed
left
top
right
bottom

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

Parameters
widthMeasureSpec
heightMeasureSpec