FileDocCategorySizeDatePackage
ExpandedView.javaAPI DocAndroid 1.5 API1799Wed May 06 22:42:00 BST 2009com.android.server.status

ExpandedView

public 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
Constructors Summary
public ExpandedView(android.content.Context context, android.util.AttributeSet attrs)


         
        super(context, attrs);
        mDisplay = ((WindowManager)context.getSystemService(
                Context.WINDOW_SERVICE)).getDefaultDisplay();
    
Methods Summary
public intgetSuggestedMinimumHeight()
We want to shrink down to 0, and ignore the background.

        return 0;
    
protected voidonFinishInflate()

        super.onFinishInflate();
    
protected voidonLayout(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 voidonMeasure(int widthMeasureSpec, int heightMeasureSpec)

        super.onMeasure(widthMeasureSpec,
                MeasureSpec.makeMeasureSpec(mMaxHeight, MeasureSpec.AT_MOST));
    
voidsetMaxHeight(int h)

        if (h != mMaxHeight) {
            mMaxHeight = h;
            requestLayout();
        }