/development/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
D | ItemTouchHelperActivity.java | 107 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 …]
|
D | SwipeToDismissActivity.java | 97 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 …]
|
D | DragAndDropActivity.java | 83 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/ |
D | DetailsDescriptionPresenter.java | 46 @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
|
D | DetailViewExampleFragment.java | 82 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/ |
D | AbstractCardPresenter.java | 50 @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/ |
D | DirectoryEntryAdapter.java | 37 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/ |
D | DirectoryEntryAdapter.java | 81 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/ |
D | ListPopupWindowActivity.java | 97 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()
|
D | AnimatedRecyclerView.java | 159 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/ |
D | CardPresenter.java | 104 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
|
D | StringPresenter.java | 34 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/ |
D | DeviceScanActivity.java | 224 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/ |
D | UsageListAdapter.java | 79 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/ |
D | CustomAdapter.java | 84 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/ |
D | SpeedPickerActivity.java | 79 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/ |
D | CardExampleFragment.java | 77 …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/ |
D | ComplicationSimpleConfigActivity.java | 72 public void onClick(WearableListView.ViewHolder viewHolder) { in onClick() argument 77 Integer tag = (Integer) viewHolder.itemView.getTag(); in onClick()
|
D | DigitalWatchFaceWearableConfigActivity.java | 127 public void onClick(WearableListView.ViewHolder viewHolder) { in onClick() argument 128 ColorItemViewHolder colorItemViewHolder = (ColorItemViewHolder) viewHolder; in onClick()
|