-
public final class ViewExtensionsKt
-
-
Field Summary
Fields Modifier and Type Field Description private static IntegermarginTopValue
-
Method Summary
Modifier and Type Method Description IntegergetMarginTopValue()voidsetMarginTopValue(Integer marginTopValue)final static UnitupdateEnabled(View $self, Boolean enable, Double alphaValue)final static <T extends View> Lazy<T>viewId(View $self, @IdRes() Integer id)final static <T extends View> TfindParent(View $self)final static <T extends View> TfindParentOf(View $self, KClass<T> clazz)final static BooleanhideKeyboard(View $self)final static BooleanshowKeyboard(View $self)final static UnitupdateBottomMargin(View $self, Integer value)Only update margin if it has changed. final static UnitupdateTopMargin(View $self, Integer value)final static UnitupdateSideMargin(View $self, Integer value)final static <ERROR CLASS>updateHeight(View $self, Integer value)final static UnitapplyTopWindowInsets(View $self)final static UnitapplyBottomWindowInsets(View $self)final static UnitdoOnApplyWindowInsets(View $self, Function3<View, WindowInsetsCompat, ViewPaddingState, Unit> onApply)final static UnitrequestApplyInsetsWhenAttached(View $self)-
-
Method Detail
-
getMarginTopValue
Integer getMarginTopValue()
-
setMarginTopValue
void setMarginTopValue(Integer marginTopValue)
-
updateEnabled
final static Unit updateEnabled(View $self, Boolean enable, Double alphaValue)
-
findParent
final static <T extends View> T findParent(View $self)
-
findParentOf
final static <T extends View> T findParentOf(View $self, KClass<T> clazz)
-
hideKeyboard
final static Boolean hideKeyboard(View $self)
-
showKeyboard
final static Boolean showKeyboard(View $self)
-
updateBottomMargin
final static Unit updateBottomMargin(View $self, Integer value)
Only update margin if it has changed. This avoid moving the FAB.
-
updateTopMargin
final static Unit updateTopMargin(View $self, Integer value)
-
updateSideMargin
final static Unit updateSideMargin(View $self, Integer value)
-
updateHeight
final static <ERROR CLASS> updateHeight(View $self, Integer value)
-
applyTopWindowInsets
final static Unit applyTopWindowInsets(View $self)
-
applyBottomWindowInsets
final static Unit applyBottomWindowInsets(View $self)
-
doOnApplyWindowInsets
final static Unit doOnApplyWindowInsets(View $self, Function3<View, WindowInsetsCompat, ViewPaddingState, Unit> onApply)
-
requestApplyInsetsWhenAttached
final static Unit requestApplyInsetsWhenAttached(View $self)
-
-
-
-