Methods Summary |
---|
protected int | getChildDrawingOrder(int childCount, int i)
if (mSelectedPanelIndex == -1) {
return i;
} else {
if (i == childCount - 1) {
return mSelectedPanelIndex;
} else if (i >= mSelectedPanelIndex) {
return i + 1;
} else {
return i;
}
}
|
public int | getPanelIndex(PanelView pv)
final int N = getChildCount();
for (int i=0; i<N; i++) {
final PanelView v = (PanelView) getChildAt(i);
if (pv == v) return i;
}
return -1;
|
protected void | onFinishInflate()
super.onFinishInflate();
setChildrenDrawingOrderEnabled(true);
|
public boolean | onTouchEvent(android.view.MotionEvent event)
if (DEBUG_GESTURES) {
if (event.getActionMasked() != MotionEvent.ACTION_MOVE) {
EventLog.writeEvent(EventLogTags.SYSUI_PANELHOLDER_TOUCH,
event.getActionMasked(), (int) event.getX(), (int) event.getY());
}
}
return false;
|
public void | setBar(PanelBar panelBar)
mBar = panelBar;
|
public void | setSelectedPanel(PanelView pv)
mSelectedPanelIndex = getPanelIndex(pv);
|