/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | DetailsDescriptionPresenter.java | 21 protected void onBindDescription(ViewHolder vh, Object item) { argument 22 vh.getTitle().setText(item.toString()); 23 vh.getSubtitle().setText("2013 - 2014 Drama TV-14"); 24 vh.getBody().setText("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
|
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | DetailsDescriptionPresenter.java | 21 protected void onBindDescription(ViewHolder vh, Object item) { argument 22 vh.getTitle().setText(item.toString()); 23 vh.getSubtitle().setText("2013 - 2014 Drama TV-14"); 24 vh.getBody().setText("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | AbstractMediaListHeaderPresenter.java | 99 ViewHolder vh = new ViewHolder(view); 101 vh.view.setBackgroundColor(mBackgroundColor); 103 return vh; 107 protected void onBindRowViewHolder(RowPresenter.ViewHolder vh, Object item) { argument 108 super.onBindRowViewHolder(vh, item); 109 onBindMediaListHeaderViewHolder((ViewHolder) vh, item); 128 * {@link ViewHolder} provided as the argument {@code vh} by this presenter. 130 * @param vh The ViewHolder for this {@link AbstractMediaListHeaderPresenter}. 133 protected abstract void onBindMediaListHeaderViewHolder(ViewHolder vh, Object item); argument
|
H A D | FullWidthDetailsOverviewSharedElementHelper.java | 120 public void onBindLogo(ViewHolder vh) { argument 124 mViewHolder = vh;
|
H A D | DetailsOverviewSharedElementHelper.java | 212 void onBindToDrawable(ViewHolder vh) { argument 226 mViewHolder = vh;
|
H A D | AbstractDetailsDescriptionPresenter.java | 161 ViewHolder vh = (ViewHolder) viewHolder; 162 onBindDescription(vh, item); 165 if (TextUtils.isEmpty(vh.mTitle.getText())) { 166 vh.mTitle.setVisibility(View.GONE); 169 vh.mTitle.setVisibility(View.VISIBLE); 170 vh.mTitle.setLineSpacing(vh.mTitleLineSpacing - vh.mTitle.getLineHeight() 171 + vh.mTitle.getLineSpacingExtra(), vh 216 onBindDescription(ViewHolder vh, Object item) argument [all...] |
H A D | ControlBarPresenter.java | 152 Presenter.ViewHolder vh = mViewHolders.get(position); 154 if (vh == null) { 155 vh = presenter.onCreateViewHolder(mControlBar); 156 mViewHolders.put(position, vh); 158 final Presenter.ViewHolder itemViewHolder = vh; 159 presenter.setOnClickListener(vh, new View.OnClickListener() { 170 if (vh.view.getParent() == null) { 171 mControlBar.addView(vh.view); 173 presenter.onBindViewHolder(vh, item); 236 public void setBackgroundColor(ViewHolder vh, in argument [all...] |
H A D | AbstractMediaItemPresenter.java | 433 final ViewHolder vh = new ViewHolder(view); 434 vh.mRowPresenter = this; 436 vh.mMediaRowView.setBackgroundColor(mBackgroundColor); 438 return vh; 452 protected void onBindRowViewHolder(RowPresenter.ViewHolder vh, Object item) { argument 453 super.onBindRowViewHolder(vh, item); 455 final ViewHolder mvh = (ViewHolder) vh; 463 onBindMediaDetails((ViewHolder) vh, item); 468 * @param vh ViewHolder for the media item. 470 protected void onBindRowActions(ViewHolder vh) { argument 509 onBindMediaDetails(ViewHolder vh, Object item) argument 517 onUnbindMediaDetails(ViewHolder vh) argument 529 onBindMediaPlayState(ViewHolder vh) argument 536 calculateMediaItemNumberFlipperIndex(ViewHolder vh) argument 559 onUnbindMediaPlayState(ViewHolder vh) argument [all...] |
H A D | PlaybackControlsPresenter.java | 238 public void setProgressColor(ViewHolder vh, @ColorInt int color) { argument 241 ((LayerDrawable) vh.mProgressBar.getProgressDrawable()) 245 public void setTotalTime(ViewHolder vh, int ms) { argument 246 setTotalTimeLong(vh, (long) ms); 249 public void setTotalTimeLong(ViewHolder vh, long ms) { argument 250 vh.setTotalTime(ms); 253 public int getTotalTime(ViewHolder vh) { argument 254 return MathUtil.safeLongToInt(getTotalTimeLong(vh)); 257 public long getTotalTimeLong(ViewHolder vh) { argument 258 return vh 261 setCurrentTime(ViewHolder vh, int ms) argument 265 setCurrentTimeLong(ViewHolder vh, long ms) argument 269 getCurrentTime(ViewHolder vh) argument 273 getCurrentTimeLong(ViewHolder vh) argument 277 setSecondaryProgress(ViewHolder vh, int progressMs) argument 281 setSecondaryProgressLong(ViewHolder vh, long progressMs) argument 285 getSecondaryProgress(ViewHolder vh) argument 289 getSecondaryProgressLong(ViewHolder vh) argument 293 showPrimaryActions(ViewHolder vh) argument 299 resetFocus(ViewHolder vh) argument 303 enableTimeMargins(ViewHolder vh, boolean enable) argument [all...] |
H A D | PlaybackControlsRowPresenter.java | 174 ViewHolder vh = ((BoundData) data).mRowViewHolder; 175 if (vh.mSelectedViewHolder != itemViewHolder || vh.mSelectedItem != item) { 176 vh.mSelectedViewHolder = itemViewHolder; 177 vh.mSelectedItem = item; 178 vh.dispatchItemSelection(); 188 ViewHolder vh = ((BoundData) data).mRowViewHolder; 189 if (vh.getOnItemViewClickedListener() != null) { 190 vh.getOnItemViewClickedListener().onItemClicked(itemViewHolder, item, 191 vh, v 295 showBottomSpace(ViewHolder vh, boolean show) argument 303 showPrimaryActions(ViewHolder vh) argument 341 initRow(final ViewHolder vh) argument 419 updateCardLayout(ViewHolder vh, int height) argument 465 onRowViewSelected(RowPresenter.ViewHolder vh, boolean selected) argument 473 onRowViewAttachedToWindow(RowPresenter.ViewHolder vh) argument 482 onRowViewDetachedFromWindow(RowPresenter.ViewHolder vh) argument [all...] |
H A D | VerticalGridPresenter.java | 235 ViewHolder vh = createGridViewHolder(parent); 236 vh.mInitialized = false; 237 vh.mItemBridgeAdapter = new VerticalGridItemBridgeAdapter(); 238 initializeGridViewHolder(vh); 239 if (!vh.mInitialized) { 242 return vh; 259 * @param vh The ViewHolder to initialize for the vertical grid. 261 protected void initializeGridViewHolder(ViewHolder vh) { argument 266 vh.getGridView().setNumColumns(mNumColumns); 267 vh 381 selectChildView(ViewHolder vh, View view) argument [all...] |
H A D | DetailsOverviewRowPresenter.java | 405 protected void onRowViewSelected(RowPresenter.ViewHolder vh, boolean selected) { argument 406 super.onRowViewSelected(vh, selected); 408 ((ViewHolder) vh).dispatchItemSelection(null); 416 ViewHolder vh = new ViewHolder(v, mDetailsPresenter); 418 initDetailsOverview(vh); 420 return vh; 429 private void initDetailsOverview(final ViewHolder vh) { argument 430 vh.mActionBridgeAdapter = new ActionsItemBridgeAdapter(vh); 431 final View overview = vh 462 bindImageDrawable(ViewHolder vh) argument 584 onRowViewAttachedToWindow(RowPresenter.ViewHolder vh) argument 593 onRowViewDetachedFromWindow(RowPresenter.ViewHolder vh) argument [all...] |
H A D | PlaybackTransportRowPresenter.java | 555 ViewHolder vh = ((BoundData) data).mRowViewHolder; 556 if (vh.mSelectedViewHolder != itemViewHolder || vh.mSelectedItem != item) { 557 vh.mSelectedViewHolder = itemViewHolder; 558 vh.mSelectedItem = item; 559 vh.dispatchItemSelection(); 569 ViewHolder vh = ((BoundData) data).mRowViewHolder; 570 if (vh.getOnItemViewClickedListener() != null) { 571 vh.getOnItemViewClickedListener().onItemClicked(itemViewHolder, item, 572 vh, v 660 initRow(final ViewHolder vh) argument 745 onProgressBarClicked(ViewHolder vh) argument 777 onRowViewSelected(RowPresenter.ViewHolder vh, boolean selected) argument 785 onRowViewAttachedToWindow(RowPresenter.ViewHolder vh) argument 794 onRowViewDetachedFromWindow(RowPresenter.ViewHolder vh) argument [all...] |
H A D | RowPresenter.java | 326 ViewHolder vh = createRowViewHolder(parent); 327 vh.mInitialzed = false; 332 vh.mHeaderViewHolder = (RowHeaderPresenter.ViewHolder) 333 mHeaderPresenter.onCreateViewHolder((ViewGroup) vh.view); 335 result = new ContainerViewHolder(containerView, vh); 337 result = vh; 339 initializeRowViewHolder(vh); 340 if (!vh.mInitialzed) { 370 * @param vh The ViewHolder to initialize for the Row. 372 protected void initializeRowViewHolder(ViewHolder vh) { argument 444 onRowViewExpanded(ViewHolder vh, boolean expanded) argument 453 updateActivateStatus(ViewHolder vh, View view) argument 497 dispatchItemSelectedListener(ViewHolder vh, boolean selected) argument 510 onRowViewSelected(ViewHolder vh, boolean selected) argument 516 updateHeaderViewVisibility(ViewHolder vh) argument 528 setSelectLevel(Presenter.ViewHolder vh, float level) argument 538 getSelectLevel(Presenter.ViewHolder vh) argument 550 onSelectLevelChanged(ViewHolder vh) argument 609 onBindRowViewHolder(ViewHolder vh, Object item) argument 627 onUnbindRowViewHolder(ViewHolder vh) argument 643 onRowViewAttachedToWindow(ViewHolder vh) argument 657 onRowViewDetachedFromWindow(ViewHolder vh) argument [all...] |
/frameworks/data-binding/samples/BindingDemo/app/src/main/java/com/android/example/bindingdemo/ |
H A D | MainActivity.java | 137 DataBoundViewHolder<ListItemBinding> vh = super.onCreateViewHolder(viewGroup, type); 138 vh.dataBinder.setClickListener(this); 139 return vh; 143 public void onBindViewHolder(DataBoundViewHolder<ListItemBinding> vh, int index) { argument 144 vh.dataBinder.setUser(userList.get(index)); 145 vh.dataBinder.executePendingBindings();
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | ChildHelperTest.java | 53 private RecyclerView.ViewHolder vh() { method in class:ChildHelperTest 65 RecyclerView.ViewHolder vh = vh(); 66 mChildHelper.addView(vh.itemView, false); 68 assertFalse(mChildHelper.isHidden(vh.itemView)); 74 RecyclerView.ViewHolder vh = vh(); 75 mChildHelper.addView(vh.itemView, true); 77 assertTrue(mChildHelper.isHidden(vh.itemView)); 78 assertTrue(mLoggingCallback.mOnEnteredHiddenState.contains(vh [all...] |
H A D | ItemTouchHelperTest.java | 258 public MoveRecord getMove(RecyclerView.ViewHolder vh) { argument 260 if (move.from == vh) { 280 public SwipeRecord getSwipe(RecyclerView.ViewHolder vh) { argument 282 if (swipe.viewHolder == vh) { 289 public boolean isCleared(RecyclerView.ViewHolder vh) { argument 290 return mCleared.contains(vh);
|
H A D | DefaultItemAnimatorTest.java | 125 RecyclerView.ViewHolder vh = new ViewHolder(new TextView(getActivity())); 126 assertFalse(mAnimator.canReuseUpdatedViewHolder(vh, new ArrayList<>())); 127 assertTrue(mAnimator.canReuseUpdatedViewHolder(vh, Arrays.asList((Object) "a"))); 157 assertTrue("all vh animations should end", 167 ViewHolder vh = createViewHolder(1); 168 expectItems(vh); 169 assertTrue(animateAdd(vh)); 176 ViewHolder vh = createViewHolder(1); 177 expectItems(vh); 178 assertTrue(animateRemove(vh)); 331 animateAdd(final RecyclerView.ViewHolder vh) argument 342 animateRemove(final RecyclerView.ViewHolder vh) argument 353 animateMove(final RecyclerView.ViewHolder vh, final int fromX, final int fromY, final int toX, final int toY) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ViewInfoStore.java | 84 * @param vh The ViewHolder whose information is being queried 88 ItemHolderInfo popFromPreLayout(ViewHolder vh) { argument 89 return popFromLayoutStep(vh, FLAG_PRE); 95 * @param vh The ViewHolder whose information is being queried 99 ItemHolderInfo popFromPostLayout(ViewHolder vh) { argument 100 return popFromLayoutStep(vh, FLAG_POST); 103 private ItemHolderInfo popFromLayoutStep(ViewHolder vh, int flag) { argument 104 int index = mLayoutHolderMap.indexOfKey(vh);
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | ViewInfoStore.java | 79 * @param vh The ViewHolder whose information is being queried 83 RecyclerView.ItemAnimator.ItemHolderInfo popFromPreLayout(RecyclerView.ViewHolder vh) { argument 84 return popFromLayoutStep(vh, FLAG_PRE); 90 * @param vh The ViewHolder whose information is being queried 94 RecyclerView.ItemAnimator.ItemHolderInfo popFromPostLayout(RecyclerView.ViewHolder vh) { argument 95 return popFromLayoutStep(vh, FLAG_POST); 98 private RecyclerView.ItemAnimator.ItemHolderInfo popFromLayoutStep(RecyclerView.ViewHolder vh, int flag) { argument 99 int index = mLayoutHolderMap.indexOfKey(vh);
|
/frameworks/support/car/src/main/java/androidx/car/widget/ |
H A D | SeekbarListItem.java | 201 private void hideSubViews(ViewHolder vh) { argument 203 vh.getPrimaryIcon(), 205 vh.getText(), 206 vh.getSupplementalIcon(), vh.getSupplementalIconDivider(), 216 mBinders.add(vh -> { 217 vh.itemView.setMinimumHeight(minHeight); 218 vh.getContainerLayout().setMinimumHeight(minHeight); 220 ViewGroup.LayoutParams layoutParams = vh.itemView.getLayoutParams(); 222 vh [all...] |
H A D | TextListItem.java | 194 private void hideSubViews(ViewHolder vh) { argument 196 vh.getPrimaryIcon(), 197 vh.getTitle(), vh.getBody(), 198 vh.getSupplementalIcon(), vh.getSupplementalIconDivider(), 199 vh.getSwitch(), vh.getSwitchDivider(), 200 vh.getAction1(), vh [all...] |
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
H A D | GridActivity.java | 43 void onBind(RecyclerView.ViewHolder vh, int position); argument 228 RecyclerView.ViewHolder vh = mGridView.getChildViewHolder(v); 229 int position = vh.getAdapterPosition(); 384 RecyclerView.ViewHolder vh = mGridView.getChildViewHolder(v); 385 int position = vh.getAdapterPosition();
|
/frameworks/support/leanback/src/main/java/androidx/leanback/app/ |
H A D | RowsFragment.java | 214 ItemBridgeAdapter.ViewHolder vh = 216 setRowViewExpanded(vh, mExpand); 324 static void setRowViewExpanded(ItemBridgeAdapter.ViewHolder vh, boolean expanded) { argument 325 ((RowPresenter) vh.getPresenter()).setRowViewExpanded(vh.getViewHolder(), expanded); 328 static void setRowViewSelected(ItemBridgeAdapter.ViewHolder vh, boolean selected, argument 330 RowViewHolderExtra extra = (RowViewHolderExtra) vh.getExtraObject(); 332 ((RowPresenter) vh.getPresenter()).setRowViewSelected(vh.getViewHolder(), selected); 345 public void onCreate(ItemBridgeAdapter.ViewHolder vh) { [all...] |
H A D | RowsSupportFragment.java | 209 ItemBridgeAdapter.ViewHolder vh = 211 setRowViewExpanded(vh, mExpand); 319 static void setRowViewExpanded(ItemBridgeAdapter.ViewHolder vh, boolean expanded) { argument 320 ((RowPresenter) vh.getPresenter()).setRowViewExpanded(vh.getViewHolder(), expanded); 323 static void setRowViewSelected(ItemBridgeAdapter.ViewHolder vh, boolean selected, argument 325 RowViewHolderExtra extra = (RowViewHolderExtra) vh.getExtraObject(); 327 ((RowPresenter) vh.getPresenter()).setRowViewSelected(vh.getViewHolder(), selected); 340 public void onCreate(ItemBridgeAdapter.ViewHolder vh) { [all...] |