Searched refs:mItemData (Results 1 – 6 of 6) sorted by relevance
43 private MenuItemImpl mItemData; field in IconMenuItemView110 mItemData = itemData; in initialize()119 mItemData = data; in setItemData()129 if ((mItemInvoker != null) && (mItemInvoker.invokeItem(mItemData))) { in performClick()157 if (mItemData == null) { in setCaptionMode()161 mShortcutCaptionMode = shortcut && (mItemData.shouldShowShortcut()); in setCaptionMode()163 CharSequence text = mItemData.getTitleForItemView(this); in setCaptionMode()168 mShortcutCaption = mItemData.getShortcutLabel(); in setCaptionMode()211 return mItemData; in getItemData()232 if (mItemData != null && mIcon != null) { in drawableStateChanged()[all …]
39 private MenuItemImpl mItemData; field in ListMenuItemView106 mItemData = itemData; in initialize()134 return mItemData; in getItemData()147 if (mItemData.isExclusiveCheckable()) { in setCheckable()162 compoundButton.setChecked(mItemData.isChecked()); in setCheckable()182 if (mItemData.isExclusiveCheckable()) { in setChecked()204 final int newVisibility = (showShortcut && mItemData.shouldShowShortcut()) in setShortcut()208 mShortcutView.setText(mItemData.getShortcutLabel()); in setShortcut()217 final boolean showIcon = mItemData.shouldShowIcon() || mForceShowIcon; in setIcon()296 if (mItemData != null && mItemData.hasSubMenu()) { in onInitializeAccessibilityNodeInfoInternal()
45 private MenuItemImpl mItemData; field in ActionMenuItemView119 return mItemData; in getItemData()124 mItemData = itemData; in initialize()142 if (mItemData.hasSubMenu() && mForwardingListener != null in onTouchEvent()152 mItemInvoker.invokeItem(mItemData); in onClick()179 if (mItemData != null) { in setExpandedFormat()180 mItemData.actionFormatChanged(); in setExpandedFormat()188 (mItemData.showsTextAsAction() && (mAllowTextWithIcon || mExpandedFormat)); in updateTextButtonVisibility()256 return hasText() && mItemData.getIcon() == null; in needsDividerBefore()284 Toast cheatSheet = Toast.makeText(context, mItemData.getTitle(), Toast.LENGTH_SHORT); in onLongClick()[all …]
51 private MenuItemImpl mItemData; field in NavigationMenuItemView75 mItemData = itemData; in initialize()123 return mItemData; in getItemData()170 if (mItemData != null && mItemData.isCheckable() && mItemData.isChecked()) { in onCreateDrawableState()178 if (mItemData != null) { in setIconTintList()180 setIcon(mItemData.getIcon()); in setIconTintList()
52 private MenuItemImpl mItemData; field in ActionMenuItemView124 return mItemData; in getItemData()128 mItemData = itemData; in initialize()145 if (mItemData.hasSubMenu() && mForwardingListener != null in onTouchEvent()155 mItemInvoker.invokeItem(mItemData); in onClick()182 if (mItemData != null) { in setExpandedFormat()183 mItemData.actionFormatChanged(); in setExpandedFormat()191 (mItemData.showsTextAsAction() && (mAllowTextWithIcon || mExpandedFormat)); in updateTextButtonVisibility()238 return hasText() && mItemData.getIcon() == null; in needsDividerBefore()266 Toast cheatSheet = Toast.makeText(context, mItemData.getTitle(), Toast.LENGTH_SHORT); in onLongClick()[all …]
41 private MenuItemImpl mItemData; field in ListMenuItemView103 mItemData = itemData; in initialize()131 return mItemData; in getItemData()144 if (mItemData.isExclusiveCheckable()) { in setCheckable()159 compoundButton.setChecked(mItemData.isChecked()); in setCheckable()183 if (mItemData.isExclusiveCheckable()) { in setChecked()205 final int newVisibility = (showShortcut && mItemData.shouldShowShortcut()) in setShortcut()209 mShortcutView.setText(mItemData.getShortcutLabel()); in setShortcut()218 final boolean showIcon = mItemData.shouldShowIcon() || mForceShowIcon; in setIcon()