Home
last modified time | relevance | path

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

/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/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/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/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/
DCustomRecyclerAdapter.java75 public void onBindViewHolder(ViewHolder viewHolder, final int position) { in onBindViewHolder() argument
78 viewHolder.mTextView.setOnClickListener(new View.OnClickListener() { in onBindViewHolder()
87 viewHolder.mTextView.setText(mDataSet[position]); 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/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DComplicationSimpleConfigActivity.java81 public void onClick(WearableListView.ViewHolder viewHolder) { in onClick() argument
86 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()