TrackingViewpublic class TrackingView extends android.widget.LinearLayout
Fields Summary |
---|
final android.view.Display | mDisplay | StatusBarService | mService | boolean | mTracking | int | mStartX | int | mStartY |
Methods Summary |
---|
public boolean | dispatchKeyEvent(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 void | onAttachedToWindow()
super.onAttachedToWindow();
mService.onTrackingViewAttached();
| protected void | onLayout(boolean changed, int left, int top, int right, int bottom)
super.onLayout(changed, left, top, right, bottom);
mService.updateAvailableHeight();
|
|