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: http://developer.android.com/reference/android/view/ViewGroup.html
Definition at line 30 of file ScaledFrameLayout.java.
◆ ScaledFrameLayout() [1/3]
com.google.appinventor.components.runtime.ScaledFrameLayout.ScaledFrameLayout |
( |
Context |
context | ) |
|
◆ ScaledFrameLayout() [2/3]
com.google.appinventor.components.runtime.ScaledFrameLayout.ScaledFrameLayout |
( |
Context |
context, |
|
|
AttributeSet |
attrs |
|
) |
| |
◆ ScaledFrameLayout() [3/3]
com.google.appinventor.components.runtime.ScaledFrameLayout.ScaledFrameLayout |
( |
Context |
context, |
|
|
AttributeSet |
attrs, |
|
|
int |
defStyle |
|
) |
| |
◆ dispatchDraw()
void com.google.appinventor.components.runtime.ScaledFrameLayout.dispatchDraw |
( |
Canvas |
canvas | ) |
|
|
protected |
◆ dispatchTouchEvent()
boolean com.google.appinventor.components.runtime.ScaledFrameLayout.dispatchTouchEvent |
( |
MotionEvent |
ev | ) |
|
◆ invalidateChildInParent()
ViewParent com.google.appinventor.components.runtime.ScaledFrameLayout.invalidateChildInParent |
( |
final int[] |
location, |
|
|
final Rect |
dirty |
|
) |
| |
◆ onLayout()
void com.google.appinventor.components.runtime.ScaledFrameLayout.onLayout |
( |
boolean |
changed, |
|
|
int |
left, |
|
|
int |
top, |
|
|
int |
right, |
|
|
int |
bottom |
|
) |
| |
|
protected |
◆ onMeasure()
void com.google.appinventor.components.runtime.ScaledFrameLayout.onMeasure |
( |
int |
widthMeasureSpec, |
|
|
int |
heightMeasureSpec |
|
) |
| |
|
protected |
Ask all children to measure themselves and compute the measurement of this layout based on the children.
Definition at line 123 of file ScaledFrameLayout.java.
◆ onSizeChanged()
void com.google.appinventor.components.runtime.ScaledFrameLayout.onSizeChanged |
( |
int |
w, |
|
|
int |
h, |
|
|
int |
oldw, |
|
|
int |
oldh |
|
) |
| |
|
protected |
◆ setScale()
void com.google.appinventor.components.runtime.ScaledFrameLayout.setScale |
( |
float |
scale | ) |
|
◆ shouldDelayChildPressedState()
boolean com.google.appinventor.components.runtime.ScaledFrameLayout.shouldDelayChildPressedState |
( |
| ) |
|
The documentation for this class was generated from the following file:
- C:/Users/Ulli/appinventor-sources/appinventor/components/src/com/google/appinventor/components/runtime/ScaledFrameLayout.java