AI2 Component  (Version nb184) Class Reference
Inheritance diagram for

Public Member Functions

 ScaledFrameLayout (Context context)
 ScaledFrameLayout (Context context, AttributeSet attrs)
 ScaledFrameLayout (Context context, AttributeSet attrs, int defStyle)
ViewParent invalidateChildInParent (final int[] location, final Rect dirty)
boolean dispatchTouchEvent (MotionEvent ev)
void setScale (float scale)
boolean shouldDelayChildPressedState ()

Protected Member Functions

void dispatchDraw (Canvas canvas)
void onSizeChanged (int w, int h, int oldw, int oldh)
void onMeasure (int widthMeasureSpec, int heightMeasureSpec)
void onLayout (boolean changed, int left, int top, int right, int bottom)

Detailed Description

This is a FrameLayout that displays all content by a scaled amount. Paddding is adjusted such that scale * (size-padding) = size. Code adjusted from Google example code found at:

Definition at line 30 of file

Constructor & Destructor Documentation

◆ ScaledFrameLayout() [1/3] ( Context  context)

Definition at line 46 of file

◆ ScaledFrameLayout() [2/3] ( Context  context,
AttributeSet  attrs 

Definition at line 50 of file

◆ ScaledFrameLayout() [3/3] ( Context  context,
AttributeSet  attrs,
int  defStyle 

Definition at line 54 of file

Member Function Documentation

◆ dispatchDraw()

void ( Canvas  canvas)

Definition at line 60 of file

◆ dispatchTouchEvent()

boolean ( MotionEvent  ev)

Definition at line 85 of file

◆ invalidateChildInParent()

ViewParent ( final int[]  location,
final Rect  dirty 

Definition at line 68 of file

◆ onLayout()

void ( boolean  changed,
int  left,
int  top,
int  right,
int  bottom 

Position all children within this layout.

Definition at line 169 of file

◆ onMeasure()

void ( int  widthMeasureSpec,
int  heightMeasureSpec 

Ask all children to measure themselves and compute the measurement of this layout based on the children.

Definition at line 123 of file

◆ onSizeChanged()

void ( int  w,
int  h,
int  oldw,
int  oldh 

Definition at line 106 of file

◆ setScale()

void ( float  scale)

Definition at line 92 of file

◆ shouldDelayChildPressedState()

boolean ( )

Override because viewgroup does not scroll

Definition at line 114 of file

The documentation for this class was generated from the following file: