public class RsRecyclerViewHolder<VM extends IAndroidViewModel>
extends RecyclerView.ViewHolder
| Constructor and Description |
|---|
RsRecyclerViewHolder(android.content.Context context)
Creates an instance with a
getTitleTextView() |
RsRecyclerViewHolder(android.view.View view)
Creates an instance with
view |
| Modifier and Type | Method and Description |
|---|---|
android.widget.TextView |
getTitleTextView() |
android.view.View |
getView() |
|
getViewBinder() |
VM |
getViewModel() |
protected |
onCreateViewBinder() |
protected void |
onViewCreated(android.view.View view)
You may override this method and use
View.findViewById(int). |
|
onViewRecycled() |
void |
presentError(IViewModelException error) |
void |
presentLoading(boolean loading) |
void |
setTitle(java.lang.CharSequence title) |
void |
setViewModel(VM viewModel) |
public RsRecyclerViewHolder(android.content.Context context)
getTitleTextView()public RsRecyclerViewHolder(android.view.View view)
viewview - View used in this receiver.
Your view may contain a TextView with id R.id.titleprotected void onViewCreated(android.view.View view)
View.findViewById(int).protectedonCreateViewBinder()
public void setViewModel(VM viewModel)
public VM getViewModel()
public final android.view.View getView()
public android.widget.TextView getTitleTextView()
publicgetViewBinder()
publiconViewRecycled()
public void setTitle(java.lang.CharSequence title)
public void presentLoading(boolean loading)
public void presentError(IViewModelException error)