/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
QueueAdapter.java | 45 private static class ViewHolder { 52 ViewHolder holder; 57 holder = new ViewHolder(); 63 holder = (ViewHolder) convertView.getTag();
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
QueueAdapter.java | 47 private static class ViewHolder { 54 ViewHolder holder; 59 holder = new ViewHolder(); 65 holder = (ViewHolder) convertView.getTag();
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
DetailsDescriptionPresenter.java | 22 protected void onBindDescription(ViewHolder vh, Object item) {
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/details/ |
DetailsDescriptionPresenter.java | 41 @Override public ViewHolder onCreateViewHolder(ViewGroup parent) { 43 return new ViewHolder(view); 46 @Override public void onBindViewHolder(ViewHolder viewHolder, Object item) { 47 TextView primaryText = mResourceCache.getViewById(viewHolder.view, R.id.primary_text); 48 TextView sndText1 = mResourceCache.getViewById(viewHolder.view, R.id.secondary_text_first); 49 TextView sndText2 = mResourceCache.getViewById(viewHolder.view, R.id.secondary_text_second); 50 TextView extraText = mResourceCache.getViewById(viewHolder.view, R.id.extra_text); 59 @Override public void onUnbindViewHolder(ViewHolder viewHolder) { [all...] |
/frameworks/support/v17/preference-leanback/src/android/support/v17/preference/ |
LeanbackListPreferenceDialogFragment.java | 122 public class AdapterSingle extends RecyclerView.Adapter<ViewHolder> 123 implements ViewHolder.OnItemClickListener { 137 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 141 return new ViewHolder(view, this); 145 public void onBindViewHolder(ViewHolder holder, int position) { 156 public void onItemClick(ViewHolder viewHolder) { 157 final int index = viewHolder.getAdapterPosition(); 176 public class AdapterMulti extends RecyclerView.Adapter<ViewHolder> 177 implements ViewHolder.OnItemClickListener [all...] |
/developers/build/prebuilts/gradle/SpeedTracker/Wearable/src/main/java/com/example/android/wearable/speedtracker/ui/ |
SpeedPickerListAdapter.java | 47 public static class ItemViewHolder extends WearableListView.ViewHolder { 62 public WearableListView.ViewHolder onCreateViewHolder(ViewGroup parent, 73 public void onBindViewHolder(WearableListView.ViewHolder holder,
|
/developers/samples/android/wearable/wear/SpeedTracker/Wearable/src/main/java/com/example/android/wearable/speedtracker/ui/ |
SpeedPickerListAdapter.java | 47 public static class ItemViewHolder extends WearableListView.ViewHolder { 62 public WearableListView.ViewHolder onCreateViewHolder(ViewGroup parent, 73 public void onBindViewHolder(WearableListView.ViewHolder holder,
|
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ui/ |
SpeedPickerListAdapter.java | 47 public static class ItemViewHolder extends WearableListView.ViewHolder { 62 public WearableListView.ViewHolder onCreateViewHolder(ViewGroup parent, 73 public void onBindViewHolder(WearableListView.ViewHolder holder,
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
ItemAnimatorV2ApiTest.java | 62 final RecyclerView.ViewHolder target = mRecyclerView.findViewHolderForAdapterPosition(9); 82 final RecyclerView.ViewHolder[] targets = new RecyclerView.ViewHolder[2]; 99 final RecyclerView.ViewHolder singleItemTarget = 103 public boolean canReUse(RecyclerView.ViewHolder viewHolder, List<Object> payloads) { 104 return viewHolder == singleItemTarget; 124 final RecyclerView.ViewHolder oldTarget = targets[0]; 125 final RecyclerView.ViewHolder newTarget = targets[1]; 153 final RecyclerView.ViewHolder target = mRecyclerView.findViewHolderForAdapterPosition(0) [all...] |
BaseRecyclerViewAnimationsTest.java | 121 for (RecyclerView.ViewHolder vh : ((TestRecyclerView)mRecyclerView).collectViewHolders()) { 125 for (RecyclerView.ViewHolder vh : recycler.getScrapList()) { 170 for (RecyclerView.ViewHolder viewHolder : getTestRecyclerView().collectViewHolders()) { 172 RecyclerView.NO_POSITION, viewHolder.mOldPosition); 174 RecyclerView.NO_POSITION, viewHolder.mPreLayoutPosition); 183 for (RecyclerView.ViewHolder viewHolder : getTestRecyclerView().collectViewHolders()) { 184 if (!viewHolder.isRemoved() && !viewHolder.isInvalid()) [all...] |
FocusSearchNavigationTest.java | 128 RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i); 129 assertThat("vh at " + i, viewHolder, hasFocus()); 130 focused = viewHolder.itemView; 148 RecyclerView.ViewHolder lastViewHolder = null; 157 RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i); 158 assertThat("vh at " + i, viewHolder, hasFocus()); 159 focused = viewHolder.itemView; 245 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent [all...] |
RecyclerViewFocusRecoveryTest.java | 115 final RecyclerView.ViewHolder oldVh = focusVh(3); 124 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(3); 132 private void assertFocusTransition(RecyclerView.ViewHolder oldVh, 133 RecyclerView.ViewHolder newVh) { 158 final RecyclerView.ViewHolder oldVh = focusVh(3); 170 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(3); 199 RecyclerView.ViewHolder oldVh = focusVh(4); 224 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForItemId(itemId); 282 RecyclerView.ViewHolder otherVh = mRecyclerView.findViewHolderForAdapterPosition(4); 304 RecyclerView.ViewHolder oldVh = focusVh(3) [all...] |
/frameworks/base/core/java/android/widget/ |
DayPickerPagerAdapter.java | 44 private final SparseArray<ViewHolder> mItems = new SparseArray<>(); 121 final ViewHolder oldMonthView = mItems.get(oldPosition, null); 129 final ViewHolder newMonthView = mItems.get(newPosition, null); 188 final ViewHolder holder = (ViewHolder) object; 263 final ViewHolder holder = new ViewHolder(position, itemView, v); 273 final ViewHolder holder = (ViewHolder) object; 281 final ViewHolder holder = (ViewHolder) object [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
ControlButtonPresenterSelector.java | 65 static class ActionViewHolder extends Presenter.ViewHolder { 86 public ViewHolder onCreateViewHolder(ViewGroup parent) { 93 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { 95 ActionViewHolder vh = (ActionViewHolder) viewHolder; 114 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { 115 ActionViewHolder vh = (ActionViewHolder) viewHolder; 124 public void setOnClickListener(Presenter.ViewHolder viewHolder, [all...] |
ActionPresenterSelector.java | 46 static class ActionViewHolder extends Presenter.ViewHolder { 60 public ViewHolder onCreateViewHolder(ViewGroup parent) { 67 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { 69 ActionViewHolder vh = (ActionViewHolder) viewHolder; 75 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { 76 ((ActionViewHolder) viewHolder).mAction = null; 82 public ViewHolder onCreateViewHolder(ViewGroup parent) { 89 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) [all...] |
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
BottomSheetDynamicContent.java | 111 private static class ViewHolder extends RecyclerView.ViewHolder { 115 ViewHolder(LayoutInflater inflater, ViewGroup parent) { 122 private static class DynamicAdapter extends RecyclerView.Adapter<ViewHolder> { 136 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 137 return new ViewHolder(LayoutInflater.from(parent.getContext()), parent); 141 public void onBindViewHolder(ViewHolder holder, int position) {
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
DefaultItemAnimator.java | 23 import android.support.v7.widget.RecyclerView.ViewHolder; 39 private ArrayList<ViewHolder> mPendingRemovals = new ArrayList<>(); 40 private ArrayList<ViewHolder> mPendingAdditions = new ArrayList<>(); 44 private ArrayList<ArrayList<ViewHolder>> mAdditionsList = new ArrayList<>(); 48 private ArrayList<ViewHolder> mAddAnimations = new ArrayList<>(); 49 private ArrayList<ViewHolder> mMoveAnimations = new ArrayList<>(); 50 private ArrayList<ViewHolder> mRemoveAnimations = new ArrayList<>(); 51 private ArrayList<ViewHolder> mChangeAnimations = new ArrayList<>(); 54 public ViewHolder holder; 57 private MoveInfo(ViewHolder holder, int fromX, int fromY, int toX, int toY) [all...] |
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
ModelBackedDocumentsAdapterTest.java | 125 private static class DummyAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { 127 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {} 128 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/ |
CardPresenter.java | 40 public ViewHolder onCreateViewHolder(ViewGroup parent) { 57 return new ViewHolder(cardView); 69 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { 71 ImageCardView cardView = (ImageCardView) viewHolder.view; 76 Glide.with(viewHolder.view.getContext()) 84 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { 85 ImageCardView cardView = (ImageCardView) viewHolder.view;
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/presenter/ |
CardPresenter.java | 43 public ViewHolder onCreateViewHolder(ViewGroup parent) { 61 return new ViewHolder(cardView); 73 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { 75 ImageCardView cardView = (ImageCardView) viewHolder.view; 82 Glide.with(viewHolder.view.getContext()) 91 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { 93 ImageCardView cardView = (ImageCardView) viewHolder.view;
|
DetailsDescriptionPresenter.java | 26 protected void onBindDescription(ViewHolder viewHolder, Object item) { 30 viewHolder.getTitle().setText(movie.getTitle()); 31 viewHolder.getSubtitle().setText(movie.getStudio()); 32 viewHolder.getBody().setText(movie.getDescription());
|
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/ |
DetailsDescriptionPresenter.java | 25 protected void onBindDescription(ViewHolder viewHolder, Object item) { 29 viewHolder.getTitle().setText(tvInput.displayName); 30 viewHolder.getSubtitle().setText("By " + tvInput.name);
|
/developers/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/fragments/ |
DataFragment.java | 74 ViewHolder holder; 76 holder = new ViewHolder(); 84 holder = (ViewHolder) convertView.getTag(); 92 private class ViewHolder {
|
/developers/build/prebuilts/gradle/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/ |
MainActivity.java | 71 public void onClick(WearableListView.ViewHolder v) { 89 public WearableListView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 90 return new WearableListView.ViewHolder( 95 public void onBindViewHolder(WearableListView.ViewHolder holder, int position) {
|
/developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/fragments/ |
DataFragment.java | 74 ViewHolder holder; 76 holder = new ViewHolder(); 84 holder = (ViewHolder) convertView.getTag(); 92 private class ViewHolder {
|