Searched refs:itemView (Results 1 - 25 of 134) sorted by relevance

123456

/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/items/
H A DItemViewHolder.java30 public ItemViewHolder(View itemView) { argument
31 super(itemView);
46 itemView.setClickable(isEnabled);
47 itemView.setEnabled(isEnabled);
48 itemView.setFocusable(isEnabled);
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DPreferenceViewHolder.java34 /* package */ PreferenceViewHolder(View itemView) { argument
35 super(itemView);
38 mCachedViews.put(android.R.id.title, itemView.findViewById(android.R.id.title));
39 mCachedViews.put(android.R.id.summary, itemView.findViewById(android.R.id.summary));
40 mCachedViews.put(android.R.id.icon, itemView.findViewById(android.R.id.icon));
41 mCachedViews.put(R.id.icon_frame, itemView.findViewById(R.id.icon_frame));
43 itemView.findViewById(AndroidResources.ANDROID_R_ICON_FRAME));
58 final View v = itemView.findViewById(id);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DItemAlignmentFacetHelper.java34 * get alignment position relative to optical left/top of itemView.
36 static int getAlignmentPosition(View itemView, ItemAlignmentFacet.ItemAlignmentDef facet, argument
38 LayoutParams p = (LayoutParams) itemView.getLayoutParams();
39 View view = itemView;
41 view = itemView.findViewById(facet.mViewId);
43 view = itemView;
58 alignPos += ((view == itemView ? p.getOpticalWidth(view) : view.getWidth())
61 if (itemView != view) {
63 ((ViewGroup) itemView).offsetDescendantRectToMyCoords(view, sRect);
77 alignPos += ((view == itemView
[all...]
H A DItemAlignment.java42 * get alignment position relative to optical left/top of itemView.
44 public int getAlignmentPosition(View itemView) { argument
45 return ItemAlignmentFacetHelper.getAlignmentPosition(itemView, this, mOrientation);
H A DGuidedActionsStylist.java351 if (itemView instanceof GuidedActionItemContainer) {
352 ((GuidedActionItemContainer) itemView).setFocusOutAllowed(!activated);
651 vh.itemView.getContext(), vh.mTitleView));
667 vh.itemView.setFocusable(true);
668 ((ViewGroup) vh.itemView).setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS);
670 vh.itemView.setFocusable(false);
671 ((ViewGroup) vh.itemView).setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
786 createAnimator(vh.itemView, attr).start();
794 createAnimator(vh.itemView, R.attr.guidedActionUnpressedAnimation).end();
903 vh.itemView
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DBaseMenuPresenter.java98 final View itemView = getItemView(item, convertView, parent);
101 itemView.setPressed(false);
102 itemView.jumpDrawablesToCurrentState();
104 if (itemView != convertView) {
105 addItemView(itemView, childIndex);
123 * @param itemView View to add
126 protected void addItemView(View itemView, int childIndex) { argument
127 final ViewGroup currentParent = (ViewGroup) itemView.getParent();
129 currentParent.removeView(itemView);
131 ((ViewGroup) mMenuView).addView(itemView, childInde
190 bindItemView(MenuItemImpl item, MenuView.ItemView itemView) argument
[all...]
H A DMenuPopup.java141 View itemView = null;
151 itemView = null;
158 itemView = adapter.getView(i, itemView, parent);
159 itemView.measure(widthMeasureSpec, heightMeasureSpec);
161 final int itemWidth = itemView.getMeasuredWidth();
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DBaseMenuPresenter.java104 final View itemView = getItemView(item, convertView, parent);
107 itemView.setPressed(false);
108 ViewCompat.jumpDrawablesToCurrentState(itemView);
110 if (itemView != convertView) {
111 addItemView(itemView, childIndex);
129 * @param itemView View to add
132 protected void addItemView(View itemView, int childIndex) { argument
133 final ViewGroup currentParent = (ViewGroup) itemView.getParent();
135 currentParent.removeView(itemView);
137 ((ViewGroup) mMenuView).addView(itemView, childInde
196 bindItemView(MenuItemImpl item, MenuView.ItemView itemView) argument
[all...]
H A DMenuPopup.java143 View itemView = null;
153 itemView = null;
160 itemView = adapter.getView(i, itemView, parent);
161 itemView.measure(widthMeasureSpec, heightMeasureSpec);
163 final int itemWidth = itemView.getMeasuredWidth();
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
H A DDocumentHolder.java59 itemView.setOnKeyListener(this);
66 mSelectionHotspot = itemView.findViewById(R.id.icon_check);
92 itemView.setActivated(selected);
93 itemView.setBackgroundColor(selected ? mSelectedBgColor : mDefaultBgColor);
101 itemView.setBackgroundColor(highlighted ? mSelectedBgColor : mDefaultBgColor);
105 setEnabledRecursive(itemView, enabled);
157 static void setEnabledRecursive(View itemView, boolean enabled) { argument
158 if (itemView == null) return;
159 if (itemView.isEnabled() == enabled) return;
160 itemView
[all...]
H A DGridDirectoryHolder.java39 mTitle = (TextView) itemView.findViewById(android.R.id.title);
40 mIconMime = (ImageView) itemView.findViewById(R.id.icon_mime_sm);
41 mIconCheck = (ImageView) itemView.findViewById(R.id.icon_check);
H A DGridDocumentHolder.java60 mTitle = (TextView) itemView.findViewById(android.R.id.title);
61 mDate = (TextView) itemView.findViewById(R.id.date);
62 mSize = (TextView) itemView.findViewById(R.id.size);
63 mIconMimeLg = (ImageView) itemView.findViewById(R.id.icon_mime_lg);
64 mIconMimeSm = (ImageView) itemView.findViewById(R.id.icon_mime_sm);
65 mIconThumb = (ImageView) itemView.findViewById(R.id.icon_thumb);
66 mIconCheck = (ImageView) itemView.findViewById(R.id.icon_check);
84 if (!itemView.isEnabled()) {
102 itemView.setBackgroundColor(enabled ? mDefaultBgColor : mDisabledBgColor);
H A DListDocumentHolder.java54 mTitle = (TextView) itemView.findViewById(android.R.id.title);
55 mDate = (TextView) itemView.findViewById(R.id.date);
56 mSize = (TextView) itemView.findViewById(R.id.size);
57 mSummary = (TextView) itemView.findViewById(android.R.id.summary);
58 mIconMime = (ImageView) itemView.findViewById(R.id.icon_mime);
59 mIconThumb = (ImageView) itemView.findViewById(R.id.icon_thumb);
60 mIconCheck = (ImageView) itemView.findViewById(R.id.icon_check);
62 mDetails = (LinearLayout) itemView.findViewById(R.id.line2);
79 if (!itemView.isEnabled()) {
H A DDirectoryItemAnimator.java88 info.isActivated = viewHolder.itemView.isActivated();
98 info.isActivated = viewHolder.itemView.isActivated();
119 oldHolder.itemView.setBackgroundColor(startColor);
172 viewHolder.itemView.setBackgroundColor((Integer)animator.getAnimatedValue());
177 viewHolder.itemView.setBackgroundColor(mEndColor);
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/util/
H A DConfigViewHolder.java31 public ConfigViewHolder(View itemView) { argument
32 super(itemView);
33 mCheckBox = (CheckBox) itemView;
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/util/
H A DConfigViewHolder.java31 public ConfigViewHolder(View itemView) { argument
32 super(itemView);
33 mCheckBox = (CheckBox) itemView;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DChildHelperTest.java66 mChildHelper.addView(vh.itemView, false);
68 assertFalse(mChildHelper.isHidden(vh.itemView));
75 mChildHelper.addView(vh.itemView, true);
77 assertTrue(mChildHelper.isHidden(vh.itemView));
78 assertTrue(mLoggingCallback.mOnEnteredHiddenState.contains(vh.itemView));
84 mChildHelper.addView(vh.itemView, false);
85 mChildHelper.hide(vh.itemView);
86 assertTrue(mChildHelper.isHidden(vh.itemView));
87 mChildHelper.unhide(vh.itemView);
88 assertFalse(mChildHelper.isHidden(vh.itemView));
[all...]
H A DLinearLayoutManagerBaseConfigSetTest.java213 holder.itemView.setMinimumWidth(totalSpace + 5);
215 holder.itemView.setMinimumHeight(totalSpace + 5);
238 int gap = helper.getDecoratedStart(vh.itemView);
240 gap = helper.getDecoratedStart(vh.itemView);
243 final int size = helper.getDecoratedMeasurement(vh.itemView);
249 ViewCompat.setTranslationX(vh.itemView, size * 2);
251 ViewCompat.setTranslationY(vh.itemView, size * 2);
256 assertThat(collector.getDetached(), not(hasItem(sameInstance(vh.itemView))));
257 assertThat(vh.itemView.getParent(), is((ViewParent) mRecyclerView));
260 assertThat(collector.getDetached(), hasItem(sameInstance(vh.itemView)));
[all...]
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
H A DNekoDialog.java83 ((ImageView) holder.itemView.findViewById(R.id.icon))
85 ((TextView) holder.itemView.findViewById(R.id.text))
87 holder.itemView.setOnClickListener(new View.OnClickListener() {
103 public Holder(View itemView) { argument
104 super(itemView);
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DNestedRecyclerViewActivity.java52 public ViewHolder(TextView itemView) { argument
53 super(itemView);
54 mTextView = itemView;
89 public ViewHolder(RecyclerView itemView) { argument
90 super(itemView);
91 mRecyclerView = itemView;
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DNestedRecyclerViewActivity.java52 public ViewHolder(TextView itemView) { argument
53 super(itemView);
54 mTextView = itemView;
89 public ViewHolder(RecyclerView itemView) { argument
90 super(itemView);
91 mRecyclerView = itemView;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
H A DItemTouchHelper.java322 if (mPendingCleanup.remove(animation.mViewHolder.itemView)) {
508 outPosition[0] = mSelectedStartX + mDx - mSelected.itemView.getLeft();
510 outPosition[0] = ViewCompat.getTranslationX(mSelected.itemView);
513 outPosition[1] = mSelectedStartY + mDy - mSelected.itemView.getTop();
515 outPosition[1] = ViewCompat.getTranslationY(mSelected.itemView);
565 mOverdrawChild = selected.itemView;
574 if (prevSelected.itemView.getParent() != null) {
623 mPendingCleanup.add(prevSelected.itemView);
632 if (mOverdrawChild == prevSelected.itemView) {
633 removeChildDrawingOrderCallbackIfNecessary(prevSelected.itemView);
[all...]
/frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/
H A DDividerItemDecorationTest.java150 final View itemView = new View(getContext());
151 itemView.setMinimumWidth(20);
152 itemView.setMinimumHeight(5);
153 return ViewHolder.createInstance(itemView, allowDividerAbove, allowDividerBelow);
188 public static ViewHolder createInstance(View itemView, boolean allowDividerAbove, argument
190 return new ViewHolder(itemView, allowDividerAbove, allowDividerBelow);
193 private ViewHolder(View itemView, boolean allowDividerAbove, boolean allowDividerBelow) { argument
194 super(itemView);
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
H A DGridActivity.java332 View itemView;
359 itemView = view;
376 itemView = textView;
380 itemView.getLayoutParams();
389 itemView.setLayoutParams(lp);
392 ViewGroup viewGroup = (ViewGroup) itemView;
398 return new ViewHolder(itemView);
412 ((TextView) holder.itemView).setText("Item "+mItemLengths[position]
418 ((TextView) holder.itemView).setFocusable(focusable);
419 ((TextView) holder.itemView)
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DDefaultItemAnimator.java129 View view = moves.get(0).holder.itemView;
153 ViewCompat.postOnAnimationDelayed(holder.itemView, changer, getRemoveDuration());
179 View view = additions.get(0).itemView;
195 final View view = holder.itemView;
219 ViewCompat.setAlpha(holder.itemView, 0);
225 final View view = holder.itemView;
252 final View view = holder.itemView;
253 fromX += ViewCompat.getTranslationX(holder.itemView);
254 fromY += ViewCompat.getTranslationY(holder.itemView);
273 final View view = holder.itemView;
[all...]

Completed in 396 milliseconds

123456