public abstract class LayoutPresenter
extends java.lang.Object
RepositoryAdapter.| Constructor and Description |
|---|
LayoutPresenter() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
bind(android.view.View view)
Updates the view to present.
|
abstract int |
getLayoutResId()
Returns the layout resource ID to inflate.
|
void |
recycle(android.view.View view)
Called when the given
view is recycled. |
@LayoutRes public abstract int getLayoutResId()
public abstract void bind(@NonNull
android.view.View view)
getLayoutResId(), but may have been previously updated with a different presenter.
Therefore, implementation should take care of resetting the view state.view - The view to present.public void recycle(@NonNull
android.view.View view)
view is recycled.view - The view to recycle.