Searched refs:viewHolder (Results 1 - 25 of 110) sorted by relevance

12345

/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DItemBridgeAdapter.java40 public void onCreate(ViewHolder viewHolder) { argument
43 public void onBind(ViewHolder viewHolder) { argument
46 public void onBind(ViewHolder viewHolder, List payloads) { argument
47 onBind(viewHolder);
50 public void onUnbind(ViewHolder viewHolder) { argument
53 public void onAttachedToWindow(ViewHolder viewHolder) { argument
56 public void onDetachedFromWindow(ViewHolder viewHolder) { argument
309 protected void onCreate(ViewHolder viewHolder) { argument
315 protected void onBind(ViewHolder viewHolder) { argument
321 protected void onUnbind(ViewHolder viewHolder) { argument
327 onAttachedToWindow(ViewHolder viewHolder) argument
333 onDetachedFromWindow(ViewHolder viewHolder) argument
[all...]
H A DViewHolderTask.java22 public void run(RecyclerView.ViewHolder viewHolder); argument
H A DDetailsOverviewLogoPresenter.java105 * @param viewHolder
109 public void setContext(ViewHolder viewHolder, argument
112 viewHolder.mParentViewHolder = parentViewHolder;
113 viewHolder.mParentPresenter = parentPresenter;
124 public boolean isBoundToImage(ViewHolder viewHolder, DetailsOverviewRow row) { argument
132 * @param viewHolder ViewHolder to bind.
136 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
138 ImageView imageView = ((ImageView) viewHolder.view);
140 if (isBoundToImage((ViewHolder) viewHolder, row)) {
141 ViewHolder vh = (ViewHolder) viewHolder;
170 onUnbindViewHolder(Presenter.ViewHolder viewHolder) argument
[all...]
H A DRowHeaderPresenter.java132 ViewHolder viewHolder = new ViewHolder(root);
134 setSelectLevel(viewHolder, 0);
136 return viewHolder;
140 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
142 RowHeaderPresenter.ViewHolder vh = (RowHeaderPresenter.ViewHolder)viewHolder;
151 viewHolder.view.setContentDescription(null);
153 viewHolder.view.setVisibility(View.GONE);
167 viewHolder.view.setContentDescription(headerItem.getContentDescription());
168 viewHolder.view.setVisibility(View.VISIBLE);
173 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { argument
[all...]
H A DFullWidthDetailsOverviewRowPresenter.java115 ActionsItemBridgeAdapter(FullWidthDetailsOverviewRowPresenter.ViewHolder viewHolder) { argument
116 mViewHolder = viewHolder;
147 public void onAttachedToWindow(ItemBridgeAdapter.ViewHolder viewHolder) { argument
149 viewHolder.itemView.removeOnLayoutChangeListener(mViewHolder.mLayoutChangeListener);
150 viewHolder.itemView.addOnLayoutChangeListener(mViewHolder.mLayoutChangeListener);
153 public void onDetachedFromWindow(ItemBridgeAdapter.ViewHolder viewHolder) { argument
154 viewHolder.itemView.removeOnLayoutChangeListener(mViewHolder.mLayoutChangeListener);
286 RecyclerView.ViewHolder viewHolder;
288 viewHolder = mActionsRow.findViewHolderForPosition(mNumItems - 1);
289 boolean showRight = (viewHolder
636 notifyOnBindLogo(ViewHolder viewHolder) argument
651 onLayoutLogo(ViewHolder viewHolder, int oldState, boolean logoChanged) argument
695 onLayoutOverviewFrame(ViewHolder viewHolder, int oldState, boolean logoChanged) argument
760 setState(ViewHolder viewHolder, int state) argument
775 onStateChanged(ViewHolder viewHolder, int oldState) argument
[all...]
H A DActionPresenterSelector.java61 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
63 ActionViewHolder vh = (ActionViewHolder) viewHolder;
85 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { argument
86 ActionViewHolder vh = (ActionViewHolder) viewHolder;
102 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
103 super.onBindViewHolder(viewHolder, item);
104 ActionViewHolder vh = ((ActionViewHolder) viewHolder);
119 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
120 super.onBindViewHolder(viewHolder, item);
122 ActionViewHolder vh = (ActionViewHolder) viewHolder;
[all...]
H A DControlButtonPresenterSelector.java94 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
96 ActionViewHolder vh = (ActionViewHolder) viewHolder;
115 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { argument
116 ActionViewHolder vh = (ActionViewHolder) viewHolder;
125 public void setOnClickListener(Presenter.ViewHolder viewHolder, argument
127 ((ActionViewHolder) viewHolder).mFocusableView.setOnClickListener(listener);
H A DDividerPresenter.java53 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
57 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { argument
/frameworks/support/browser/src/main/java/androidx/browser/browseractions/
H A DBrowserActionsFallbackMenuAdapter.java63 ViewHolderItem viewHolder;
67 viewHolder = new ViewHolderItem();
68 viewHolder.mIcon =
70 viewHolder.mText =
72 convertView.setTag(viewHolder);
74 viewHolder = (ViewHolderItem) convertView.getTag();
77 viewHolder.mText.setText(menuItem.getTitle());
81 viewHolder.mIcon.setImageDrawable(drawable);
83 viewHolder.mIcon.setImageDrawable(null);
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/touch/
H A DItemTouchHelperActivity.java110 @NonNull RecyclerView.ViewHolder viewHolder) {
111 return ItemTouchHelperActivity.this.getMovementFlags(recyclerView, viewHolder);
116 @NonNull RecyclerView.ViewHolder viewHolder,
118 mAdapter.move(viewHolder.getAdapterPosition(), target.getAdapterPosition());
123 public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) {
124 mAdapter.delete(viewHolder.getAdapterPosition());
128 public void onSelectedChanged(@Nullable RecyclerView.ViewHolder viewHolder,
130 super.onSelectedChanged(viewHolder, actionState);
131 ItemTouchHelperActivity.this.onSelectedChanged(viewHolder, actionState);
136 @NonNull RecyclerView.ViewHolder viewHolder,
180 onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) argument
189 onChildDrawOver(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) argument
195 clearView(RecyclerView.ViewHolder viewHolder) argument
199 onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) argument
217 getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) argument
224 onBind(ItemTouchViewHolder viewHolder) argument
228 onCreateViewHolder(ItemTouchViewHolder viewHolder) argument
[all...]
H A DSwipeToDismissActivity.java92 public void onBind(ItemTouchViewHolder viewHolder) { argument
93 super.onBind(viewHolder);
94 viewHolder.actionButton.setVisibility(mPointerSwipeEnabled ? View.GONE : View.VISIBLE);
98 public void clearView(RecyclerView.ViewHolder viewHolder) { argument
99 super.clearView(viewHolder);
100 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder;
107 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { argument
108 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder;
114 touchVH.overlay.setTranslationX(viewHolder.itemView.getWidth());
118 super.onSelectedChanged(viewHolder, actionStat
122 onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) argument
163 getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) argument
[all...]
H A DDragAndDropActivity.java82 public void onBind(ItemTouchViewHolder viewHolder) { argument
83 super.onBind(viewHolder);
84 viewHolder.actionButton.setVisibility(mLongPressDragEnabled ? View.GONE : View.VISIBLE);
88 public void clearView(RecyclerView.ViewHolder viewHolder) { argument
89 super.clearView(viewHolder);
90 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder;
97 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { argument
98 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder;
103 super.onSelectedChanged(viewHolder, actionState);
123 public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) { argument
[all...]
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/touch/
H A DItemTouchHelperActivity.java110 @NonNull RecyclerView.ViewHolder viewHolder) {
111 return ItemTouchHelperActivity.this.getMovementFlags(recyclerView, viewHolder);
116 @NonNull RecyclerView.ViewHolder viewHolder,
118 mAdapter.move(viewHolder.getAdapterPosition(), target.getAdapterPosition());
123 public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) {
124 mAdapter.delete(viewHolder.getAdapterPosition());
128 public void onSelectedChanged(@Nullable RecyclerView.ViewHolder viewHolder,
130 super.onSelectedChanged(viewHolder, actionState);
131 ItemTouchHelperActivity.this.onSelectedChanged(viewHolder, actionState);
136 @NonNull RecyclerView.ViewHolder viewHolder,
180 onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) argument
189 onChildDrawOver(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) argument
195 clearView(RecyclerView.ViewHolder viewHolder) argument
199 onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) argument
217 getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) argument
224 onBind(ItemTouchViewHolder viewHolder) argument
228 onCreateViewHolder(ItemTouchViewHolder viewHolder) argument
[all...]
H A DSwipeToDismissActivity.java92 public void onBind(ItemTouchViewHolder viewHolder) { argument
93 super.onBind(viewHolder);
94 viewHolder.actionButton.setVisibility(mPointerSwipeEnabled ? View.GONE : View.VISIBLE);
98 public void clearView(RecyclerView.ViewHolder viewHolder) { argument
99 super.clearView(viewHolder);
100 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder;
107 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { argument
108 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder;
114 touchVH.overlay.setTranslationX(viewHolder.itemView.getWidth());
118 super.onSelectedChanged(viewHolder, actionStat
122 onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) argument
163 getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) argument
[all...]
H A DDragAndDropActivity.java82 public void onBind(ItemTouchViewHolder viewHolder) { argument
83 super.onBind(viewHolder);
84 viewHolder.actionButton.setVisibility(mLongPressDragEnabled ? View.GONE : View.VISIBLE);
88 public void clearView(RecyclerView.ViewHolder viewHolder) { argument
89 super.clearView(viewHolder);
90 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder;
97 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { argument
98 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder;
103 super.onSelectedChanged(viewHolder, actionState);
123 public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) { argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DSimpleItemAnimator.java85 public boolean canReuseUpdatedViewHolder(@NonNull RecyclerView.ViewHolder viewHolder) { argument
86 return !mSupportsChangeAnimations || viewHolder.isInvalid();
90 public boolean animateDisappearance(@NonNull ViewHolder viewHolder, argument
94 View disappearingItemView = viewHolder.itemView;
97 if (!viewHolder.isRemoved() && (oldLeft != newLeft || oldTop != newTop)) {
102 Log.d(TAG, "DISAPPEARING: " + viewHolder + " with view " + disappearingItemView);
104 return animateMove(viewHolder, oldLeft, oldTop, newLeft, newTop);
107 Log.d(TAG, "REMOVED: " + viewHolder + " with view " + disappearingItemView);
109 return animateRemove(viewHolder);
114 public boolean animateAppearance(@NonNull ViewHolder viewHolder, argument
133 animatePersistence(@onNull ViewHolder viewHolder, @NonNull ItemHolderInfo preInfo, @NonNull ItemHolderInfo postInfo) argument
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DSimpleItemAnimator.java83 public boolean canReuseUpdatedViewHolder(@NonNull RecyclerView.ViewHolder viewHolder) { argument
84 return !mSupportsChangeAnimations || viewHolder.isInvalid();
88 public boolean animateDisappearance(@NonNull RecyclerView.ViewHolder viewHolder, argument
92 View disappearingItemView = viewHolder.itemView;
95 if (!viewHolder.isRemoved() && (oldLeft != newLeft || oldTop != newTop)) {
100 Log.d(TAG, "DISAPPEARING: " + viewHolder + " with view " + disappearingItemView);
102 return animateMove(viewHolder, oldLeft, oldTop, newLeft, newTop);
105 Log.d(TAG, "REMOVED: " + viewHolder + " with view " + disappearingItemView);
107 return animateRemove(viewHolder);
112 public boolean animateAppearance(@NonNull RecyclerView.ViewHolder viewHolder, argument
131 animatePersistence(@onNull RecyclerView.ViewHolder viewHolder, @NonNull ItemHolderInfo preInfo, @NonNull ItemHolderInfo postInfo) argument
[all...]
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DCardPresenter.java111 public void onBindViewHolder(ViewHolder viewHolder, Object item) { argument
114 final Context context = viewHolder.view.getContext();
117 ((ImageCardView) viewHolder.view).setMainImage(drawable);
118 ((ImageCardView) viewHolder.view).setTitleText(photoItem.getTitle());
120 ((ImageCardView) viewHolder.view).setContentText(photoItem.getContent());
125 public void onBindViewHolder(ViewHolder viewHolder, Object item, List<Object> payloads) { argument
127 super.onBindViewHolder(viewHolder, item, payloads);
133 final Context context = viewHolder.view.getContext();
136 ((ImageCardView) viewHolder.view).setMainImage(drawable);
139 ((ImageCardView) viewHolder
149 onUnbindViewHolder(ViewHolder viewHolder) argument
[all...]
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DCardPresenter.java111 public void onBindViewHolder(ViewHolder viewHolder, Object item) { argument
114 final Context context = viewHolder.view.getContext();
117 ((ImageCardView) viewHolder.view).setMainImage(drawable);
118 ((ImageCardView) viewHolder.view).setTitleText(photoItem.getTitle());
120 ((ImageCardView) viewHolder.view).setContentText(photoItem.getContent());
125 public void onBindViewHolder(ViewHolder viewHolder, Object item, List<Object> payloads) { argument
127 super.onBindViewHolder(viewHolder, item, payloads);
133 final Context context = viewHolder.view.getContext();
136 ((ImageCardView) viewHolder.view).setMainImage(drawable);
139 ((ImageCardView) viewHolder
149 onUnbindViewHolder(ViewHolder viewHolder) argument
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DLoggingItemAnimator.java45 public boolean contains(RecyclerView.ViewHolder viewHolder, argument
48 if (log.viewHolder == viewHolder) {
52 if (((BaseRecyclerViewAnimationsTest.AnimateChange) log).newHolder == viewHolder) {
63 @NonNull RecyclerView.ViewHolder viewHolder,
66 loggingInfo = new BaseRecyclerViewAnimationsTest.LoggingInfo(viewHolder, changeFlags, payloads);
73 @NonNull RecyclerView.ViewHolder viewHolder) {
75 loggingInfo = new BaseRecyclerViewAnimationsTest.LoggingInfo(viewHolder, 0, null);
81 public boolean animateDisappearance(@NonNull RecyclerView.ViewHolder viewHolder, argument
84 .add(new BaseRecyclerViewAnimationsTest.AnimateDisappearance(viewHolder,
62 recordPreLayoutInformation(@onNull RecyclerView.State state, @NonNull RecyclerView.ViewHolder viewHolder, @AdapterChanges int changeFlags, @NonNull List<Object> payloads) argument
72 recordPostLayoutInformation(@onNull RecyclerView.State state, @NonNull RecyclerView.ViewHolder viewHolder) argument
91 animateAppearance(@onNull RecyclerView.ViewHolder viewHolder, ItemHolderInfo preLayoutInfo, @NonNull ItemHolderInfo postLayoutInfo) argument
102 animatePersistence(@onNull RecyclerView.ViewHolder viewHolder, @NonNull ItemHolderInfo preInfo, @NonNull ItemHolderInfo postInfo) argument
[all...]
H A DBaseRecyclerViewAnimationsTest.java174 for (RecyclerView.ViewHolder viewHolder : getTestRecyclerView().collectViewHolders()) {
176 RecyclerView.NO_POSITION, viewHolder.mOldPosition);
178 RecyclerView.NO_POSITION, viewHolder.mPreLayoutPosition);
187 for (RecyclerView.ViewHolder viewHolder : getTestRecyclerView().collectViewHolders()) {
188 if (!viewHolder.isRemoved() && !viewHolder.isInvalid()) {
190 viewHolder.mOldPosition != RecyclerView.NO_POSITION);
510 static CollectPositionResult fromScrap(RecyclerView.ViewHolder viewHolder) { argument
512 cpr.scrapResult = viewHolder;
516 static CollectPositionResult fromAdapter(RecyclerView.ViewHolder viewHolder) { argument
630 final RecyclerView.ViewHolder viewHolder; field in class:BaseRecyclerViewAnimationsTest.LoggingInfo
635 LoggingInfo(RecyclerView.ViewHolder viewHolder, int changeFlags, List<Object> payloads) argument
669 AnimatePersistence(RecyclerView.ViewHolder viewHolder, LoggingInfo pre, LoggingInfo post) argument
676 AnimateAppearance(RecyclerView.ViewHolder viewHolder, LoggingInfo pre, LoggingInfo post) argument
683 AnimateDisappearance(RecyclerView.ViewHolder viewHolder, LoggingInfo pre, LoggingInfo post) argument
690 public final RecyclerView.ViewHolder viewHolder; field in class:BaseRecyclerViewAnimationsTest.AnimateLogBase
694 AnimateLogBase(RecyclerView.ViewHolder viewHolder, LoggingInfo pre, LoggingInfo postInfo) argument
[all...]
H A DItemAnimatorV2ApiTest.java103 public boolean canReUse(RecyclerView.ViewHolder viewHolder, List<Object> payloads) {
104 return viewHolder == singleItemTarget;
197 assertSame(vh, log.viewHolder);
222 assertSame(vh, log.viewHolder);
246 assertSame(vh, log.viewHolder);
269 public boolean canReUse(RecyclerView.ViewHolder viewHolder, List<Object> payloads) {
270 assertSame(viewHolder, vh);
281 assertSame(vh, log.viewHolder);
307 public boolean canReUse(RecyclerView.ViewHolder viewHolder, List<Object> payloads) {
308 if (viewHolder
612 canReuseUpdatedViewHolder(RecyclerView.ViewHolder viewHolder, List<Object> payloads) argument
619 recordPreLayoutInformation(@onNull RecyclerView.State state, @NonNull RecyclerView.ViewHolder viewHolder, @AdapterChanges int changeFlags, @NonNull List<Object> payloads) argument
629 recordPostLayoutInformation(@onNull RecyclerView.State state, @NonNull RecyclerView.ViewHolder viewHolder) argument
637 animateDisappearance(@onNull RecyclerView.ViewHolder viewHolder, @NonNull ItemHolderInfo preLayoutInfo, @Nullable ItemHolderInfo postLayoutInfo) argument
650 animateAppearance(@onNull RecyclerView.ViewHolder viewHolder, ItemHolderInfo preInfo, @NonNull ItemHolderInfo postInfo) argument
661 animatePersistence(@onNull RecyclerView.ViewHolder viewHolder, @NonNull ItemHolderInfo preInfo, @NonNull ItemHolderInfo postInfo) argument
711 canReUse(RecyclerView.ViewHolder viewHolder, List<Object> payloads) argument
[all...]
/frameworks/support/car/src/androidTest/java/androidx/car/widget/
H A DTextListItemTest.java198 TextListItem.ViewHolder viewHolder = getViewHolderAtPosition(0);
199 assertThat(viewHolder.getSupplementalIcon().getVisibility(), is(equalTo(View.VISIBLE)));
200 assertThat(viewHolder.getSupplementalIconDivider().getVisibility(),
203 viewHolder = getViewHolderAtPosition(1);
204 assertThat(viewHolder.getAction1().getVisibility(), is(equalTo(View.VISIBLE)));
205 assertThat(viewHolder.getAction1Divider().getVisibility(), is(equalTo(View.VISIBLE)));
207 viewHolder = getViewHolderAtPosition(2);
208 assertThat(viewHolder.getAction1().getVisibility(), is(equalTo(View.VISIBLE)));
209 assertThat(viewHolder.getAction1Divider().getVisibility(), is(equalTo(View.VISIBLE)));
210 assertThat(viewHolder
[all...]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
H A DCardPresenter.java49 public void onBindViewHolder(ViewHolder viewHolder, Object item) { argument
51 ImageCardView cardView = (ImageCardView) viewHolder.view;
58 public void onUnbindViewHolder(ViewHolder viewHolder) { argument
59 ImageCardView cardView = (ImageCardView) viewHolder.view;
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DListItem.java49 final void bind(VH viewHolder) { argument
52 viewHolder.cleanUp();
54 viewHolder.addCleanUp(cleanUp);
61 onBind(viewHolder);
65 binder.bind(viewHolder);
146 * Binds this ListItem to {@code viewHolder} by applying data in ListItem to sub-views.
149 protected abstract void onBind(VH viewHolder); argument
175 * item.addViewBinder((viewHolder) -> {
176 * viewHolder.getTitle().doFoobar();
177 * }, (viewHolder)
218 bind(VH viewHolder) argument
[all...]

Completed in 416 milliseconds

12345