Home
last modified time | relevance | path

Searched refs:itemView (Results 1 – 25 of 113) sorted by relevance

12345

/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DBaseMenuPresenter.java100 final View itemView = getItemView(item, convertView, parent); in updateMenuView() local
103 itemView.setPressed(false); in updateMenuView()
104 ViewCompat.jumpDrawablesToCurrentState(itemView); in updateMenuView()
106 if (itemView != convertView) { in updateMenuView()
107 addItemView(itemView, childIndex); in updateMenuView()
128 protected void addItemView(View itemView, int childIndex) { in addItemView() argument
129 final ViewGroup currentParent = (ViewGroup) itemView.getParent(); in addItemView()
131 currentParent.removeView(itemView); in addItemView()
133 ((ViewGroup) mMenuView).addView(itemView, childIndex); in addItemView()
176 MenuView.ItemView itemView; in getItemView() local
[all …]
DMenuPopup.java139 View itemView = null; in measureIndividualMenuWidth() local
149 itemView = null; in measureIndividualMenuWidth()
156 itemView = adapter.getView(i, itemView, parent); in measureIndividualMenuWidth()
157 itemView.measure(widthMeasureSpec, heightMeasureSpec); in measureIndividualMenuWidth()
159 final int itemWidth = itemView.getMeasuredWidth(); in measureIndividualMenuWidth()
/frameworks/base/core/java/com/android/internal/view/menu/
DBaseMenuPresenter.java98 final View itemView = getItemView(item, convertView, parent); in updateMenuView() local
101 itemView.setPressed(false); in updateMenuView()
102 itemView.jumpDrawablesToCurrentState(); in updateMenuView()
104 if (itemView != convertView) { in updateMenuView()
105 addItemView(itemView, childIndex); in updateMenuView()
126 protected void addItemView(View itemView, int childIndex) { in addItemView() argument
127 final ViewGroup currentParent = (ViewGroup) itemView.getParent(); in addItemView()
129 currentParent.removeView(itemView); in addItemView()
131 ((ViewGroup) mMenuView).addView(itemView, childIndex); in addItemView()
174 MenuView.ItemView itemView; in getItemView() local
[all …]
DMenuPopup.java141 View itemView = null; in measureIndividualMenuWidth() local
151 itemView = null; in measureIndividualMenuWidth()
158 itemView = adapter.getView(i, itemView, parent); in measureIndividualMenuWidth()
159 itemView.measure(widthMeasureSpec, heightMeasureSpec); in measureIndividualMenuWidth()
161 final int itemWidth = itemView.getMeasuredWidth(); in measureIndividualMenuWidth()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DItemAlignmentFacetHelper.java36 static int getAlignmentPosition(View itemView, ItemAlignmentFacet.ItemAlignmentDef facet, in getAlignmentPosition() argument
38 LayoutParams p = (LayoutParams) itemView.getLayoutParams(); in getAlignmentPosition()
39 View view = itemView; in getAlignmentPosition()
41 view = itemView.findViewById(facet.mViewId); in getAlignmentPosition()
43 view = itemView; in getAlignmentPosition()
58 alignPos += ((view == itemView ? p.getOpticalWidth(view) : view.getWidth()) in getAlignmentPosition()
61 if (itemView != view) { in getAlignmentPosition()
63 ((ViewGroup) itemView).offsetDescendantRectToMyCoords(view, sRect); in getAlignmentPosition()
77 alignPos += ((view == itemView ? p.getOpticalHeight(view) : view.getHeight()) in getAlignmentPosition()
80 if (itemView != view) { in getAlignmentPosition()
[all …]
DGuidedActionsStylist.java349 if (itemView instanceof GuidedActionItemContainer) { in setActivated()
350 ((GuidedActionItemContainer) itemView).setFocusOutAllowed(!activated); in setActivated()
645 vh.itemView.getContext(), vh.mTitleView)); in onBindViewHolder()
661 vh.itemView.setFocusable(true); in onBindViewHolder()
662 ((ViewGroup) vh.itemView).setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS); in onBindViewHolder()
664 vh.itemView.setFocusable(false); in onBindViewHolder()
665 ((ViewGroup) vh.itemView).setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); in onBindViewHolder()
780 createAnimator(vh.itemView, attr).start(); in onAnimateItemPressed()
788 createAnimator(vh.itemView, R.attr.guidedActionUnpressedAnimation).end(); in onAnimateItemPressedCancelled()
896 vh.itemView.setFocusable(false); in onEditActivatorView()
[all …]
DVerticalGridPresenter.java36 if (viewHolder.itemView instanceof ViewGroup) { in onCreate()
37 TransitionHelper.setTransitionGroup((ViewGroup) viewHolder.itemView, in onCreate()
41 mShadowOverlayHelper.onViewCreated(viewHolder.itemView); in onCreate()
49 final View itemView = itemViewHolder.mHolder.view; in onBind() local
50 itemView.setOnClickListener(new View.OnClickListener() { in onBind()
72 viewHolder.itemView.setActivated(true); in onAttachedToWindow()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DDocumentHolder.java59 itemView.setOnKeyListener(this); in DocumentHolder()
66 mSelectionHotspot = itemView.findViewById(R.id.icon_check); in DocumentHolder()
92 itemView.setActivated(selected); in setSelected()
93 itemView.setBackgroundColor(selected ? mSelectedBgColor : mDefaultBgColor); in setSelected()
101 itemView.setBackgroundColor(highlighted ? mSelectedBgColor : mDefaultBgColor); in setHighlighted()
105 setEnabledRecursive(itemView, enabled); in setEnabled()
157 static void setEnabledRecursive(View itemView, boolean enabled) { in setEnabledRecursive() argument
158 if (itemView == null) return; in setEnabledRecursive()
159 if (itemView.isEnabled() == enabled) return; in setEnabledRecursive()
160 itemView.setEnabled(enabled); in setEnabledRecursive()
[all …]
DGridDocumentHolder.java60 mTitle = (TextView) itemView.findViewById(android.R.id.title); in GridDocumentHolder()
61 mDate = (TextView) itemView.findViewById(R.id.date); in GridDocumentHolder()
62 mSize = (TextView) itemView.findViewById(R.id.size); in GridDocumentHolder()
63 mIconMimeLg = (ImageView) itemView.findViewById(R.id.icon_mime_lg); in GridDocumentHolder()
64 mIconMimeSm = (ImageView) itemView.findViewById(R.id.icon_mime_sm); in GridDocumentHolder()
65 mIconThumb = (ImageView) itemView.findViewById(R.id.icon_thumb); in GridDocumentHolder()
66 mIconCheck = (ImageView) itemView.findViewById(R.id.icon_check); in GridDocumentHolder()
84 if (!itemView.isEnabled()) { in setSelected()
102 itemView.setBackgroundColor(enabled ? mDefaultBgColor : mDisabledBgColor); in setEnabled()
DListDocumentHolder.java54 mTitle = (TextView) itemView.findViewById(android.R.id.title); in ListDocumentHolder()
55 mDate = (TextView) itemView.findViewById(R.id.date); in ListDocumentHolder()
56 mSize = (TextView) itemView.findViewById(R.id.size); in ListDocumentHolder()
57 mSummary = (TextView) itemView.findViewById(android.R.id.summary); in ListDocumentHolder()
58 mIconMime = (ImageView) itemView.findViewById(R.id.icon_mime); in ListDocumentHolder()
59 mIconThumb = (ImageView) itemView.findViewById(R.id.icon_thumb); in ListDocumentHolder()
60 mIconCheck = (ImageView) itemView.findViewById(R.id.icon_check); in ListDocumentHolder()
62 mDetails = (LinearLayout) itemView.findViewById(R.id.line2); in ListDocumentHolder()
79 if (!itemView.isEnabled()) { in setSelected()
DDirectoryItemAnimator.java88 info.isActivated = viewHolder.itemView.isActivated(); in recordPreLayoutInformation()
98 info.isActivated = viewHolder.itemView.isActivated(); in recordPostLayoutInformation()
119 oldHolder.itemView.setBackgroundColor(startColor); in animateChange()
172 viewHolder.itemView.setBackgroundColor((Integer)animator.getAnimatedValue()); in onAnimationUpdate()
177 viewHolder.itemView.setBackgroundColor(mEndColor); in onAnimationEnd()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DChildHelperTest.java61 mChildHelper.addView(vh.itemView, false); in addChild()
63 assertFalse(mChildHelper.isHidden(vh.itemView)); in addChild()
70 mChildHelper.addView(vh.itemView, true); in addChildHidden()
72 assertTrue(mChildHelper.isHidden(vh.itemView)); in addChildHidden()
73 assertTrue(mLoggingCallback.mOnEnteredHiddenState.contains(vh.itemView)); in addChildHidden()
79 mChildHelper.addView(vh.itemView, false); in addChildAndHide()
80 mChildHelper.hide(vh.itemView); in addChildAndHide()
81 assertTrue(mChildHelper.isHidden(vh.itemView)); in addChildAndHide()
82 mChildHelper.unhide(vh.itemView); in addChildAndHide()
83 assertFalse(mChildHelper.isHidden(vh.itemView)); in addChildAndHide()
[all …]
DLinearLayoutManagerBaseConfigSetTest.java219 holder.itemView.setMinimumWidth(totalSpace + 5); in getFirstLastChildrenTest()
221 holder.itemView.setMinimumHeight(totalSpace + 5); in getFirstLastChildrenTest()
244 int gap = helper.getDecoratedStart(vh.itemView); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
246 gap = helper.getDecoratedStart(vh.itemView); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
249 final int size = helper.getDecoratedMeasurement(vh.itemView); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
255 ViewCompat.setTranslationX(vh.itemView, size * 2); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
257 ViewCompat.setTranslationY(vh.itemView, size * 2); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
262 assertThat(collector.getDetached(), not(hasItem(sameInstance(vh.itemView)))); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
263 assertThat(vh.itemView.getParent(), is((ViewParent) mRecyclerView)); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
266 assertThat(collector.getDetached(), hasItem(sameInstance(vh.itemView))); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
[all …]
DLinearLayoutManagerTest.java128 ViewGroup.LayoutParams lp = holder.itemView.getLayoutParams(); in removeAnchorItemTest()
131 holder.itemView.setLayoutParams(lp); in removeAnchorItemTest()
213 final int top = mLayoutManager.mOrientationHelper.getDecoratedStart(vh.itemView); in keepFocusOnRelayout()
214 requestFocus(vh.itemView, true); in keepFocusOnRelayout()
215 assertTrue("view should have the focus", vh.itemView.hasFocus()); in keepFocusOnRelayout()
227 mLayoutManager.mOrientationHelper.getDecoratedStart(postVH.itemView)); in keepFocusOnRelayout()
273 int startMargin = helper.getDecoratedStart(vh.itemView) - in keepFocusOnResizeTest()
276 helper.getDecoratedEnd(vh.itemView); in keepFocusOnResizeTest()
278 requestFocus(vh.itemView, true); in keepFocusOnResizeTest()
279 assertTrue("view should gain the focus", vh.itemView.hasFocus()); in keepFocusOnResizeTest()
[all …]
DStaggeredGridLayoutManagerBaseConfigSetTest.java103 holder.itemView.getLayoutParams().height in rtlTest()
106 holder.itemView.getLayoutParams().width in rtlTest()
161 lp = (StaggeredGridLayoutManager.LayoutParams) vh.itemView in scrollBackAndPreservePositionsTest()
360 holder.itemView.setMinimumWidth(totalSpace + 100); in getFirstLastChildrenTest()
362 holder.itemView.setMinimumHeight(totalSpace + 100); in getFirstLastChildrenTest()
407 lp = (StaggeredGridLayoutManager.LayoutParams) vh.itemView in viewSnapTest()
752 int gap = helper.getDecoratedStart(vh.itemView); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
754 gap = helper.getDecoratedStart(vh.itemView); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
757 final int size = helper.getDecoratedMeasurement(vh.itemView); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
763 ViewCompat.setTranslationX(vh.itemView, size * 2); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
[all …]
DGridLayoutManagerTest.java85 ViewGroup.LayoutParams lp = holder.itemView.getLayoutParams(); in scrollToBadOffset()
88 holder.itemView.setLayoutParams(lp); in scrollToBadOffset()
92 holder.itemView.setLayoutParams(lp); in scrollToBadOffset()
127 testViewHolder.itemView.setFocusable(true); in focusSearchFailure()
128 testViewHolder.itemView.setFocusableInTouchMode(true); in focusSearchFailure()
134 testViewHolder.itemView.setBackground(stl); in focusSearchFailure()
147 holder.itemView.setMinimumHeight(mAttachedRv.getHeight() / 3); in focusSearchFailure()
152 View viewToFocus = recyclerView.findViewHolderForAdapterPosition(1).itemView; in focusSearchFailure()
348 GridLayoutManager.LayoutParams glp = ensureGridLp(holder.itemView); in layoutParamsTest()
372 holder.itemView.setLayoutParams(glp); in layoutParamsTest()
[all …]
/frameworks/support/v7/preference/src/android/support/v7/preference/
DPreferenceViewHolder.java34 /* package */ PreferenceViewHolder(View itemView) { in PreferenceViewHolder() argument
35 super(itemView); in PreferenceViewHolder()
38 mCachedViews.put(android.R.id.title, itemView.findViewById(android.R.id.title)); in PreferenceViewHolder()
39 mCachedViews.put(android.R.id.summary, itemView.findViewById(android.R.id.summary)); in PreferenceViewHolder()
40 mCachedViews.put(android.R.id.icon, itemView.findViewById(android.R.id.icon)); in PreferenceViewHolder()
41 mCachedViews.put(R.id.icon_frame, itemView.findViewById(R.id.icon_frame)); in PreferenceViewHolder()
43 itemView.findViewById(AndroidResources.ANDROID_R_ICON_FRAME)); in PreferenceViewHolder()
58 final View v = itemView.findViewById(id); in findViewById()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
DItemTouchHelper.java322 if (mPendingCleanup.remove(animation.mViewHolder.itemView)) {
509 outPosition[0] = mSelectedStartX + mDx - mSelected.itemView.getLeft(); in getSelectedDxDy()
511 outPosition[0] = ViewCompat.getTranslationX(mSelected.itemView); in getSelectedDxDy()
514 outPosition[1] = mSelectedStartY + mDy - mSelected.itemView.getTop(); in getSelectedDxDy()
516 outPosition[1] = ViewCompat.getTranslationY(mSelected.itemView); in getSelectedDxDy()
566 mOverdrawChild = selected.itemView; in select()
575 if (prevSelected.itemView.getParent() != null) { in select()
624 mPendingCleanup.add(prevSelected.itemView); in select()
633 if (mOverdrawChild == prevSelected.itemView) { in select()
634 removeChildDrawingOrderCallbackIfNecessary(prevSelected.itemView); in select()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DDefaultItemAnimator.java129 View view = moves.get(0).holder.itemView; in runPendingAnimations()
153 ViewCompat.postOnAnimationDelayed(holder.itemView, changer, getRemoveDuration()); in runPendingAnimations()
178 View view = additions.get(0).itemView; in runPendingAnimations()
194 final View view = holder.itemView; in animateRemoveImpl()
218 ViewCompat.setAlpha(holder.itemView, 0); in animateAdd()
224 final View view = holder.itemView; in animateAddImpl()
251 final View view = holder.itemView; in animateMove()
252 fromX += ViewCompat.getTranslationX(holder.itemView); in animateMove()
253 fromY += ViewCompat.getTranslationY(holder.itemView); in animateMove()
272 final View view = holder.itemView; in animateMoveImpl()
[all …]
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/items/
DItemViewHolder.java30 public ItemViewHolder(View itemView) { in ItemViewHolder() argument
31 super(itemView); in ItemViewHolder()
46 itemView.setClickable(isEnabled); in setEnabled()
47 itemView.setEnabled(isEnabled); in setEnabled()
48 itemView.setFocusable(isEnabled); in setEnabled()
/frameworks/support/design/src/android/support/design/internal/
DNavigationMenuPresenter.java268 public ViewHolder(View itemView) { in ViewHolder() argument
269 super(itemView); in ViewHolder()
279 itemView.setOnClickListener(listener); in NormalViewHolder()
302 public HeaderViewHolder(View itemView) { in HeaderViewHolder() argument
303 super(itemView); in HeaderViewHolder()
315 NavigationMenuItemView itemView = (NavigationMenuItemView) v;
317 MenuItemImpl item = itemView.getItemData();
394 NavigationMenuItemView itemView = (NavigationMenuItemView) holder.itemView; in onBindViewHolder() local
395 itemView.setIconTintList(mIconTintList); in onBindViewHolder()
397 itemView.setTextAppearance(itemView.getContext(), mTextAppearance); in onBindViewHolder()
[all …]
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
DGridActivity.java335 View itemView;
362 itemView = view;
379 itemView = textView;
383 itemView.getLayoutParams();
392 itemView.setLayoutParams(lp);
395 ViewGroup viewGroup = (ViewGroup) itemView;
401 return new ViewHolder(itemView);
415 ((TextView) holder.itemView).setText("Item "+mItemLengths[position]
421 ((TextView) holder.itemView).setFocusable(focusable);
422 ((TextView) holder.itemView).setFocusableInTouchMode(focusable);
[all …]
/frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/
DDividerItemDecorationTest.java151 final View itemView = new View(getContext()); in drawDecoration()
152 itemView.setMinimumWidth(20); in drawDecoration()
153 itemView.setMinimumHeight(5); in drawDecoration()
154 return ViewHolder.createInstance(itemView, allowDividerAbove, allowDividerBelow); in drawDecoration()
189 public static ViewHolder createInstance(View itemView, boolean allowDividerAbove, in createInstance() argument
191 return new ViewHolder(itemView, allowDividerAbove, allowDividerBelow); in createInstance()
194 private ViewHolder(View itemView, boolean allowDividerAbove, boolean allowDividerBelow) { in ViewHolder() argument
195 super(itemView); in ViewHolder()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoLand.java165 Context context = holder.itemView.getContext(); in onBindViewHolder()
168 holder.itemView.setOnClickListener(new View.OnClickListener() { in onBindViewHolder()
174 holder.itemView.setOnLongClickListener(new OnLongClickListener() { in onBindViewHolder()
271 public CatHolder(View itemView) { in CatHolder() argument
272 super(itemView); in CatHolder()
273 imageView = (ImageView) itemView.findViewById(android.R.id.icon); in CatHolder()
274 textView = (TextView) itemView.findViewById(android.R.id.title); in CatHolder()
275 contextGroup = itemView.findViewById(R.id.contextGroup); in CatHolder()
276 delete = itemView.findViewById(android.R.id.closeButton); in CatHolder()
277 share = itemView.findViewById(android.R.id.shareText); in CatHolder()
DNekoDialog.java81 ((ImageView) holder.itemView.findViewById(R.id.icon)) in onBindViewHolder()
83 ((TextView) holder.itemView.findViewById(R.id.text)) in onBindViewHolder()
85 holder.itemView.setOnClickListener(new View.OnClickListener() { in onBindViewHolder()
101 public Holder(View itemView) { in Holder() argument
102 super(itemView); in Holder()

12345