Class DynamicRemoteThemePreview

All Implemented Interfaces:
Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback, ViewManager, ViewParent, BaseWidget, DynamicTintWidget, DynamicWidget

public class DynamicRemoteThemePreview extends ThemePreview<DynamicRemoteTheme>
A ThemePreview to show the DynamicRemoteTheme preview according to the selected values.
  • Constructor Details

  • Method Details

    • getLayoutRes

      @LayoutRes protected int getLayoutRes()
      Description copied from class: DynamicView
      This method will be called to get the layout resource for this view.

      Supply the view layout resource here to do the inflation.

      Specified by:
      getLayoutRes in class DynamicView
      Returns:
      The layout resource for this view.
    • getDefaultTheme

      @NonNull public DynamicRemoteTheme getDefaultTheme()
      Description copied from class: ThemePreview
      Returns the default dynamic theme used by this preview.
      Specified by:
      getDefaultTheme in class ThemePreview<DynamicRemoteTheme>
      Returns:
      The default dynamic theme used by this preview.
    • onInflate

      protected void onInflate()
      Description copied from class: DynamicView
      This method will be called after loading the attributed.

      Initialize the view layout here.

      Specified by:
      onInflate in class DynamicView
    • onUpdate

      protected void onUpdate()
      Description copied from class: DynamicView
      This method will be called whenever there is a change in the view attributes or parameters.

      It is better to do any real time calculation like updating the value string or checked state in this method.

      Specified by:
      onUpdate in class DynamicView
    • getActionView

      @NonNull public View getActionView()
      Description copied from class: ThemePreview
      Returns the action view used by this preview.
      Specified by:
      getActionView in class ThemePreview<DynamicRemoteTheme>
      Returns:
      The action view used by this preview.