-
- All Implemented Interfaces:
public final class ViewKt
-
-
Method Summary
Modifier and Type Method Description final static UnitfadeIn(View $self, Long duration, Function0<Unit> complete)final static UnitfadeOut(View $self, Long duration, Integer visibility, Function0<Unit> complete)final static UnitapplyBottomDivider(View $self, ThemeProvider themeProvider)Apply theme / visibility for Bottom / Menu divider final static UnitapplyDivider(View $self, ThemeProvider themeProvider, Boolean visible)Apply theme / visibility for View divider final static UnitapplyPadding(View $self, @DimenRes() Integer start, @DimenRes() Integer top, @DimenRes() Integer end, @DimenRes() Integer bottom)Apply padding programmatically This function is used for CTV buttons: from flutter app, the padding is only working if set programmatically or globally final static Unitdisable(View $self)Disable and fade view final static Unitenable(View $self)Enable and revert view alpha -
-
Method Detail
-
fadeOut
final static Unit fadeOut(View $self, Long duration, Integer visibility, Function0<Unit> complete)
-
applyBottomDivider
final static Unit applyBottomDivider(View $self, ThemeProvider themeProvider)
Apply theme / visibility for Bottom / Menu divider
- Parameters:
themeProvider- as ThemeProvider for setting separator background color
-
applyDivider
final static Unit applyDivider(View $self, ThemeProvider themeProvider, Boolean visible)
Apply theme / visibility for View divider
- Parameters:
themeProvider- as ThemeProvider for setting separator background colorvisible- true if separator should be visible (true by default)
-
applyPadding
final static Unit applyPadding(View $self, @DimenRes() Integer start, @DimenRes() Integer top, @DimenRes() Integer end, @DimenRes() Integer bottom)
Apply padding programmatically This function is used for CTV buttons: from flutter app, the padding is only working if set programmatically or globally
-
-
-
-