/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) {
|
/developers/build/prebuilts/gradle/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/ |
CustomRecyclerAdapter.java | 33 WearableRecyclerView.Adapter<CustomRecyclerAdapter.ViewHolder> { 48 public static class ViewHolder extends WearableRecyclerView.ViewHolder { 52 public ViewHolder(View view) { 67 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 71 return new ViewHolder(view); 75 public void onBindViewHolder(ViewHolder viewHolder, final int position) { 78 viewHolder.mTextView.setOnClickListener(new View.OnClickListener() { 87 viewHolder.mTextView.setText(mDataSet[position]) [all...] |
/developers/samples/android/wearable/wear/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/ |
CustomRecyclerAdapter.java | 34 WearableRecyclerView.Adapter<CustomRecyclerAdapter.ViewHolder> { 49 public static class ViewHolder extends WearableRecyclerView.ViewHolder { 53 public ViewHolder(View view) { 68 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 72 return new ViewHolder(view); 76 public void onBindViewHolder(ViewHolder viewHolder, final int position) { 79 viewHolder.mTextView.setOnClickListener(new View.OnClickListener() { 88 viewHolder.mTextView.setText(mDataSet[position]) [all...] |
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/ |
CustomRecyclerAdapter.java | 33 WearableRecyclerView.Adapter<CustomRecyclerAdapter.ViewHolder> { 48 public static class ViewHolder extends WearableRecyclerView.ViewHolder { 52 public ViewHolder(View view) { 67 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 71 return new ViewHolder(view); 75 public void onBindViewHolder(ViewHolder viewHolder, final int position) { 78 viewHolder.mTextView.setOnClickListener(new View.OnClickListener() { 87 viewHolder.mTextView.setText(mDataSet[position]) [all...] |
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/config/ |
ColorSelectionRecyclerViewAdapter.java | 40 RecyclerView.Adapter<RecyclerView.ViewHolder> { 55 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 58 RecyclerView.ViewHolder viewHolder = 61 return viewHolder; 65 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) { 69 ColorViewHolder colorViewHolder = (ColorViewHolder) viewHolder; 82 public class ColorViewHolder extends RecyclerView.ViewHolder
|
AnalogComplicationConfigRecyclerViewAdapter.java | 80 extends RecyclerView.Adapter<RecyclerView.ViewHolder> { 160 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 163 RecyclerView.ViewHolder viewHolder = null; 176 viewHolder = mPreviewAndComplicationsViewHolder; 180 viewHolder = 190 viewHolder = 197 viewHolder = 207 viewHolder = 217 return viewHolder; [all...] |
/developers/build/prebuilts/gradle/WifiRttScan/Application/src/main/java/com/example/android/wifirttscan/ |
MyAdapter.java | 20 import androidx.recyclerview.widget.RecyclerView.ViewHolder; 32 public class MyAdapter extends RecyclerView.Adapter<ViewHolder> { 47 public static class ViewHolderHeader extends RecyclerView.ViewHolder { 53 public class ViewHolderItem extends RecyclerView.ViewHolder implements View.OnClickListener { 83 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 85 ViewHolder viewHolder; 88 viewHolder = 94 viewHolder = 102 return viewHolder; [all...] |
/developers/samples/android/connectivity/wifirtt/WifiRttScan/Application/src/main/java/com/example/android/wifirttscan/ |
MyAdapter.java | 20 import androidx.recyclerview.widget.RecyclerView.ViewHolder; 32 public class MyAdapter extends RecyclerView.Adapter<ViewHolder> { 47 public static class ViewHolderHeader extends RecyclerView.ViewHolder { 53 public class ViewHolderItem extends RecyclerView.ViewHolder implements View.OnClickListener { 83 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 85 ViewHolder viewHolder; 88 viewHolder = 94 viewHolder = 102 return viewHolder; [all...] |
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/config/ |
ColorSelectionRecyclerViewAdapter.java | 41 RecyclerView.Adapter<RecyclerView.ViewHolder> { 56 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 59 RecyclerView.ViewHolder viewHolder = 62 return viewHolder; 66 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) { 70 ColorViewHolder colorViewHolder = (ColorViewHolder) viewHolder; 83 public class ColorViewHolder extends RecyclerView.ViewHolder
|
AnalogComplicationConfigRecyclerViewAdapter.java | 81 extends RecyclerView.Adapter<RecyclerView.ViewHolder> { 161 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 164 RecyclerView.ViewHolder viewHolder = null; 177 viewHolder = mPreviewAndComplicationsViewHolder; 181 viewHolder = 191 viewHolder = 198 viewHolder = 208 viewHolder = 218 return 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...] |
/developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
CustomRecyclerAdapter.java | 32 import androidx.recyclerview.widget.RecyclerView.ViewHolder; 44 * <p>Provides a custom {@link ViewHolder} for each unique row associated with a feature from the 46 * capabilities). Data for each {@link ViewHolder} populated by {@link DataLayerScreen}. 48 public class CustomRecyclerAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { 59 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 62 RecyclerView.ViewHolder viewHolder = null; 66 viewHolder = 76 viewHolder = 86 viewHolder [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...] |
/external/setupdesign/main/src/com/google/android/setupdesign/items/ |
RecyclerItemAdapter.java | 105 final ItemViewHolder viewHolder = new ItemViewHolder(view); 153 final IItem item = viewHolder.getItem(); 160 return viewHolder;
|