/frameworks/base/core/java/com/android/internal/widget/ |
D | ActionBarContextView.java | 112 mMenuView = (ActionMenuView) mActionMenuPresenter.getMenuView(this); in setSplitToolbar() 113 mMenuView.setBackground(null); in setSplitToolbar() 114 final ViewGroup oldParent = (ViewGroup) mMenuView.getParent(); in setSplitToolbar() 115 if (oldParent != null) oldParent.removeView(mMenuView); in setSplitToolbar() 116 addView(mMenuView, layoutParams); in setSplitToolbar() 126 mMenuView = (ActionMenuView) mActionMenuPresenter.getMenuView(this); in setSplitToolbar() 127 mMenuView.setBackground(mSplitBackground); in setSplitToolbar() 128 final ViewGroup oldParent = (ViewGroup) mMenuView.getParent(); in setSplitToolbar() 129 if (oldParent != null) oldParent.removeView(mMenuView); in setSplitToolbar() 130 mSplitView.addView(mMenuView, layoutParams); in setSplitToolbar() [all …]
|
D | AbsActionBarView.java | 47 protected ActionMenuView mMenuView; field in AbsActionBarView 147 if (mSplitView != null && mMenuView != null) { in setupAnimatorToVisibility() 148 mMenuView.setAlpha(0); in setupAnimatorToVisibility() 154 if (mSplitView != null && mMenuView != null) { in setupAnimatorToVisibility() 156 ObjectAnimator splitAnim = ObjectAnimator.ofFloat(mMenuView, View.ALPHA, 1); in setupAnimatorToVisibility() 169 if (mSplitView != null && mMenuView != null) { in setupAnimatorToVisibility() 171 ObjectAnimator splitAnim = ObjectAnimator.ofFloat(mMenuView, View.ALPHA, 0); in setupAnimatorToVisibility() 299 if (mSplitView != null && mMenuView != null) { in onAnimationEnd() 300 mMenuView.setVisibility(mFinalVisibility); in onAnimationEnd()
|
D | ActionBarView.java | 300 if (mMenuView != null) { in setSplitToolbar() 301 final ViewGroup oldParent = (ViewGroup) mMenuView.getParent(); in setSplitToolbar() 303 oldParent.removeView(mMenuView); in setSplitToolbar() 307 mSplitView.addView(mMenuView); in setSplitToolbar() 309 mMenuView.getLayoutParams().width = LayoutParams.MATCH_PARENT; in setSplitToolbar() 311 addView(mMenuView); in setSplitToolbar() 312 mMenuView.getLayoutParams().width = LayoutParams.WRAP_CONTENT; in setSplitToolbar() 314 mMenuView.requestLayout(); in setSplitToolbar() 380 if (mMenuView != null) { in setMenu() 381 final ViewGroup oldParent = (ViewGroup) mMenuView.getParent(); in setMenu() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
D | ListMenuPresenter.java | 47 ExpandedMenuView mMenuView; field in ListMenuPresenter 101 if (mMenuView == null) { in getMenuView() 102 mMenuView = (ExpandedMenuView) mInflater.inflate( in getMenuView() 107 mMenuView.setAdapter(mAdapter); in getMenuView() 108 mMenuView.setOnItemClickListener(this); in getMenuView() 110 return mMenuView; in getMenuView() 162 if (mMenuView != null) { in setItemIndexOffset() 187 if (mMenuView != null) { in saveHierarchyState() 188 ((View) mMenuView).saveHierarchyState(viewStates); in saveHierarchyState() 196 ((View) mMenuView).restoreHierarchyState(viewStates); in restoreHierarchyState() [all …]
|
D | BaseMenuPresenter.java | 46 protected MenuView mMenuView; field in BaseMenuPresenter 73 if (mMenuView == null) { in getMenuView() 74 mMenuView = (MenuView) mSystemInflater.inflate(mMenuLayoutRes, root, false); in getMenuView() 75 mMenuView.initialize(mMenu); in getMenuView() 79 return mMenuView; in getMenuView() 86 final ViewGroup parent = (ViewGroup) mMenuView; in updateMenuView() 133 ((ViewGroup) mMenuView).addView(itemView, childIndex); in addItemView()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ListMenuPresenter.java | 43 ExpandedMenuView mMenuView; field in ListMenuPresenter 97 if (mMenuView == null) { in getMenuView() 98 mMenuView = (ExpandedMenuView) mInflater.inflate( in getMenuView() 103 mMenuView.setAdapter(mAdapter); in getMenuView() 104 mMenuView.setOnItemClickListener(this); in getMenuView() 106 return mMenuView; in getMenuView() 158 if (mMenuView != null) { in setItemIndexOffset() 183 if (mMenuView != null) { in saveHierarchyState() 184 ((View) mMenuView).saveHierarchyState(viewStates); in saveHierarchyState() 192 ((View) mMenuView).restoreHierarchyState(viewStates); in restoreHierarchyState() [all …]
|
D | BaseMenuPresenter.java | 42 protected MenuView mMenuView; field in BaseMenuPresenter 69 if (mMenuView == null) { in getMenuView() 70 mMenuView = (MenuView) mSystemInflater.inflate(mMenuLayoutRes, root, false); in getMenuView() 71 mMenuView.initialize(mMenu); in getMenuView() 75 return mMenuView; in getMenuView() 82 final ViewGroup parent = (ViewGroup) mMenuView; in updateMenuView() 129 ((ViewGroup) mMenuView).addView(itemView, childIndex); in addItemView()
|
D | IconMenuPresenter.java | 80 final IconMenuView parent = (IconMenuView) mMenuView; 104 final IconMenuView menuView = (IconMenuView) mMenuView; 132 return ((IconMenuView) mMenuView).getNumActualItemsShown(); 137 if (mMenuView != null) { 138 ((View) mMenuView).saveHierarchyState(viewStates); 146 ((View) mMenuView).restoreHierarchyState(viewStates); 159 if (mMenuView == null) {
|
/frameworks/support/design/src/android/support/design/internal/ |
D | NavigationMenuPresenter.java | 57 private NavigationMenuView mMenuView; field in NavigationMenuPresenter 97 if (mMenuView == null) { in getMenuView() 98 mMenuView = (NavigationMenuView) mLayoutInflater.inflate( in getMenuView() 104 mMenuView, false); in getMenuView() 105 mMenuView.addHeaderView(mHeader, null, false); in getMenuView() 106 mMenuView.setAdapter(mAdapter); in getMenuView() 107 mMenuView.setOnItemClickListener(this); in getMenuView() 109 return mMenuView; in getMenuView() 163 if (mMenuView != null) { in onSaveInstanceState() 165 mMenuView.saveHierarchyState(hierarchy); in onSaveInstanceState() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ActionMenuPresenter.java | 105 ((View) mMenuView).getViewTreeObserver().removeOnPreDrawListener(this); 118 ((View) mMenuView).getViewTreeObserver().removeOnPreDrawListener( 223 MenuView oldMenuView = mMenuView; in getMenuView() 255 final ActionMenuView menuView = (ActionMenuView) mMenuView; in bindItemView() 279 final ViewGroup menuView = (ViewGroup) mMenuView; in computeMenuItemAnimationInfo() 368 ((ViewGroup) mMenuView).getOverlay().add(menuItemLayoutInfoPre.view); in runItemAnimations() 382 ((ViewGroup) mMenuView).getOverlay().remove(menuItemLayoutInfoPre.view); in runItemAnimations() 431 ((View) mMenuView).getViewTreeObserver(). in setupItemAnimations() 437 final ViewGroup menuViewParent = (ViewGroup) ((View) mMenuView).getParent(); in updateMenuView() 443 ((View) mMenuView).requestLayout(); in updateMenuView() [all …]
|
D | Toolbar.java | 105 private ActionMenuView mMenuView; field in Toolbar 345 return getVisibility() == VISIBLE && mMenuView != null && mMenuView.isOverflowReserved(); in canShowOverflowMenu() 355 return mMenuView != null && mMenuView.isOverflowMenuShowing(); in isOverflowMenuShowing() 360 return mMenuView != null && mMenuView.isOverflowMenuShowPending(); in isOverflowMenuShowPending() 369 return mMenuView != null && mMenuView.showOverflowMenu(); in showOverflowMenu() 378 return mMenuView != null && mMenuView.hideOverflowMenu(); in hideOverflowMenu() 383 if (menu == null && mMenuView == null) { in setMenu() 388 final MenuBuilder oldMenu = mMenuView.peekMenu(); in setMenu() 412 mMenuView.setPopupTheme(mPopupTheme); in setMenu() 413 mMenuView.setPresenter(outerPresenter); in setMenu() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | Toolbar.java | 123 private ActionMenuView mMenuView; field in Toolbar 362 return getVisibility() == VISIBLE && mMenuView != null && mMenuView.isOverflowReserved(); in canShowOverflowMenu() 372 return mMenuView != null && mMenuView.isOverflowMenuShowing(); in isOverflowMenuShowing() 377 return mMenuView != null && mMenuView.isOverflowMenuShowPending(); in isOverflowMenuShowPending() 386 return mMenuView != null && mMenuView.showOverflowMenu(); in showOverflowMenu() 395 return mMenuView != null && mMenuView.hideOverflowMenu(); in hideOverflowMenu() 400 if (menu == null && mMenuView == null) { in setMenu() 405 final MenuBuilder oldMenu = mMenuView.peekMenu(); in setMenu() 429 mMenuView.setPopupTheme(mPopupTheme); in setMenu() 430 mMenuView.setPresenter(outerPresenter); in setMenu() [all …]
|
D | ActionMenuPresenter.java | 211 final ActionMenuView menuView = (ActionMenuView) mMenuView; in bindItemView() 228 final ViewGroup menuViewParent = (ViewGroup) ((View) mMenuView).getParent(); in updateMenuView() 234 ((View) mMenuView).requestLayout(); in updateMenuView() 265 if (parent != mMenuView) { in updateMenuView() 269 ActionMenuView menuView = (ActionMenuView) mMenuView; in updateMenuView() 272 } else if (mOverflowButton != null && mOverflowButton.getParent() == mMenuView) { in updateMenuView() 273 ((ViewGroup) mMenuView).removeView(mOverflowButton); in updateMenuView() 276 ((ActionMenuView) mMenuView).setOverflowReserved(mReserveOverflow); in updateMenuView() 307 final ViewGroup parent = (ViewGroup) mMenuView; in findViewForItem() 326 if (mReserveOverflow && !isOverflowMenuShowing() && mMenu != null && mMenuView != null && in showOverflowMenu() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ActionBarContextView.java | 184 mMenuView = (ActionMenuView) mActionMenuPresenter.getMenuView(this); in initForMode() 185 mMenuView.setBackgroundDrawable(null); in initForMode() 186 addView(mMenuView, layoutParams); in initForMode() 199 mMenuView = null; in killMode() 268 if (mMenuView != null && mMenuView.getParent() == this) { in onMeasure() 269 availableWidth = measureChildView(mMenuView, availableWidth, in onMeasure() 344 if (mMenuView != null) { in onLayout() 345 x += positionChild(mMenuView, x, y, contentHeight, !isLayoutRtl); in onLayout()
|
D | AbsActionBarView.java | 45 protected ActionMenuView mMenuView; field in AbsActionBarView
|