Home
last modified time | relevance | path

Searched refs:viewHolder (Results 1 – 19 of 19) sorted by relevance

/development/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/
DItemTouchHelperActivity.java107 RecyclerView.ViewHolder viewHolder) { in createCallback()
108 return ItemTouchHelperActivity.this.getMovementFlags(recyclerView, viewHolder); in createCallback()
112 public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, in createCallback() argument
114 mAdapter.move(viewHolder.getAdapterPosition(), target.getAdapterPosition()); in createCallback()
119 public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) { in createCallback() argument
120 mAdapter.delete(viewHolder.getAdapterPosition()); in createCallback()
124 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { in createCallback() argument
125 super.onSelectedChanged(viewHolder, actionState); in createCallback()
126 ItemTouchHelperActivity.this.onSelectedChanged(viewHolder, actionState); in createCallback()
131 RecyclerView.ViewHolder viewHolder, in createCallback() argument
[all …]
DSwipeToDismissActivity.java97 public void onBind(ItemTouchViewHolder viewHolder) { in onBind() argument
98 super.onBind(viewHolder); in onBind()
99 viewHolder.actionButton.setVisibility(mPointerSwipeEnabled ? View.GONE : View.VISIBLE); in onBind()
103 public void clearView(RecyclerView.ViewHolder viewHolder) { in clearView() argument
104 super.clearView(viewHolder); in clearView()
105 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder; in clearView()
112 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { in onSelectedChanged() argument
113 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder; in onSelectedChanged()
118 touchVH.overlay.setTranslationX(viewHolder.itemView.getWidth()); in onSelectedChanged()
122 super.onSelectedChanged(viewHolder, actionState); in onSelectedChanged()
[all …]
DDragAndDropActivity.java83 public void onBind(ItemTouchViewHolder viewHolder) {
84 super.onBind(viewHolder);
85 viewHolder.actionButton.setVisibility(mLongPressDragEnabled ? View.GONE : View.VISIBLE);
89 public void clearView(RecyclerView.ViewHolder viewHolder) {
90 super.clearView(viewHolder);
91 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder;
97 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) {
98 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder;
102 super.onSelectedChanged(viewHolder, actionState);
122 public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/details/
DDetailsDescriptionPresenter.java46 @Override public void onBindViewHolder(ViewHolder viewHolder, Object item) { in onBindViewHolder() argument
47 TextView primaryText = mResourceCache.getViewById(viewHolder.view, R.id.primary_text); in onBindViewHolder()
48 TextView sndText1 = mResourceCache.getViewById(viewHolder.view, R.id.secondary_text_first); in onBindViewHolder()
49 TextView sndText2 = mResourceCache.getViewById(viewHolder.view, R.id.secondary_text_second); in onBindViewHolder()
50 TextView extraText = mResourceCache.getViewById(viewHolder.view, R.id.extra_text); in onBindViewHolder()
59 @Override public void onUnbindViewHolder(ViewHolder viewHolder) { in onUnbindViewHolder() argument
DDetailViewExampleFragment.java82 RowPresenter.ViewHolder viewHolder = super.createRowViewHolder(parent); in setupUi()
84 View actionsView = viewHolder.view. in setupUi()
89 View detailsView = viewHolder.view.findViewById(R.id.details_frame); in setupUi()
92 return viewHolder; in setupUi()
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/
DAbstractCardPresenter.java50 @Override public final void onBindViewHolder(ViewHolder viewHolder, Object item) { in onBindViewHolder() argument
52 onBindViewHolder(card, (T) viewHolder.view); in onBindViewHolder()
55 @Override public final void onUnbindViewHolder(ViewHolder viewHolder) { in onUnbindViewHolder() argument
56 onUnbindViewHolder((T) viewHolder.view); in onUnbindViewHolder()
/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/
DDirectoryEntryAdapter.java37 public void onBindViewHolder(ViewHolder viewHolder, final int position) { in onBindViewHolder() argument
38 viewHolder.fileName.setText(mDirectoryEntries.get(position).fileName); in onBindViewHolder()
39 viewHolder.mimeType.setText(mDirectoryEntries.get(position).mimeType); in onBindViewHolder()
43 viewHolder.imageView.setImageResource(R.drawable.ic_directory_grey600_36dp); in onBindViewHolder()
45 viewHolder.imageView.setImageResource(R.drawable.ic_description_grey600_36dp); in onBindViewHolder()
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/
DDirectoryEntryAdapter.java81 public void onBindViewHolder(ViewHolder viewHolder, final int position) { in onBindViewHolder() argument
82 viewHolder.getFileName().setText(mDirectoryEntries.get(position).fileName); in onBindViewHolder()
83 viewHolder.getMimeType().setText(mDirectoryEntries.get(position).mimeType); in onBindViewHolder()
86 viewHolder.getImageView().setImageResource(R.drawable.ic_folder_grey600_36dp); in onBindViewHolder()
88 viewHolder.getImageView().setImageResource(R.drawable.ic_description_grey600_36dp); in onBindViewHolder()
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/
DListPopupWindowActivity.java97 ViewHolder viewHolder = new ViewHolder(); in onCreate()
98 viewHolder.title = (TextView) convertView.findViewById(R.id.title); in onCreate()
99 viewHolder.shortcut = in onCreate()
101 convertView.setTag(viewHolder); in onCreate()
104 ViewHolder viewHolder = (ViewHolder) convertView.getTag(); in onCreate()
105 viewHolder.title.setText(POPUP_CONTENT[position]); in onCreate()
106 viewHolder.shortcut.setVisibility(View.GONE); in onCreate()
DAnimatedRecyclerView.java159 RecyclerView.ViewHolder viewHolder, in createAnimator() argument
162 .recordPreLayoutInformation(state, viewHolder, changeFlags, payloads); in createAnimator()
163 info.text = ((MyViewHolder) viewHolder).textView.getText(); in createAnimator()
169 RecyclerView.ViewHolder viewHolder) { in createAnimator() argument
170 MyItemInfo info = (MyItemInfo) super.recordPostLayoutInformation(state, viewHolder); in createAnimator()
171 info.text = ((MyViewHolder) viewHolder).textView.getText(); in createAnimator()
177 public boolean canReuseUpdatedViewHolder(RecyclerView.ViewHolder viewHolder) { in createAnimator() argument
274 public ItemChangeAnimator(MyViewHolder viewHolder, CharSequence finalText, long duration) { in ItemChangeAnimator() argument
275 mViewHolder = viewHolder; in ItemChangeAnimator()
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DCardPresenter.java104 public void onBindViewHolder(ViewHolder viewHolder, Object item) { in onBindViewHolder() argument
107 Drawable drawable = viewHolder.view.getContext().getResources() in onBindViewHolder()
109 ((ImageCardView) viewHolder.view).setMainImage(drawable); in onBindViewHolder()
110 ((ImageCardView) viewHolder.view).setTitleText(photoItem.getTitle()); in onBindViewHolder()
112 ((ImageCardView) viewHolder.view).setContentText(photoItem.getContent()); in onBindViewHolder()
117 public void onUnbindViewHolder(ViewHolder viewHolder) { in onUnbindViewHolder() argument
DStringPresenter.java34 public void onBindViewHolder(ViewHolder viewHolder, Object item) { in onBindViewHolder() argument
36 ((TextView) viewHolder.view).setText(item.toString()); in onBindViewHolder()
39 public void onUnbindViewHolder(ViewHolder viewHolder) { in onUnbindViewHolder() argument
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/
DDeviceScanActivity.java224 ViewHolder viewHolder; in getView() local
228 viewHolder = new ViewHolder(); in getView()
229 viewHolder.deviceAddress = (TextView) view.findViewById(R.id.device_address); in getView()
230 viewHolder.deviceName = (TextView) view.findViewById(R.id.device_name); in getView()
231 view.setTag(viewHolder); in getView()
233 viewHolder = (ViewHolder) view.getTag(); in getView()
239 viewHolder.deviceName.setText(deviceName); in getView()
241 viewHolder.deviceName.setText(R.string.unknown_device); in getView()
242 viewHolder.deviceAddress.setText(device.getAddress()); in getView()
/development/samples/browseable/AppUsageStatistics/src/com.example.android.appusagestatistics/
DUsageListAdapter.java79 public void onBindViewHolder(ViewHolder viewHolder, final int position) { in onBindViewHolder() argument
80 viewHolder.getPackageName().setText( in onBindViewHolder()
83 viewHolder.getLastTimeUsed().setText(mDateFormat.format(new Date(lastTimeUsed))); in onBindViewHolder()
84 viewHolder.getAppIcon().setImageDrawable(mCustomUsageStatsList.get(position).appIcon); in onBindViewHolder()
/development/samples/browseable/RecyclerView/src/com.example.android.recyclerview/
DCustomAdapter.java84 public void onBindViewHolder(ViewHolder viewHolder, final int position) { in onBindViewHolder() argument
89 viewHolder.getTextView().setText(mDataSet[position]); in onBindViewHolder()
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/
DSpeedPickerActivity.java79 public void onClick(WearableListView.ViewHolder viewHolder) { in onClick() argument
81 int newSpeedLimit = speeds[viewHolder.getPosition()]; in onClick()
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/cards/
DCardExampleFragment.java77 …public void onItemClicked(Presenter.ViewHolder viewHolder, Object item, RowPresenter.ViewHolder vi… in setupUi()
79 if (!(viewHolder.view instanceof ImageCardView)) return; in setupUi()
81 ImageView imageView = ((ImageCardView) viewHolder.view).getMainImageView(); in setupUi()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DComplicationSimpleConfigActivity.java72 public void onClick(WearableListView.ViewHolder viewHolder) { in onClick() argument
77 Integer tag = (Integer) viewHolder.itemView.getTag(); in onClick()
DDigitalWatchFaceWearableConfigActivity.java127 public void onClick(WearableListView.ViewHolder viewHolder) { in onClick() argument
128 ColorItemViewHolder colorItemViewHolder = (ColorItemViewHolder) viewHolder; in onClick()