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.
  • Constructor Details

    • ViewHolder

      public ViewHolder(@NonNull View view)
      Constructor to initialize views from the supplied layout.
      Parameters:
      view - The view for this view holder.
  • Method Details

    • getRoot

      @NonNull public ViewGroup getRoot()
      Get the item view root.
      Returns:
      The item view root.
    • getThemePreview

      @NonNull public ThemePreview<T> getThemePreview()
      Get the theme preview to display the preset.
      Returns:
      The theme preview to display the preset.
    • getForeground

      @Nullable public ViewGroup getForeground()
      Get the foreground to provide the touch feedback.
      Returns:
      The foreground to provide the touch feedback.