Home
last modified time | relevance | path

Searched refs:mIconView (Results 1 – 6 of 6) sorted by relevance

/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DListMenuItemView.java44 private ImageView mIconView; field in ListMenuItemView
212 if (mIconView == null && icon == null && !mPreserveIconSpacing) { in setIcon()
216 if (mIconView == null) { in setIcon()
221 mIconView.setImageDrawable(showIcon ? icon : null); in setIcon()
223 if (mIconView.getVisibility() != VISIBLE) { in setIcon()
224 mIconView.setVisibility(VISIBLE); in setIcon()
227 mIconView.setVisibility(GONE); in setIcon()
233 if (mIconView != null && mPreserveIconSpacing) { in onMeasure()
236 LayoutParams iconLp = (LayoutParams) mIconView.getLayoutParams(); in onMeasure()
246 mIconView = (ImageView) inflater.inflate(R.layout.abc_list_menu_item_icon, in insertIconView()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DListMenuItemView.java41 private ImageView mIconView; field in ListMenuItemView
208 if (mIconView == null && icon == null && !mPreserveIconSpacing) { in setIcon()
212 if (mIconView == null) { in setIcon()
217 mIconView.setImageDrawable(showIcon ? icon : null); in setIcon()
219 if (mIconView.getVisibility() != VISIBLE) { in setIcon()
220 mIconView.setVisibility(VISIBLE); in setIcon()
223 mIconView.setVisibility(GONE); in setIcon()
229 if (mIconView != null && mPreserveIconSpacing) { in onMeasure()
232 LayoutParams iconLp = (LayoutParams) mIconView.getLayoutParams(); in onMeasure()
242 mIconView = (ImageView) inflater.inflate(com.android.internal.R.layout.list_menu_item_icon, in insertIconView()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java365 private ImageView mIconView; field in ScrollingTabContainerView.TabView
429 if (mIconView != null) { in update()
430 mIconView.setVisibility(GONE); in update()
431 mIconView.setImageDrawable(null); in update()
443 if (mIconView == null) { in update()
450 mIconView = iconView; in update()
452 mIconView.setImageDrawable(icon); in update()
453 mIconView.setVisibility(VISIBLE); in update()
454 } else if (mIconView != null) { in update()
455 mIconView.setVisibility(GONE); in update()
[all …]
DActionBarView.java1395 private ImageView mIconView; field in ActionBarView.HomeView
1422 mIconView.setVisibility(showIcon ? VISIBLE : GONE); in setShowIcon()
1426 mIconView.setImageDrawable(icon); in setIcon()
1489 mIconView = (ImageView) findViewById(com.android.internal.R.id.home); in onFinishInflate()
1511 if (mIconView.getVisibility() != GONE) { in onMeasure()
1512 measureChildWithMargins(mIconView, widthMeasureSpec, width, heightMeasureSpec, 0); in onMeasure()
1513 final LayoutParams iconLp = (LayoutParams) mIconView.getLayoutParams(); in onMeasure()
1514 width += iconLp.leftMargin + mIconView.getMeasuredWidth() + iconLp.rightMargin; in onMeasure()
1516 iconLp.topMargin + mIconView.getMeasuredHeight() + iconLp.bottomMargin); in onMeasure()
1579 final LayoutParams iconLp = (LayoutParams) mIconView.getLayoutParams(); in onLayout()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DScrollingTabContainerView.java378 private ImageView mIconView; field in ScrollingTabContainerView.TabView
452 if (mIconView != null) { in update()
453 mIconView.setVisibility(GONE); in update()
454 mIconView.setImageDrawable(null); in update()
466 if (mIconView == null) { in update()
473 mIconView = iconView; in update()
475 mIconView.setImageDrawable(icon); in update()
476 mIconView.setVisibility(VISIBLE); in update()
477 } else if (mIconView != null) { in update()
478 mIconView.setVisibility(GONE); in update()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java99 private ImageView mIconView; field in AlertController
362 if (mIconView != null) { in setIcon()
364 mIconView.setImageResource(mIconId); in setIcon()
366 mIconView.setVisibility(View.GONE); in setIcon()
380 if (mIconView != null) { in setIcon()
382 mIconView.setImageDrawable(icon); in setIcon()
384 mIconView.setVisibility(View.GONE); in setIcon()
540 mIconView = (ImageView) mWindow.findViewById(R.id.icon); in setupTitle()
552 mIconView.setImageResource(mIconId); in setupTitle()
554 mIconView.setImageDrawable(mIcon); in setupTitle()
[all …]