/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
QueueAdapter.java | 45 private static class ViewHolder { 52 ViewHolder holder; 57 holder = new ViewHolder(); 63 holder = (ViewHolder) convertView.getTag();
|
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
QueueAdapter.java | 45 private static class ViewHolder { 52 ViewHolder holder; 57 holder = new ViewHolder(); 63 holder = (ViewHolder) convertView.getTag();
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
QueueAdapter.java | 45 private static class ViewHolder { 52 ViewHolder holder; 57 holder = new ViewHolder(); 63 holder = (ViewHolder) convertView.getTag();
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
Presenter.java | 31 * // This class does not need a custom ViewHolder, since it does not use 35 * public ViewHolder onCreateViewHolder(ViewGroup parent) { 36 * return new ViewHolder(new TextView(parent.getContext())); 40 * public void onBindViewHolder(ViewHolder viewHolder, Object item) { 42 * TextView textView = (TextView) viewHolder.mView; 48 * public void onUnbindViewHolder(ViewHolder viewHolder) { 49 * // Nothing to unbind for TextView, but if this viewHolder had 57 * ViewHolder can be subclassed and used to cache any view accessors neede [all...] |
/developers/build/prebuilts/gradle/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/ |
MeatAdapter.java | 69 final ViewHolder holder; 72 holder = new ViewHolder(); 79 holder = (ViewHolder) view.getTag(); 89 ViewHolder holder = (ViewHolder) view.getTag(); 97 private static class ViewHolder {
|
/developers/build/prebuilts/gradle/AppUsageStatistics/Application/src/main/java/com/example/android/appusagestatistics/ |
UsageListAdapter.java | 35 public class UsageListAdapter extends RecyclerView.Adapter<UsageListAdapter.ViewHolder> { 41 * Provide a reference to the type of views that you are using (custom ViewHolder) 43 public static class ViewHolder extends RecyclerView.ViewHolder { 48 public ViewHolder(View v) { 72 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 75 return new ViewHolder(v); 79 public void onBindViewHolder(ViewHolder viewHolder, final int position) { 80 viewHolder.getPackageName().setText [all...] |
/developers/build/prebuilts/gradle/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/ |
DirectoryEntryAdapter.java | 31 public class DirectoryEntryAdapter extends RecyclerView.Adapter<DirectoryEntryAdapter.ViewHolder> { 37 * Provide a reference to the type of views that you are using (custom ViewHolder) 39 public static class ViewHolder extends RecyclerView.ViewHolder { 44 public ViewHolder(View v) { 74 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 77 return new ViewHolder(v); 81 public void onBindViewHolder(ViewHolder viewHolder, final int position) { 82 viewHolder.getFileName().setText(mDirectoryEntries.get(position).fileName) [all...] |
/developers/build/prebuilts/gradle/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/ |
MeatAdapter.java | 54 final ViewHolder holder; 57 holder = new ViewHolder(); 64 holder = (ViewHolder) view.getTag(); 70 public void bindView(ViewHolder holder, int position) { 76 public static class ViewHolder {
|
/developers/build/prebuilts/gradle/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/ |
PlanetAdapter.java | 30 public class PlanetAdapter extends RecyclerView.Adapter<PlanetAdapter.ViewHolder> { 42 * Custom viewholder for our planet views. 44 public static class ViewHolder extends RecyclerView.ViewHolder { 47 public ViewHolder(TextView v) { 59 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 63 return new ViewHolder(tv); 67 public void onBindViewHolder(ViewHolder holder, final int position) {
|
/developers/build/prebuilts/gradle/RecyclerView/Application/src/main/java/com/example/android/recyclerview/ |
CustomAdapter.java | 30 public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder> { 37 * Provide a reference to the type of views that you are using (custom ViewHolder) 39 public static class ViewHolder extends RecyclerView.ViewHolder { 42 public ViewHolder(View v) { 44 // Define click listener for the ViewHolder's View. 72 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 77 return new ViewHolder(v); 84 public void onBindViewHolder(ViewHolder viewHolder, final int position) [all...] |
/developers/samples/android/content/documentsUi/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/ |
DirectoryEntryAdapter.java | 31 public class DirectoryEntryAdapter extends RecyclerView.Adapter<DirectoryEntryAdapter.ViewHolder> { 37 * Provide a reference to the type of views that you are using (custom ViewHolder) 39 public static class ViewHolder extends RecyclerView.ViewHolder { 44 public ViewHolder(View v) { 74 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 77 return new ViewHolder(v); 81 public void onBindViewHolder(ViewHolder viewHolder, final int position) { 82 viewHolder.getFileName().setText(mDirectoryEntries.get(position).fileName) [all...] |
/developers/samples/android/system/AppUsageStatistics/Application/src/main/java/com/example/android/appusagestatistics/ |
UsageListAdapter.java | 35 public class UsageListAdapter extends RecyclerView.Adapter<UsageListAdapter.ViewHolder> { 41 * Provide a reference to the type of views that you are using (custom ViewHolder) 43 public static class ViewHolder extends RecyclerView.ViewHolder { 48 public ViewHolder(View v) { 72 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 75 return new ViewHolder(v); 79 public void onBindViewHolder(ViewHolder viewHolder, final int position) { 80 viewHolder.getPackageName().setText [all...] |
/developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/ |
MeatAdapter.java | 69 final ViewHolder holder; 72 holder = new ViewHolder(); 79 holder = (ViewHolder) view.getTag(); 89 ViewHolder holder = (ViewHolder) view.getTag(); 97 private static class ViewHolder {
|
/developers/samples/android/ui/transition/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/ |
MeatAdapter.java | 54 final ViewHolder holder; 57 holder = new ViewHolder(); 64 holder = (ViewHolder) view.getTag(); 70 public void bindView(ViewHolder holder, int position) { 76 public static class ViewHolder {
|
/developers/samples/android/ui/views/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/ |
PlanetAdapter.java | 30 public class PlanetAdapter extends RecyclerView.Adapter<PlanetAdapter.ViewHolder> { 42 * Custom viewholder for our planet views. 44 public static class ViewHolder extends RecyclerView.ViewHolder { 47 public ViewHolder(TextView v) { 59 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 63 return new ViewHolder(tv); 67 public void onBindViewHolder(ViewHolder holder, final int position) {
|
/developers/samples/android/ui/views/RecyclerView/Application/src/main/java/com/example/android/recyclerview/ |
CustomAdapter.java | 30 public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder> { 37 * Provide a reference to the type of views that you are using (custom ViewHolder) 39 public static class ViewHolder extends RecyclerView.ViewHolder { 42 public ViewHolder(View v) { 44 // Define click listener for the ViewHolder's View. 72 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 77 return new ViewHolder(v); 84 public void onBindViewHolder(ViewHolder viewHolder, final int position) [all...] |
/development/samples/browseable/AdapterTransition/src/com.example.android.adaptertransition/ |
MeatAdapter.java | 69 final ViewHolder holder; 72 holder = new ViewHolder(); 79 holder = (ViewHolder) view.getTag(); 89 ViewHolder holder = (ViewHolder) view.getTag(); 97 private static class ViewHolder {
|
/development/samples/browseable/FragmentTransition/src/com.example.android.fragmenttransition/ |
MeatAdapter.java | 54 final ViewHolder holder; 57 holder = new ViewHolder(); 64 holder = (ViewHolder) view.getTag(); 70 public void bindView(ViewHolder holder, int position) { 76 public static class ViewHolder {
|
/development/samples/browseable/NavigationDrawer/src/com.example.android.navigationdrawer/ |
PlanetAdapter.java | 30 public class PlanetAdapter extends RecyclerView.Adapter<PlanetAdapter.ViewHolder> { 42 * Custom viewholder for our planet views. 44 public static class ViewHolder extends RecyclerView.ViewHolder { 47 public ViewHolder(TextView v) { 59 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 63 return new ViewHolder(tv); 67 public void onBindViewHolder(ViewHolder holder, final int position) {
|
/development/samples/browseable/RecyclerView/src/com.example.android.recyclerview/ |
CustomAdapter.java | 30 public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder> { 37 * Provide a reference to the type of views that you are using (custom ViewHolder) 39 public static class ViewHolder extends RecyclerView.ViewHolder { 42 public ViewHolder(View v) { 44 // Define click listener for the ViewHolder's View. 72 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 77 return new ViewHolder(v); 84 public void onBindViewHolder(ViewHolder viewHolder, final int position) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List14.java | 38 * - It uses the ViewHolder pattern to avoid calling findViewById() when it is not necessary 40 * The ViewHolder pattern consists in storing a data structure in the tag of the view returned by 98 // A ViewHolder keeps references to children views to avoid unneccessary calls 100 ViewHolder holder; 108 // Creates a ViewHolder and store references to the two children views 110 holder = new ViewHolder(); 116 // Get the ViewHolder back to get fast access to the TextView 118 holder = (ViewHolder) convertView.getTag(); 128 static class ViewHolder {
|
/packages/apps/Mms/src/com/android/mms/ui/ |
IconListAdapter.java | 38 private ViewHolder mViewHolder; 40 static class ViewHolder { 45 public ViewHolder(View view) { 76 mViewHolder = new ViewHolder(view); 80 mViewHolder = (ViewHolder) view.getTag();
|
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
DialogAdapter.java | 25 public class DialogAdapter extends RecyclerView.Adapter<DialogAdapter.ViewHolder> { 44 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 47 final ViewHolder vh = new ViewHolder(v); 76 public void onBindViewHolder(ViewHolder holder, int position) { 83 public void onViewRecycled(ViewHolder holder) { 92 public static class ViewHolder extends RecyclerView.ViewHolder { 96 public ViewHolder(View itemView) {
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
CardPresenter.java | 43 static class ViewHolder extends Presenter.ViewHolder { 49 public ViewHolder(View view) { 78 public ViewHolder onCreateViewHolder(ViewGroup parent) { 86 return new ViewHolder(cardView); 90 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { 92 ((ViewHolder) viewHolder).setMovie(movie); 96 ((ViewHolder) viewHolder).mCardView.setTitleText(movie.getTitle()) [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/adapter/ |
SimpleStringAdapter.java | 29 public class SimpleStringAdapter extends RecyclerView.Adapter<SimpleStringAdapter.ViewHolder> { 35 public static class ViewHolder extends RecyclerView.ViewHolder { 39 public ViewHolder(TextView v) { 74 public SimpleStringAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 75 final ViewHolder h = new ViewHolder(new TextView(parent.getContext())); 92 public void onBindViewHolder(ViewHolder holder, int position) {
|