java.lang.Object
androidx.fragment.app.Fragment
com.pranavpandey.android.dynamic.support.fragment.DynamicFragment
com.pranavpandey.android.dynamic.support.theme.fragment.ThemeFragment<T>
Type Parameters:
T - The type of the dynamic app theme this fragment will handle.
All Implemented Interfaces:
ComponentCallbacks, SharedPreferences.OnSharedPreferenceChangeListener, View.OnCreateContextMenuListener, ActivityResultCaller, MenuProvider, HasDefaultViewModelProviderFactory, LifecycleOwner, ViewModelStoreOwner, androidx.savedstate.SavedStateRegistryOwner, DynamicLifecycle, DynamicSearchListener, DynamicTransitionListener, ThemeListener<T>, ThemeListener.Export<T>, ThemeListener.Import<T>, ThemeListener.Value, DynamicProductFlavor
Direct Known Subclasses:
DynamicRemoteThemeFragment, DynamicThemeFragment

public abstract class ThemeFragment<T extends DynamicAppTheme> extends DynamicFragment implements ThemeListener.Value, ThemeListener.Import<T>, ThemeListener.Export<T>
Base theme fragment to provide theme editing functionality.

Extend this fragment to implement theme attributes according to the requirements.

  • Field Details

    • mDynamicTheme

      protected T extends DynamicAppTheme mDynamicTheme
      Dynamic app theme used by this fragment.
    • mDynamicThemeDefault

      protected T extends DynamicAppTheme mDynamicThemeDefault
      Default dynamic app theme used by this fragment.
    • mThemeExported

      protected Uri mThemeExported
      Temporary file URI to store the exported theme.
    • mSettingsChanged

      protected boolean mSettingsChanged
      true if the settings have been changed.
    • mThemePreview

      protected ThemePreview<T extends DynamicAppTheme> mThemePreview
      Theme preview used by this fragment.
    • mProgressDialog

      protected DynamicDialogFragment mProgressDialog
      Dialog fragment to show the progress.
  • Constructor Details

    • ThemeFragment

      public ThemeFragment()
  • Method Details