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

12345678

/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/testing/
H A DTestHolder.java24 public TestHolder(View itemView) { argument
25 super(itemView);
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
H A DItemViewHolder.java30 ItemViewHolder(View itemView) { argument
31 super(itemView);
46 itemView.setClickable(isEnabled);
47 itemView.setEnabled(isEnabled);
48 itemView.setFocusable(isEnabled);
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DItemAlignmentFacetHelper.java33 * get alignment position relative to optical left/top of itemView.
35 static int getAlignmentPosition(View itemView, ItemAlignmentFacet.ItemAlignmentDef facet, argument
37 LayoutParams p = (LayoutParams) itemView.getLayoutParams();
38 View view = itemView;
40 view = itemView.findViewById(facet.mViewId);
42 view = itemView;
47 if (itemView.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) {
48 alignPos = (view == itemView ? p.getOpticalWidth(view)
58 alignPos -= (int) (((view == itemView ? p.getOpticalWidth(view)
61 if (itemView !
[all...]
H A DItemAlignment.java38 * get alignment position relative to optical left/top of itemView.
40 public int getAlignmentPosition(View itemView) { argument
41 return ItemAlignmentFacetHelper.getAlignmentPosition(itemView, this, mOrientation);
/frameworks/support/preference/src/main/java/androidx/preference/
H A DPreferenceViewHolder.java36 /* package */ PreferenceViewHolder(View itemView) { argument
37 super(itemView);
40 mCachedViews.put(android.R.id.title, itemView.findViewById(android.R.id.title));
41 mCachedViews.put(android.R.id.summary, itemView.findViewById(android.R.id.summary));
42 mCachedViews.put(android.R.id.icon, itemView.findViewById(android.R.id.icon));
43 mCachedViews.put(R.id.icon_frame, itemView.findViewById(R.id.icon_frame));
45 itemView.findViewById(AndroidResources.ANDROID_R_ICON_FRAME));
50 public static PreferenceViewHolder createInstanceForTests(View itemView) { argument
51 return new PreferenceViewHolder(itemView);
66 final View v = 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...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
H A DBaseMenuPresenter.java105 final View itemView = getItemView(item, convertView, parent);
108 itemView.setPressed(false);
109 itemView.jumpDrawablesToCurrentState();
111 if (itemView != convertView) {
112 addItemView(itemView, childIndex);
130 * @param itemView View to add
133 protected void addItemView(View itemView, int childIndex) { argument
134 final ViewGroup currentParent = (ViewGroup) itemView.getParent();
136 currentParent.removeView(itemView);
138 ((ViewGroup) mMenuView).addView(itemView, childInde
198 bindItemView(MenuItemImpl item, MenuView.ItemView itemView) argument
[all...]
/frameworks/support/paging/integration-tests/testapp/src/main/java/androidx/paging/integration/testapp/
H A DPagedListItemAdapter.java39 holder.itemView.setMinimumHeight(400);
47 ((TextView) (holder.itemView)).setText(item.text);
48 holder.itemView.setBackgroundColor(item.bgColor);
50 ((TextView) (holder.itemView)).setText(R.string.loading);
51 holder.itemView.setBackgroundColor(Color.TRANSPARENT);
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/util/
H A DConfigViewHolder.java32 public ConfigViewHolder(View itemView) { argument
33 super(itemView);
34 mCheckBox = (CheckBox) itemView;
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/util/
H A DConfigViewHolder.java32 public ConfigViewHolder(View itemView) { argument
33 super(itemView);
34 mCheckBox = (CheckBox) itemView;
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DLinearLayoutManagerTest.java220 testViewHolder.itemView.setBackgroundDrawable(stl);
234 holder.itemView.setFocusable(true);
235 holder.itemView.setFocusableInTouchMode(true);
237 holder.itemView.setFocusable(false);
238 holder.itemView.setFocusableInTouchMode(false);
242 holder.itemView.setMinimumHeight((mAttachedRv.getHeight()
257 toFocus.itemView.hasFocus(), is(true));
279 toFocus.itemView.hasFocus(), is(true));
281 isViewPartiallyInBound(mRecyclerView, toFocus.itemView));
283 isViewFullyInBound(mRecyclerView, toVisible.itemView));
[all...]
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 DGridLayoutManagerTest.java93 ViewGroup.LayoutParams lp = holder.itemView.getLayoutParams();
96 holder.itemView.setLayoutParams(lp);
100 holder.itemView.setLayoutParams(lp);
135 testViewHolder.itemView.setFocusable(true);
136 testViewHolder.itemView.setFocusableInTouchMode(true);
143 testViewHolder.itemView.setBackgroundDrawable(stl);
156 holder.itemView.setMinimumHeight(mAttachedRv.getHeight() / 3);
161 View viewToFocus = recyclerView.findViewHolderForAdapterPosition(1).itemView;
233 toFocus = recyclerView.findViewHolderForAdapterPosition(focusIndex).itemView;
287 toFocus = recyclerView.findViewHolderForAdapterPosition(focusIndex).itemView;
[all...]
H A DStaggeredGridLayoutManagerTest.java195 LayoutParams lp = (LayoutParams) vh.itemView.getLayoutParams();
201 vh.itemView.setMinimumHeight(0);
246 final ViewGroup.LayoutParams layoutParams = vh.itemView.getLayoutParams();
253 sizeMap.put(vh.itemView, size);
255 getLp(vh.itemView).setFullSpan(true);
359 ((EditText) ((FrameLayout) holder.itemView).getChildAt(0)).setText(
367 holder.itemView.setBackgroundDrawable(stl);
410 testViewHolder.itemView.setFocusable(true);
411 testViewHolder.itemView.setFocusableInTouchMode(true);
418 testViewHolder.itemView
[all...]
H A DLinearLayoutManagerBaseConfigSetTest.java214 holder.itemView.setMinimumWidth(totalSpace + 5);
216 holder.itemView.setMinimumHeight(totalSpace + 5);
239 int gap = helper.getDecoratedStart(vh.itemView);
241 gap = helper.getDecoratedStart(vh.itemView);
244 final int size = helper.getDecoratedMeasurement(vh.itemView);
250 vh.itemView.setTranslationX(size * 2);
252 vh.itemView.setTranslationY(size * 2);
257 assertThat(collector.getDetached(), not(hasItem(sameInstance(vh.itemView))));
258 assertThat(vh.itemView.getParent(), is((ViewParent) mRecyclerView));
261 assertThat(collector.getDetached(), hasItem(sameInstance(vh.itemView)));
[all...]
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DSubheaderListItem.java49 public static ViewHolder createViewHolder(View itemView) { argument
50 return new ViewHolder(itemView);
145 vh.itemView.getLayoutParams().height = height;
146 vh.itemView.requestLayout();
185 public ViewHolder(View itemView) { argument
186 super(itemView);
187 mText = itemView.findViewById(R.id.text);
199 CarUxRestrictionsUtils.comply(itemView.getContext(), restrictions, getText());
/frameworks/base/core/java/com/android/internal/widget/
H A DDefaultItemAnimator.java134 View view = moves.get(0).holder.itemView;
158 holder.itemView.postOnAnimationDelayed(changer, getRemoveDuration());
184 View view = additions.get(0).itemView;
200 final View view = holder.itemView;
224 holder.itemView.setAlpha(0);
230 final View view = holder.itemView;
258 final View view = holder.itemView;
259 fromX += holder.itemView.getTranslationX();
260 fromY += holder.itemView.getTranslationY();
279 final View view = holder.itemView;
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DDefaultItemAnimator.java133 View view = moves.get(0).holder.itemView;
157 ViewCompat.postOnAnimationDelayed(holder.itemView, changer, getRemoveDuration());
183 View view = additions.get(0).itemView;
199 final View view = holder.itemView;
223 holder.itemView.setAlpha(0);
229 final View view = holder.itemView;
257 final View view = holder.itemView;
258 fromX += (int) holder.itemView.getTranslationX();
259 fromY += (int) holder.itemView.getTranslationY();
278 final View view = holder.itemView;
[all...]
/frameworks/support/frameworks/support/samples/SupportWearDemos/src/main/java/com/example/android/support/wear/app/
H A DSimpleWearableRecyclerViewDemo.java50 ViewHolder(TextView itemView) { argument
51 super(itemView);
52 mView = itemView;
/frameworks/support/samples/SupportWearDemos/src/main/java/com/example/android/support/wear/app/
H A DSimpleWearableRecyclerViewDemo.java50 ViewHolder(TextView itemView) { argument
51 super(itemView);
52 mView = itemView;
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/
H A DWearableRecyclerViewTestActivity.java39 ViewHolder(TextView itemView) { argument
40 super(itemView);
41 mView = itemView;
/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/main/java/com/example/android/supportv7/widget/
H A DStableIdActivity.java87 public ViewHolder(View itemView) { argument
88 super(itemView);
89 mHolderNumberView = (TextView) itemView.findViewById(R.id.holder_number_text);
90 mDataView = (TextView) itemView.findViewById(R.id.data_text);
115 viewHolder.itemView.setOnClickListener(new View.OnClickListener() {
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DStableIdActivity.java87 public ViewHolder(View itemView) { argument
88 super(itemView);
89 mHolderNumberView = (TextView) itemView.findViewById(R.id.holder_number_text);
90 mDataView = (TextView) itemView.findViewById(R.id.data_text);
115 viewHolder.itemView.setOnClickListener(new View.OnClickListener() {
/frameworks/support/work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/imageprocessing/
H A DImageRecyclerViewAdapter.java62 ViewHolder(View itemView) { argument
63 super(itemView);
64 mImageView = itemView.findViewById(R.id.image);
65 mTextView = itemView.findViewById(R.id.label);
66 mProgressBar = itemView.findViewById(R.id.progressBar);
118 View itemView = LayoutInflater.from(parent.getContext())
120 return new ViewHolder(itemView);

Completed in 790 milliseconds

12345678