Пример #1
0
 /**
  * Checks if is the behind view showing.
  *
  * @return Whether or not the behind view is showing
  */
 public boolean isSecondaryMenuShowing() {
   return mViewAbove.getCurrentItem() == 2;
 }
Пример #2
0
 /* (non-Javadoc)
  * @see android.view.View#onSaveInstanceState()
  */
 @Override
 protected Parcelable onSaveInstanceState() {
   Parcelable superState = super.onSaveInstanceState();
   SavedState ss = new SavedState(superState, mViewAbove.getCurrentItem());
   return ss;
 }
Пример #3
0
 /**
  * Checks if is the behind view showing.
  *
  * @return Whether or not the behind view is showing
  */
 public boolean isMenuShowing() {
   return mViewAbove.getCurrentItem() == 0 || mViewAbove.getCurrentItem() == 2;
 }