Package-level declarations
Types
Used as the listener parameter type for the onSubmit binding adapter.
Functions
Convert a LocalTime to a StringResolver. This can be used, for example, to populate a TextView with the time, so it can be used as a clock.
Sets which child view will be displayed if childIndex is not null
. If childIndex is null
, the call is ignored.
Sets animatedSrc as the content of this ImageView, and start the animation of the drawable if supported.
Sets drawableResolver as the background image without manually resolving the value through the context.
Sets the vertical bias for the View inside a ConstraintLayout to the give bias, if bias is not null
. If bias is null
, the vertical bias constraint is restored to its initial value.
Sets the constraint width for the View inside a ConstraintLayout to the given width. If width is null
, the width is set to ConstraintLayout.LayoutParams.MATCH_CONSTRAINT.
Sets a Drawable with a cross-fading transition of durationMs duration. If durationMs is null
, equal or less than 0
the drawable will be set immediately without cross-fading transition.
Sets a DrawableResolver with a cross-fading transition of durationMs duration. If durationMs is null
, equal or less than 0
the drawableResolver will be set immediately without cross-fading transition.
Pass a list of StringResolvers to the Spinner without manually resolving the values through the context. Entries in the list which are not StringResolvers will be passed without trying to resolve the value. Optionally allows to select an item of the Spinner at position.
Sets drawableResolver as the foreground image without manually resolving the value through the context.
Sets the image content from imageSource. When imageSource is a LocalImageSource, this methods behaves as ImageView.setAnimatedSrc. When imageSource is a RemoteImageSource, this method acts like ImageView.setRemoteImage.
Sets the ViewGroup.LayoutParams.height of the View inside a ViewGroup to the given layoutHeightPx. The fractional part, if any, is rounded down towards zero. If layoutHeightPx is null
, the layout height is set to 0.
Sets the ViewGroup.LayoutParams.height of the View inside a ViewGroup to the given layoutHeightPx. If layoutHeightPx is null
, the layout height is set to 0.
Sets the ViewGroup.MarginLayoutParams.bottomMargin of the View to the given margin. If margin is null
, the bottom margin is set to 0.
Sets the ViewGroup.MarginLayoutParams.leftMargin and ViewGroup.MarginLayoutParams.rightMargin of the View to the given margin. If margin is null
, the left and right margins are set to 0.
Sets the ViewGroup.MarginLayoutParams.leftMargin of the View to the given margin. If margin is null
, the left margin is set to 0.
Sets the ViewGroup.MarginLayoutParams.rightMargin of the View to the given margin. If margin is null
, the right margin is set to 0.
Sets the ViewGroup.MarginLayoutParams.topMargin of the View to the given margin. If margin is null
, the top margin is set to 0.
Sets the ViewGroup.MarginLayoutParams.topMargin and ViewGroup.MarginLayoutParams.bottomMargin of the View to the given margin. If margin is null
, the top and bottom margins are set to 0.
Sets the LinearLayout.LayoutParams.weight for the View inside a LinearLayout to the given layoutWeight. If layoutWeight is null
, the layout weight is set to 0.
Sets the ViewGroup.LayoutParams.width of the View inside a ViewGroup to the given layoutWidthPx. The fractional part, if any, is rounded down towards zero. If layoutWidthPx is null
, the layout width is set to 0.
Sets the ViewGroup.LayoutParams.width of the View inside a ViewGroup to the given layoutWidthPx. If layoutWidthPx is null
, the layout width is set to 0.
Attempts to load and show the remoteImage in this ImageView.
Attempts to load and show the content identified by uri in this ImageView. If uri is null
or its content is not loaded yet, placeholderDrawable will be shown. If fallbackDrawable is defined and the loading fails, fallbackDrawable will be shown.
Sets drawableResolver as the source image without manually resolving the value through the context.
Inflates and sets the state list animator resource AnimatorRes to the View, if AnimatorRes is not null
or ResourcesCompat.ID_NULL. The AnimatorRes is inflated with the AnimatorInflater. If AnimatorRes is null
or ResourcesCompat.ID_NULL, the previous state list animator, if any, is detached from the view.
Set a StringResolver as the text without manually resolving the value through the context.
Sets a TouchDelegate to forward all the touch events received by this ViewGroup to delegateChildView. The delegateChildView view should be a child of this ViewGroup. If delegateChildView is null
, the set TouchDelegate is cleared.
Sets the visibility of the View based on whether the condition is satisfied. If the condition is unsatisfied (false
) or null
, the visibility is set to View.VISIBLE. Otherwise, it is set to View.GONE.
Sets the visibility of the View based on whether the instance is null
. If the instance is null
, the visibility is set to View.VISIBLE. If the instance is not null
, it is set to View.GONE.