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

TrackingView

public class TrackingView extends android.widget.LinearLayout

(Omit source code)

Fields Summary
final android.view.Display
mDisplay
StatusBarService
mService
boolean
mTracking
int
mStartX
int
mStartY
Constructors Summary
public TrackingView(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
        mDisplay = ((WindowManager)context.getSystemService(
                Context.WINDOW_SERVICE)).getDefaultDisplay();
    
Methods Summary
public booleandispatchKeyEvent(android.view.KeyEvent event)

        boolean down = event.getAction() == KeyEvent.ACTION_DOWN;
        switch (event.getKeyCode()) {
        case KeyEvent.KEYCODE_BACK:
            if (down) {
                mService.deactivate();
            }
            return true;
        }
        return super.dispatchKeyEvent(event);
    
protected voidonAttachedToWindow()

        super.onAttachedToWindow();
        mService.onTrackingViewAttached();
    
protected voidonLayout(boolean changed, int left, int top, int right, int bottom)

        super.onLayout(changed, left, top, right, bottom);
        mService.updateAvailableHeight();