/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/ |
GridItemPresenter.java | 39 public ViewHolder onCreateViewHolder(ViewGroup parent) { 48 return new ViewHolder(view); 52 public void onBindViewHolder(ViewHolder viewHolder, Object item) { 53 ((TextView) viewHolder.view).setText((String) item); 57 public void onUnbindViewHolder(ViewHolder viewHolder) {
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
PromoCardViewHolder.java | 27 * Generic ViewHolder class for a promo card with a primary and secondary action. 30 public class PromoCardViewHolder extends RecyclerView.ViewHolder { 47 * Creates an instance of the {@link ViewHolder}. 78 PromoCardViewHolder viewHolder = new PromoCardViewHolder(new View(context)); 79 viewHolder.mPrimaryActionView = new View(context); 80 viewHolder.mSecondaryActionView = new View(context); 81 return viewHolder;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
UserPresetsAdapter.java | 94 UserPresetViewHolder viewHolder; 97 viewHolder = new UserPresetViewHolder(); 98 viewHolder.imageView = (ImageView) convertView.findViewById(R.id.imageView); 99 viewHolder.editText = (EditText) convertView.findViewById(R.id.editView); 100 viewHolder.deleteButton = (ImageButton) convertView.findViewById(R.id.deleteUserPreset); 101 viewHolder.editText.setOnClickListener(this); 102 viewHolder.editText.setOnFocusChangeListener(this); 103 viewHolder.deleteButton.setOnClickListener(this); 104 convertView.setTag(viewHolder); 106 viewHolder = (UserPresetViewHolder) convertView.getTag() [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
ScheduledRecordingPresenter.java | 46 private static final class ScheduledRecordingViewHolder extends ViewHolder { 60 public ViewHolder onCreateViewHolder(ViewGroup parent) { 67 public void onBindViewHolder(ViewHolder baseHolder, Object o) { 68 ScheduledRecordingViewHolder viewHolder = (ScheduledRecordingViewHolder) baseHolder; 70 final RecordingCardView cardView = (RecordingCardView) viewHolder.view; 71 final Context context = viewHolder.view.getContext(); 77 viewHolder.mQueryProgramTask = new ProgramDataManager.QueryProgramTask( 85 viewHolder.mQueryProgramTask.executeOnDbThread(); 125 public void onUnbindViewHolder(ViewHolder baseHolder) { 126 ScheduledRecordingViewHolder viewHolder = (ScheduledRecordingViewHolder) baseHolder [all...] |
RecordedProgramPresenter.java | 54 public ViewHolder onCreateViewHolder(ViewGroup parent) { 57 return new ViewHolder(view); 61 public void onBindViewHolder(ViewHolder viewHolder, Object o) { 63 final RecordingCardView cardView = (RecordingCardView) viewHolder.view; 64 final Context context = viewHolder.view.getContext(); 86 viewHolder.view.setOnClickListener(new View.OnClickListener() { 117 public void onUnbindViewHolder(ViewHolder viewHolder) { 118 final RecordingCardView cardView = (RecordingCardView) viewHolder.view [all...] |
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/presenter/ |
GridItemPresenter.java | 39 public ViewHolder onCreateViewHolder(ViewGroup parent) { 47 return new ViewHolder(view); 51 public void onBindViewHolder(ViewHolder viewHolder, Object item) { 52 ((TextView) viewHolder.view).setText((String) item); 56 public void onUnbindViewHolder(ViewHolder viewHolder) {
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
FixedViewPagerAdapter.java | 44 final PagerViewHolder viewHolder = getViewHolder(position); 45 final View view = viewHolder.getView(container); 49 view.setTag(viewHolder); 51 return viewHolder; 56 final PagerViewHolder viewHolder = getViewHolder(position); 57 final View destroyedView = viewHolder.destroyView();
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/settings/ |
PermissionsSettingsAdapter.java | 38 public WearableListView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 43 public void onBindViewHolder(WearableListView.ViewHolder holder, int position) { 45 PermissionsViewHolder viewHolder = (PermissionsViewHolder) holder; 49 viewHolder.imageView.setEnabled(false); 50 viewHolder.textView.setEnabled(false); 51 viewHolder.state.setEnabled(false); 52 viewHolder.state.setText( 55 viewHolder.imageView.setEnabled(true); 56 viewHolder.textView.setEnabled(true); 57 viewHolder.state.setEnabled(true) [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
DirectoryItemAnimator.java | 42 private final Map<RecyclerView.ViewHolder, ColorAnimation> mRunningAnimations = 57 mRunningAnimations.put(anim.viewHolder, anim); 63 public void endAnimation(RecyclerView.ViewHolder vh) { 68 if (anim.viewHolder == vh) { 83 RecyclerView.ViewHolder viewHolder, 87 viewHolder, changeFlags, payloads); 88 info.isActivated = viewHolder.itemView.isActivated(); 95 RecyclerView.State state, RecyclerView.ViewHolder viewHolder) { [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
VideoItem.java | 152 VideoViewHolder viewHolder; 156 viewHolder = getViewHolder(view); 163 viewHolder = new VideoViewHolder(videoView, playButton); 164 view.setTag(R.id.mediadata_tag_target, viewHolder); 167 if (viewHolder != null) { 169 viewHolder.mPlayButton.setOnClickListener(new View.OnClickListener() { 180 renderTiny(viewHolder); 228 private void renderTiny(@Nonnull VideoViewHolder viewHolder) { 230 .into(viewHolder.mVideoView);
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
AlarmTimeAdapter.java | 81 public void onViewRecycled(AlarmTimeViewHolder viewHolder) { 82 super.onViewRecycled(viewHolder); 83 viewHolder.clearData(); 87 public void onBindViewHolder(AlarmTimeViewHolder viewHolder, int position) { 95 viewHolder.bindAlarm(mContext, alarm, alarmInstance);
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
DropdownChipLayouter.java | 128 final ViewHolder viewHolder = new ViewHolder(itemView); 149 if (viewHolder.topDivider != null) { 150 viewHolder.topDivider.setVisibility(position == 0 ? View.VISIBLE : View.GONE); 152 (MarginLayoutParams) viewHolder.topDivider.getLayoutParams(), 155 if (viewHolder.bottomDivider != null) { 157 (MarginLayoutParams) viewHolder.bottomDivider.getLayoutParams(), 175 bindTextToView(displayName, viewHolder.displayNameView); 176 bindTextToView(destination, viewHolder.destinationView) [all...] |
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
SwipeToDismissActivity.java | 98 public void onBind(ItemTouchViewHolder viewHolder) { 99 super.onBind(viewHolder); 100 viewHolder.actionButton.setVisibility(mPointerSwipeEnabled ? View.GONE : View.VISIBLE); 104 public void clearView(RecyclerView.ViewHolder viewHolder) { 105 super.clearView(viewHolder); 106 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder; 114 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { 115 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder; [all...] |
ItemTouchHelperActivity.java | 107 RecyclerView.ViewHolder viewHolder) { 108 return ItemTouchHelperActivity.this.getMovementFlags(recyclerView, viewHolder); 112 public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, 113 RecyclerView.ViewHolder target) { 114 mAdapter.move(viewHolder.getAdapterPosition(), target.getAdapterPosition()); 119 public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) { 120 mAdapter.delete(viewHolder.getAdapterPosition()) [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
RowHeaderPresenter.java | 29 * {@link #onSelectLevelChanged(ViewHolder)}. 74 * A ViewHolder for the RowHeaderPresenter. 76 public static class ViewHolder extends Presenter.ViewHolder { 81 public ViewHolder(View view) { 90 public Presenter.ViewHolder onCreateViewHolder(ViewGroup parent) { 94 ViewHolder viewHolder = new ViewHolder(headerView); 95 viewHolder.mOriginalTextColor = headerView.getCurrentTextColor() [all...] |
ItemBridgeAdapter.java | 32 * Interface for listening to ViewHolder operations. 37 public void onCreate(ViewHolder viewHolder) { 39 public void onBind(ViewHolder viewHolder) { 41 public void onUnbind(ViewHolder viewHolder) { 43 public void onAttachedToWindow(ViewHolder viewHolder) { 45 public void onDetachedFromWindow(ViewHolder viewHolder) [all...] |
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/ |
RichSettingsFragment.java | 118 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, 119 RowPresenter.ViewHolder rowViewHolder, Row row) { 130 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, 131 RowPresenter.ViewHolder rowViewHolder, Row row) { 137 public ViewHolder onCreateViewHolder(ViewGroup parent) { 145 return new ViewHolder(view); 149 public void onBindViewHolder(ViewHolder viewHolder, Object item) { 150 ((TextView) viewHolder.view).setText((String) item); 154 public void onUnbindViewHolder(ViewHolder viewHolder) [all...] |
/developers/build/prebuilts/gradle/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
DeviceScanActivity.java | 224 ViewHolder viewHolder; 228 viewHolder = new ViewHolder(); 229 viewHolder.deviceAddress = (TextView) view.findViewById(R.id.device_address); 230 viewHolder.deviceName = (TextView) view.findViewById(R.id.device_name); 231 view.setTag(viewHolder); 233 viewHolder = (ViewHolder) view.getTag(); 239 viewHolder.deviceName.setText(deviceName) [all...] |
/developers/samples/android/connectivity/bluetooth/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
DeviceScanActivity.java | 224 ViewHolder viewHolder; 228 viewHolder = new ViewHolder(); 229 viewHolder.deviceAddress = (TextView) view.findViewById(R.id.device_address); 230 viewHolder.deviceName = (TextView) view.findViewById(R.id.device_name); 231 view.setTag(viewHolder); 233 viewHolder = (ViewHolder) view.getTag(); 239 viewHolder.deviceName.setText(deviceName) [all...] |
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/ |
DeviceScanActivity.java | 224 ViewHolder viewHolder; 228 viewHolder = new ViewHolder(); 229 viewHolder.deviceAddress = (TextView) view.findViewById(R.id.device_address); 230 viewHolder.deviceName = (TextView) view.findViewById(R.id.device_name); 231 view.setTag(viewHolder); 233 viewHolder = (ViewHolder) view.getTag(); 239 viewHolder.deviceName.setText(deviceName) [all...] |
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/items/ |
RecyclerItemAdapter.java | 76 final ItemViewHolder viewHolder = new ItemViewHolder(view); 104 final IItem item = viewHolder.getItem(); 111 return viewHolder;
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
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...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/ |
ItemTouchHelperTest.java | 146 final RecyclerView.ViewHolder target = mRecyclerView 177 private List<RecyclerView.ViewHolder> mCleared = new ArrayList<RecyclerView.ViewHolder>(); 184 public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, 185 RecyclerView.ViewHolder target) { 186 mMoveRecordList.add(new MoveRecord(viewHolder, target)); 191 public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) { 192 mSwipeRecords.add(new SwipeRecord(viewHolder, direction)) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
AllAppsFastScrollHelper.java | 187 public void onBindView(AllAppsGridAdapter.ViewHolder holder) { 217 RecyclerView.ViewHolder viewHolder = mRv.getChildViewHolder((View) v); 218 int pos = (viewHolder != null) ? viewHolder.getPosition() : -1;
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
ViewInfoStore.java | 26 import static android.support.v7.widget.RecyclerView.ViewHolder; 47 final ArrayMap<ViewHolder, InfoRecord> mLayoutHolderMap = new ArrayMap<>(); 50 final LongSparseArray<ViewHolder> mOldChangedHolders = new LongSparseArray<>(); 62 * @param holder The ViewHolder whose information is being saved 65 void addToPreLayout(ViewHolder holder, ItemHolderInfo info) { 75 boolean isDisappearing(ViewHolder holder) { 81 * Finds the ItemHolderInfo for the given ViewHolder in preLayout list and removes it. 83 * @param vh The ViewHolder whose information is being queried 84 * @return The ItemHolderInfo for the given ViewHolder or null if it does not exist 87 ItemHolderInfo popFromPreLayout(ViewHolder vh) [all...] |