Interface DynamicTintWidget
- All Known Implementing Classes:
ColorPalettePreference,DynamicAppThemePreference,DynamicBackgroundView,DynamicButton,DynamicCheckPreference,DynamicChip,DynamicColorCompact,DynamicColorMenu,DynamicColorPicker,DynamicColorPreference,DynamicColorView,DynamicDayThemePreference,DynamicDivider,DynamicDragIndicator,DynamicEmptyView,DynamicEmptyViewBig,DynamicForegroundLinearLayout,DynamicFrameLayout,DynamicHeader,DynamicHeaderDialog,DynamicHeaderImageView,DynamicImageButton,DynamicImagePreference,DynamicImageView,DynamicInfoView,DynamicInfoViewBig,DynamicInfoViewBigAuthor,DynamicItemView,DynamicItemViewDialog,DynamicLinearLayout,DynamicLinearLayoutCompat,DynamicLocalePreference,DynamicNavigationMenuItemView,DynamicNightThemePreference,DynamicPreference,DynamicRelativeLayout,DynamicRemoteThemePreference,DynamicRemoteThemePreview,DynamicScreenPreference,DynamicSeekBarCompact,DynamicSeekBarHue,DynamicSeekBarPreference,DynamicShadowDivider,DynamicSimplePreference,DynamicSliderCompact,DynamicSliderFloat,DynamicSliderHue,DynamicSliderPreference,DynamicSpinnerPreference,DynamicSpinnerView,DynamicSpinnerViewDialog,DynamicThemePreference,DynamicThemePreview,DynamicThemeVersionPreference,DynamicToastPreference,DynamicView,DynamicViewPager2Layout,ThemeAppShortcutsPreference,ThemeCheckPreference,ThemeNavigationBarPreference,ThemePreference,ThemePreview,ThemeReceiverPreference
public interface DynamicTintWidget
Interface to create dynamic widgets with tint options which can be used to tint their
background, etc. according to the
DynamicTheme.-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the borderless style is applied to this widget.booleanReturns whether to tint the background.voidsetStyleBorderless(boolean styleBorderless) Sets whether the borderless style is applied to this widget.voidsetTintBackground(boolean tintBackground) Set the background tinting option for this widget.
-
Method Details
-
isTintBackground
boolean isTintBackground()Returns whether to tint the background.- Returns:
trueto tint background according to the widget color.
-
setTintBackground
void setTintBackground(boolean tintBackground) Set the background tinting option for this widget.- Parameters:
tintBackground-trueto tint background according to the widget color.
-
isStyleBorderless
boolean isStyleBorderless()Returns whether the borderless style is applied to this widget.- Returns:
trueif the borderless style is applied to this widget.
-
setStyleBorderless
void setStyleBorderless(boolean styleBorderless) Sets whether the borderless style is applied to this widget.- Parameters:
styleBorderless-trueif the borderless style is applied to this widget.
-