Package com.tomtom.tools.android.api.databinding
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.
If this ViewGroup has a ViewDataBinding associated with it, it will find it and return the associated LifecycleOwner. It will traverse its parents all through the view hierarchy searching for the first LifecycleOwner it encounters.
Set a 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.
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.
Set a drawableResolver as the foreground image without manually resolving the value through the context.
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.
Set a 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
. The AnimatorRes is inflated with the AnimatorInflater. If AnimatorRes is 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.