/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
BaseOnItemViewClickedListener.java | 28 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, 29 RowPresenter.ViewHolder rowViewHolder, T row);
|
BaseOnItemViewSelectedListener.java | 47 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, 48 RowPresenter.ViewHolder rowViewHolder, T row);
|
MediaItemActionPresenter.java | 35 static class ViewHolder extends Presenter.ViewHolder { 38 public ViewHolder(View view) { 49 public Presenter.ViewHolder onCreateViewHolder(ViewGroup parent) { 54 return new ViewHolder(actionView); 58 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { 59 ViewHolder actionViewHolder = (ViewHolder) viewHolder; [all...] |
RowPresenter.java | 24 * {@link ViewHolder#getRow()} returns null. 28 * {@link RowPresenter.ViewHolder} and override {@link #createRowViewHolder(ViewGroup)} 29 * and {@link #initializeRowViewHolder(ViewHolder)}. The subclass must use layout id 40 * A row is selected via {@link #setRowViewSelected(Presenter.ViewHolder, boolean)}. The event 44 * Subclasses of RowPresenter may override {@link #onRowViewSelected(ViewHolder, boolean)}. 47 * A row is expanded to full height via {@link #setRowViewExpanded(Presenter.ViewHolder, boolean)} 52 * Subclasses of RowPresenter may override {@link #onRowViewExpanded(ViewHolder, boolean)}. 69 * Application should call {@link RowPresenter.ViewHolder#setActivated(boolean)} to change 85 * {@link #setSelectLevel(Presenter.ViewHolder, float)} with float value between 89 * {@link #onSelectLevelChanged(ViewHolder)} to apply a different selection effect [all...] |
AbstractMediaListHeaderPresenter.java | 28 * The presenter creates a {@link ViewHolder} for the TextView holding the header text. 31 * #onBindMediaListHeaderViewHolder(ViewHolder, Object)} in order to bind their header text to 46 * The ViewHolder for the {@link AbstractMediaListHeaderPresenter}. It references the TextView 49 public static class ViewHolder extends RowPresenter.ViewHolder { 53 public ViewHolder(View view) { 93 protected RowPresenter.ViewHolder createRowViewHolder(ViewGroup parent) { 99 ViewHolder vh = new ViewHolder(view); 107 protected void onBindRowViewHolder(RowPresenter.ViewHolder vh, Object item) [all...] |
Presenter.java | 30 * Presenters should be stateless. Presenters typically extend {@link ViewHolder} to store all 41 * // This class does not need a custom ViewHolder, since it does not use 45 * public ViewHolder onCreateViewHolder(ViewGroup parent) { 46 * return new ViewHolder(new TextView(parent.getContext())); 50 * public void onBindViewHolder(ViewHolder viewHolder, Object item) { 52 * TextView textView = (TextView) viewHolder.mView; 58 * public void onUnbindViewHolder(ViewHolder viewHolder) { 59 * // Nothing to unbind for TextView, but if this viewHolder ha [all...] |
DetailsOverviewLogoPresenter.java | 23 * call {@link FullWidthDetailsOverviewRowPresenter#notifyOnBindLogo(FullWidthDetailsOverviewRowPresenter.ViewHolder)} 24 * whenever {@link #isBoundToImage(ViewHolder, DetailsOverviewRow)} turned to true so that activity 30 * ViewHolder for Logo view of DetailsOverviewRow. 32 public static class ViewHolder extends Presenter.ViewHolder { 35 protected FullWidthDetailsOverviewRowPresenter.ViewHolder mParentViewHolder; 38 public ViewHolder(View view) { 46 public FullWidthDetailsOverviewRowPresenter.ViewHolder getParentViewHolder() { 53 * {@link DetailsOverviewLogoPresenter#onBindViewHolder(Presenter.ViewHolder, Object)} 57 * @see DetailsOverviewLogoPresenter#onBindViewHolder(Presenter.ViewHolder, Object [all...] |
DividerPresenter.java | 42 public Presenter.ViewHolder onCreateViewHolder(ViewGroup parent) { 46 return new ViewHolder(headerView); 50 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { 54 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {
|
ViewHolderTask.java | 19 * Interface for schedule task on a ViewHolder. 22 public void run(RecyclerView.ViewHolder viewHolder);
|
InvisibleRowPresenter.java | 30 protected ViewHolder createRowViewHolder(ViewGroup parent) { 33 return new ViewHolder(root);
|
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...] |
ListRowPresenter.java | 42 * {@link #onSelectLevelChanged(RowPresenter.ViewHolder)}. 57 * ViewHolder for the ListRowPresenter. 59 public static class ViewHolder extends RowPresenter.ViewHolder { 69 public ViewHolder(View rootView, HorizontalGridView gridView, ListRowPresenter p) { 80 * Gets ListRowPresenter that creates this ViewHolder. 81 * @return ListRowPresenter that creates this ViewHolder. 112 * Gets ViewHolder at a position in adapter. Returns null if the item does not exist 115 * @return ViewHolder bounds to the item. 117 public Presenter.ViewHolder getItemViewHolder(int position) [all...] |
VerticalGridPresenter.java | 35 protected void onCreate(ItemBridgeAdapter.ViewHolder viewHolder) { 36 if (viewHolder.itemView instanceof ViewGroup) { 37 TransitionHelper.setTransitionGroup((ViewGroup) viewHolder.itemView, 41 mShadowOverlayHelper.onViewCreated(viewHolder.itemView); 46 public void onBind(final ItemBridgeAdapter.ViewHolder itemViewHolder) { 64 public void onUnbind(ItemBridgeAdapter.ViewHolder viewHolder) { 66 viewHolder.mHolder.view.setOnClickListener(null); 71 public void onAttachedToWindow(ItemBridgeAdapter.ViewHolder viewHolder) [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
DefaultItemAnimatorTest.java | 55 List<RecyclerView.ViewHolder> mExpectedItems = new ArrayList<RecyclerView.ViewHolder>(); 57 Set<RecyclerView.ViewHolder> mRemoveFinished = new HashSet<RecyclerView.ViewHolder>(); 58 Set<RecyclerView.ViewHolder> mAddFinished = new HashSet<RecyclerView.ViewHolder>(); 59 Set<RecyclerView.ViewHolder> mMoveFinished = new HashSet<RecyclerView.ViewHolder>(); 60 Set<RecyclerView.ViewHolder> mChangeFinished = new HashSet<RecyclerView.ViewHolder>(); [all...] |
/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/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/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...] |
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
RvArrayAdapter.java | 24 public class RvArrayAdapter extends RecyclerView.Adapter<RvArrayAdapter.ViewHolder> { 28 public static class ViewHolder extends RecyclerView.ViewHolder { 31 public ViewHolder(View v) { 46 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { 52 return new ViewHolder(v); 56 public void onBindViewHolder(ViewHolder viewHolder, final int position) { 57 viewHolder.getTextView().setText(mDataSet[position]);
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
SimpleItemAnimator.java | 6 import android.support.v7.widget.RecyclerView.ViewHolder; 46 * {@link #animateChange(ViewHolder, ViewHolder, int, int, int, int)} implementation. 53 * {@link #animateChange(ViewHolder, ViewHolder, int, int, int, 65 * @return True if change animations are not supported or the ViewHolder is invalid, 71 public boolean canReuseUpdatedViewHolder(@NonNull RecyclerView.ViewHolder viewHolder) { 72 return !mSupportsChangeAnimations || viewHolder.isInvalid(); 76 public boolean animateDisappearance(@NonNull ViewHolder viewHolder [all...] |
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
StringPresenter.java | 24 public ViewHolder onCreateViewHolder(ViewGroup parent) { 31 return new ViewHolder(tv); 34 public void onBindViewHolder(ViewHolder viewHolder, Object item) { 36 ((TextView) viewHolder.view).setText(item.toString()); 39 public void onUnbindViewHolder(ViewHolder viewHolder) {
|
BrowseAnimationFragment.java | 93 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, 94 RowPresenter.ViewHolder rowViewHolder, Row row) { 108 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, 109 RowPresenter.ViewHolder rowViewHolder, Row row) { 123 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, 124 RowPresenter.ViewHolder rowViewHolder, Row row) { 136 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, 137 RowPresenter.ViewHolder rowViewHolder, Row row) { 146 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, 147 RowPresenter.ViewHolder rowViewHolder, Row row) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
WidgetsRowViewHolder.java | 18 import android.support.v7.widget.RecyclerView.ViewHolder; 24 public class WidgetsRowViewHolder extends ViewHolder {
|