Class DynamicPresetsAdapter.ViewHolder<T extends DynamicAppTheme>
java.lang.Object
androidx.recyclerview.widget.RecyclerView.ViewHolder
com.pranavpandey.android.dynamic.support.theme.adapter.DynamicPresetsAdapter.ViewHolder<T>
- Type Parameters:
T
- The type of the dynamic app theme this view holder will handle.
- Enclosing class:
- DynamicPresetsAdapter<T extends DynamicAppTheme>
public static class DynamicPresetsAdapter.ViewHolder<T extends DynamicAppTheme>
extends RecyclerView.ViewHolder
View holder class to hold the preset view.
-
Field Summary
Fields inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder
itemView
-
Constructor Summary
ConstructorDescriptionViewHolder
(View view) Constructor to initialize views from the supplied layout. -
Method Summary
Modifier and TypeMethodDescriptionGet the foreground to provide the touch feedback.getRoot()
Get the item view root.Get the theme preview to display the preset.Methods inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder
getAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
-
Constructor Details
-
ViewHolder
Constructor to initialize views from the supplied layout.- Parameters:
view
- The view for this view holder.
-
-
Method Details
-
getRoot
Get the item view root.- Returns:
- The item view root.
-
getThemePreview
Get the theme preview to display the preset.- Returns:
- The theme preview to display the preset.
-
getForeground
Get the foreground to provide the touch feedback.- Returns:
- The foreground to provide the touch feedback.
-