ExpandedViewpublic class ExpandedView extends android.widget.LinearLayout
Fields Summary |
---|
final android.view.Display | mDisplay | StatusBarService | mService | boolean | mTracking | int | mStartX | int | mStartY | int | mMaxHeight | int | mPrevHeight |
Methods Summary |
---|
public int | getSuggestedMinimumHeight()We want to shrink down to 0, and ignore the background.
return 0;
| protected void | onFinishInflate()
super.onFinishInflate();
| protected void | onLayout(boolean changed, int left, int top, int right, int bottom)
super.onLayout(changed, left, top, right, bottom);
int height = bottom - top;
if (height != mPrevHeight) {
//Log.d(StatusBarService.TAG, "height changed old=" + mPrevHeight + " new=" + height);
mPrevHeight = height;
mService.updateExpandedViewPos(StatusBarService.EXPANDED_LEAVE_ALONE);
}
| protected void | onMeasure(int widthMeasureSpec, int heightMeasureSpec)
super.onMeasure(widthMeasureSpec,
MeasureSpec.makeMeasureSpec(mMaxHeight, MeasureSpec.AT_MOST));
| void | setMaxHeight(int h)
if (h != mMaxHeight) {
mMaxHeight = h;
requestLayout();
}
|
|