Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

GuidedActionsStylist

open class GuidedActionsStylist : FragmentAnimationProvider
kotlin.Any
   ↳ androidx.leanback.widget.GuidedActionsStylist

GuidedActionsStylist is used within a androidx.leanback.app.GuidedStepFragment to supply the right-side panel where users can take actions. It consists of a container for the list of actions, and a stationary selector view that indicates visually the location of focus. GuidedActionsStylist has two different layouts: default is for normal actions including text, radio, checkbox, DatePicker, etc, the other when setAsButtonActions() is called is recommended for button actions such as "yes", "no".

Many aspects of the base GuidedActionsStylist can be customized through theming; see the theme attributes below. Note that these attributes are not set on individual elements in layout XML, but instead would be set in a custom theme. See Styles and Themes for more information.

If these hooks are insufficient, this class may also be subclassed. Subclasses may wish to override the onProvideLayoutId method to change the layout used to display the list container and selector; override onProvideItemLayoutId(int) and getItemViewType(GuidedAction) method to change the layout used to display each action.

To support a "click to activate" view similar to DatePicker, app needs:

  • Override onProvideItemLayoutId(int) and getItemViewType(GuidedAction), provides a layout id for the action.
  • The layout must include a widget with id "guidedactions_activator_item", the widget is toggled edit mode by View#setActivated(boolean).
  • Override onBindActivatorView(ViewHolder, GuidedAction) to populate values into View.
  • Override onUpdateActivatorView(ViewHolder, GuidedAction) to update action.

    Note: If an alternate list layout is provided, the following view IDs must be supplied:

    • androidx.leanback.R.id#guidedactions_list

    These view IDs must be present in order for the stylist to function. The list ID must correspond to a VerticalGridView or subclass.

    If an alternate item layout is provided, the following view IDs should be used to refer to base elements:

    • androidx.leanback.R.id#guidedactions_item_content
    • androidx.leanback.R.id#guidedactions_item_title
    • androidx.leanback.R.id#guidedactions_item_description
    • androidx.leanback.R.id#guidedactions_item_icon
    • androidx.leanback.R.id#guidedactions_item_checkmark
    • androidx.leanback.R.id#guidedactions_item_chevron

    These view IDs are allowed to be missing, in which case the corresponding views in will be null.

    In order to support editable actions, the view associated with guidedactions_item_title should be a subclass of android.widget.EditText, and should satisfy the interface and GuidedActionAutofillSupport interface. androidx.leanback.R.attr#guidedStepImeAppearingAnimation androidx.leanback.R.attr#guidedStepImeDisappearingAnimation androidx.leanback.R.attr#guidedActionsSelectorDrawable androidx.leanback.R.attr#guidedActionsListStyle androidx.leanback.R.attr#guidedSubActionsListStyle androidx.leanback.R.attr#guidedButtonActionsListStyle androidx.leanback.R.attr#guidedActionItemContainerStyle androidx.leanback.R.attr#guidedActionItemCheckmarkStyle androidx.leanback.R.attr#guidedActionItemIconStyle androidx.leanback.R.attr#guidedActionItemContentStyle androidx.leanback.R.attr#guidedActionItemTitleStyle androidx.leanback.R.attr#guidedActionItemDescriptionStyle androidx.leanback.R.attr#guidedActionItemChevronStyle androidx.leanback.R.attr#guidedActionPressedAnimation androidx.leanback.R.attr#guidedActionUnpressedAnimation androidx.leanback.R.attr#guidedActionEnabledChevronAlpha androidx.leanback.R.attr#guidedActionDisabledChevronAlpha androidx.leanback.R.attr#guidedActionTitleMinLines androidx.leanback.R.attr#guidedActionTitleMaxLines androidx.leanback.R.attr#guidedActionDescriptionMinLines androidx.leanback.R.attr#guidedActionVerticalPadding

  • Summary

    Nested classes
    open

    ViewHolder caches information about the action item layouts' subviews.

    Constants
    static Int

    Default viewType that associated with default layout Id for the action item.

    static Int

    ViewType for DatePicker.

    Public constructors

    GuidedActionsStylist is used within a androidx.leanback.app.GuidedStepFragment to supply the right-side panel where users can take actions.

    Public methods
    open Unit

    Resets the view holder's view to unpressed state.

    open Boolean

    open Unit

    Expand or collapse GuidedActionStylist.

    Unit

    Enable or disable using BACK key to collapse sub actions list.

    open Unit
    collapseAction(withTransition: Boolean)

    Collapse expanded action.

    open Boolean

    Returns true if it is running an expanding or collapsing transition, false otherwise.

    open VerticalGridView!

    Returns the VerticalGridView that displays the sub actions list of an expanded action.

    Boolean

    open Boolean

    open Unit

    Sets states of check mark view, called by onBindViewHolder(ViewHolder, GuidedAction) when action's checkset Id is other than GuidedAction#NO_CHECK_SET.

    open View!
    onCreateView(inflater: LayoutInflater!, container: ViewGroup!)

    Creates a view appropriate for displaying a list of GuidedActions, using the provided inflater and container.

    open Unit

    Expands or collapse the sub actions list view with transition animation

    open Unit

    Sets states of chevron view, called by onBindViewHolder(ViewHolder, GuidedAction).

    open Unit

    Performs binding activator view value to action.

    open Unit

    Switches action to edit mode and pops up the keyboard.

    open GuidedAction!

    open Unit
    expandAction(action: GuidedAction!, withTransition: Boolean)

    Expand an action.

    open Unit

    open Unit

    Called when destroy the View created by GuidedActionsStylist.

    open GuidedActionsStylist.ViewHolder!

    Constructs a ViewHolder capable of representing GuidedActions.

    open GuidedActionsStylist.ViewHolder!
    onCreateViewHolder(parent: ViewGroup!, viewType: Int)

    Constructs a ViewHolder capable of representing GuidedActions.

    open Boolean

    Returns true if it is button actions list, false for normal actions list.

    open Unit

    Animates the view holder's view (or subviews thereof) when the action has had its check state changed.

    open Int

    Provides the resource ID of the layout defining the host view for the list of guided actions.

    open Unit

    Start transition to expand or collapse GuidedActionStylist.

    open Boolean

    Returns if expand/collapse animation is supported.

    open Unit
    onImeAppearing(@NonNull animators: MutableList<Animator!>)

    Animates the fragment in response to the IME appearing.

    Boolean

    open Int

    Provides the resource ID of the layout defining the view for an individual guided actions.

    open Int

    Provides the resource ID of the layout defining the view for an individual guided actions.

    open Unit

    Binds a ViewHolder to a particular GuidedAction.

    open Int

    Return view type of action, each different type can have differently associated layout Id.

    open Unit

    Animates the view holder's view (or subviews thereof) when the action has had its press state changed.

    open Boolean

    Performs updating GuidedAction from activator view.

    open VerticalGridView!

    Returns the VerticalGridView that displays the list of GuidedActions.

    Unit

    Enable or disable using BACK key to collapse GuidedAction with editable activator view.

    open Unit

    Animates the view holder's view (or subviews thereof) when the action has had its focus state changed.

    open Unit

    Choose the layout resource for button actions in onProvideLayoutId().

    open Unit
    onImeDisappearing(@NonNull animators: MutableList<Animator!>)

    Animates the fragment in response to the IME disappearing.

    Protected methods
    open Unit

    Called by onBindViewHolder(ViewHolder, GuidedAction) to setup IME options.

    open Unit

    open Unit

    Called when editing mode of an ViewHolder is changed.

    Constants

    VIEW_TYPE_DEFAULT

    static val VIEW_TYPE_DEFAULT: Int

    Default viewType that associated with default layout Id for the action item.

    Value: 0

    VIEW_TYPE_DATE_PICKER

    static val VIEW_TYPE_DATE_PICKER: Int

    ViewType for DatePicker.

    Value: 1

    Public constructors

    <init>

    GuidedActionsStylist()

    GuidedActionsStylist is used within a androidx.leanback.app.GuidedStepFragment to supply the right-side panel where users can take actions. It consists of a container for the list of actions, and a stationary selector view that indicates visually the location of focus. GuidedActionsStylist has two different layouts: default is for normal actions including text, radio, checkbox, DatePicker, etc, the other when setAsButtonActions() is called is recommended for button actions such as "yes", "no".

    Many aspects of the base GuidedActionsStylist can be customized through theming; see the theme attributes below. Note that these attributes are not set on individual elements in layout XML, but instead would be set in a custom theme. See Styles and Themes for more information.

    If these hooks are insufficient, this class may also be subclassed. Subclasses may wish to override the onProvideLayoutId method to change the layout used to display the list container and selector; override onProvideItemLayoutId(int) and getItemViewType(GuidedAction) method to change the layout used to display each action.

    To support a "click to activate" view similar to DatePicker, app needs:

  • Override onProvideItemLayoutId(int) and getItemViewType(GuidedAction), provides a layout id for the action.
  • The layout must include a widget with id "guidedactions_activator_item", the widget is toggled edit mode by View#setActivated(boolean).
  • Override onBindActivatorView(ViewHolder, GuidedAction) to populate values into View.
  • Override onUpdateActivatorView(ViewHolder, GuidedAction) to update action.

    Note: If an alternate list layout is provided, the following view IDs must be supplied:

    • androidx.leanback.R.id#guidedactions_list

    These view IDs must be present in order for the stylist to function. The list ID must correspond to a VerticalGridView or subclass.

    If an alternate item layout is provided, the following view IDs should be used to refer to base elements:

    • androidx.leanback.R.id#guidedactions_item_content
    • androidx.leanback.R.id#guidedactions_item_title
    • androidx.leanback.R.id#guidedactions_item_description
    • androidx.leanback.R.id#guidedactions_item_icon
    • androidx.leanback.R.id#guidedactions_item_checkmark
    • androidx.leanback.R.id#guidedactions_item_chevron

    These view IDs are allowed to be missing, in which case the corresponding views in will be null.

    In order to support editable actions, the view associated with guidedactions_item_title should be a subclass of android.widget.EditText, and should satisfy the interface and GuidedActionAutofillSupport interface. androidx.leanback.R.attr#guidedStepImeAppearingAnimation androidx.leanback.R.attr#guidedStepImeDisappearingAnimation androidx.leanback.R.attr#guidedActionsSelectorDrawable androidx.leanback.R.attr#guidedActionsListStyle androidx.leanback.R.attr#guidedSubActionsListStyle androidx.leanback.R.attr#guidedButtonActionsListStyle androidx.leanback.R.attr#guidedActionItemContainerStyle androidx.leanback.R.attr#guidedActionItemCheckmarkStyle androidx.leanback.R.attr#guidedActionItemIconStyle androidx.leanback.R.attr#guidedActionItemContentStyle androidx.leanback.R.attr#guidedActionItemTitleStyle androidx.leanback.R.attr#guidedActionItemDescriptionStyle androidx.leanback.R.attr#guidedActionItemChevronStyle androidx.leanback.R.attr#guidedActionPressedAnimation androidx.leanback.R.attr#guidedActionUnpressedAnimation androidx.leanback.R.attr#guidedActionEnabledChevronAlpha androidx.leanback.R.attr#guidedActionDisabledChevronAlpha androidx.leanback.R.attr#guidedActionTitleMinLines androidx.leanback.R.attr#guidedActionTitleMaxLines androidx.leanback.R.attr#guidedActionDescriptionMinLines androidx.leanback.R.attr#guidedActionVerticalPadding

  • Public methods

    onAnimateItemPressedCancelled

    open fun onAnimateItemPressedCancelled(vh: GuidedActionsStylist.ViewHolder!): Unit

    Resets the view holder's view to unpressed state.

    Parameters
    vh GuidedActionsStylist.ViewHolder!: The view holder associated with the relevant action.

    isSubActionsExpanded

    open fun isSubActionsExpanded(): Boolean
    Return
    Boolean: True if sub actions list is expanded.

    onUpdateExpandedViewHolder

    open fun onUpdateExpandedViewHolder(avh: GuidedActionsStylist.ViewHolder!): Unit

    Expand or collapse GuidedActionStylist.

    Parameters
    avh GuidedActionsStylist.ViewHolder!: When not null, the GuidedActionStylist expands the sub actions of avh. When null the GuidedActionStylist will collapse sub actions.

    setBackKeyToCollapseSubActions

    fun setBackKeyToCollapseSubActions(backToCollapse: Boolean): Unit

    Enable or disable using BACK key to collapse sub actions list. Default is enabled.

    Parameters
    backToCollapse Boolean: True to enable using BACK key to collapse sub actions list, false to disable.

    collapseAction

    open fun collapseAction(withTransition: Boolean): Unit

    Collapse expanded action. Do nothing if it is in animation or there is no action expanded.

    Parameters
    withTransition Boolean: True to run transition animation, false otherwsie.

    isInExpandTransition

    open fun isInExpandTransition(): Boolean

    Returns true if it is running an expanding or collapsing transition, false otherwise.

    Return
    Boolean: True if it is running an expanding or collapsing transition, false otherwise.

    getSubActionsGridView

    open fun getSubActionsGridView(): VerticalGridView!

    Returns the VerticalGridView that displays the sub actions list of an expanded action.

    Return
    VerticalGridView!: The VerticalGridView that displays the sub actions list of an expanded action.

    isBackKeyToCollapseSubActions

    fun isBackKeyToCollapseSubActions(): Boolean
    Return
    Boolean: True if using BACK key to collapse sub actions list, false otherwise. Default value is true.

    isExpanded

    open fun isExpanded(): Boolean
    Return
    Boolean: True if there is getExpandedAction() is not null, false otherwise.

    onBindCheckMarkView

    open fun onBindCheckMarkView(vh: GuidedActionsStylist.ViewHolder!, action: GuidedAction!): Unit

    Sets states of check mark view, called by onBindViewHolder(ViewHolder, GuidedAction) when action's checkset Id is other than GuidedAction#NO_CHECK_SET. Default implementation assigns drawable loaded from theme attribute android.R.attr#listChoiceIndicatorMultiple for checkbox or android.R.attr#listChoiceIndicatorSingle for radio button. Subclass rarely needs override the method, instead app can provide its own drawable that supports transition animations, change theme attributes android.R.attr#listChoiceIndicatorMultiple and android.R.attr#listChoiceIndicatorSingle in {androidx.leanback.R. styleable#LeanbackGuidedStepTheme}.

    Parameters
    vh GuidedActionsStylist.ViewHolder!: The view holder associated with the relevant action.
    action GuidedActionsStylist.ViewHolder!: The GuidedAction object to bind to.

    onCreateView

    open fun onCreateView(inflater: LayoutInflater!, container: ViewGroup!): View!

    Creates a view appropriate for displaying a list of GuidedActions, using the provided inflater and container.

    Note: Does not actually add the created view to the container; the caller should do this.

    Parameters
    inflater LayoutInflater!: The layout inflater to be used when constructing the view.
    container LayoutInflater!: The view group to be passed in the call to LayoutInflater.inflate.
    Return
    View!: The view to be added to the caller's view hierarchy.

    setExpandedViewHolder

    open fun setExpandedViewHolder(avh: GuidedActionsStylist.ViewHolder!): Unit

    Expands or collapse the sub actions list view with transition animation

    Parameters
    avh GuidedActionsStylist.ViewHolder!: When not null, fill sub actions list of this ViewHolder into sub actions list and hide the other items in main list. When null, collapse the sub actions list.

    onBindChevronView

    open fun onBindChevronView(vh: GuidedActionsStylist.ViewHolder!, action: GuidedAction!): Unit

    Sets states of chevron view, called by onBindViewHolder(ViewHolder, GuidedAction). Subclass may override.

    Parameters
    vh GuidedActionsStylist.ViewHolder!: The view holder associated with the relevant action.
    action GuidedActionsStylist.ViewHolder!: The GuidedAction object to bind to.

    onBindActivatorView

    open fun onBindActivatorView(vh: GuidedActionsStylist.ViewHolder!, action: GuidedAction!): Unit

    Performs binding activator view value to action. Default implementation supports GuidedDatePickerAction, subclass may override to add support of other views.

    Parameters
    vh GuidedActionsStylist.ViewHolder!: ViewHolder of activator view.
    action GuidedActionsStylist.ViewHolder!: GuidedAction to bind.

    openInEditMode

    open fun openInEditMode(action: GuidedAction!): Unit

    Switches action to edit mode and pops up the keyboard.

    getExpandedAction

    open fun getExpandedAction(): GuidedAction!
    Return
    GuidedAction!: Current expanded GuidedAction or null if not expanded.

    expandAction

    open fun expandAction(action: GuidedAction!, withTransition: Boolean): Unit

    Expand an action. Do nothing if it is in animation or there is action expanded.

    Parameters
    action GuidedAction!: Action to expand.
    withTransition GuidedAction!: True to run transition animation, false otherwsie.

    setEditingMode

    open fun setEditingMode(vh: GuidedActionsStylist.ViewHolder!, action: GuidedAction!, editing: Boolean): Unit

    onDestroyView

    open fun onDestroyView(): Unit

    Called when destroy the View created by GuidedActionsStylist.

    onCreateViewHolder

    open fun onCreateViewHolder(parent: ViewGroup!): GuidedActionsStylist.ViewHolder!

    Constructs a ViewHolder capable of representing GuidedActions. Subclasses may choose to return a subclass of ViewHolder. To support different view types, override onCreateViewHolder(ViewGroup, int)

    Note: Should not actually add the created view to the parent; the caller will do this.

    Parameters
    parent ViewGroup!: The view group to be used as the parent of the new view.
    Return
    GuidedActionsStylist.ViewHolder!: The view to be added to the caller's view hierarchy.

    onCreateViewHolder

    open fun onCreateViewHolder(parent: ViewGroup!, viewType: Int): GuidedActionsStylist.ViewHolder!

    Constructs a ViewHolder capable of representing GuidedActions. Subclasses may choose to return a subclass of ViewHolder.

    Note: Should not actually add the created view to the parent; the caller will do this.

    Parameters
    parent ViewGroup!: The view group to be used as the parent of the new view.
    viewType ViewGroup!: The viewType returned by getItemViewType(GuidedAction)
    Return
    GuidedActionsStylist.ViewHolder!: The view to be added to the caller's view hierarchy.

    isButtonActions

    open fun isButtonActions(): Boolean

    Returns true if it is button actions list, false for normal actions list.

    Return
    Boolean: True if it is button actions list, false for normal actions list.

    onAnimateItemChecked

    open fun onAnimateItemChecked(vh: GuidedActionsStylist.ViewHolder!, checked: Boolean): Unit

    Animates the view holder's view (or subviews thereof) when the action has had its check state changed. Default implementation calls setChecked() if ViewHolder#getCheckmarkView() is instance of Checkable.

    Parameters
    vh GuidedActionsStylist.ViewHolder!: The view holder associated with the relevant action.
    checked GuidedActionsStylist.ViewHolder!: True if the action has become checked, false if it has become unchecked.

    onProvideLayoutId

    open fun onProvideLayoutId(): Int

    Provides the resource ID of the layout defining the host view for the list of guided actions. Subclasses may override to provide their own customized layouts. The base implementation returns androidx.leanback.R.layout#lb_guidedactions or androidx.leanback.R.layout#lb_guidedbuttonactions if isButtonActions() is true. If overridden, the substituted layout should contain matching IDs for any views that should be managed by the base class; this can be achieved by starting with a copy of the base layout file.

    Return
    Int: The resource ID of the layout to be inflated to define the host view for the list of GuidedActions.

    startExpandedTransition

    open fun startExpandedTransition(avh: GuidedActionsStylist.ViewHolder!): Unit

    Start transition to expand or collapse GuidedActionStylist.

    Parameters
    avh GuidedActionsStylist.ViewHolder!: When not null, the GuidedActionStylist expands the sub actions of avh. When null the GuidedActionStylist will collapse sub actions.

    isExpandTransitionSupported

    open fun isExpandTransitionSupported(): Boolean

    Returns if expand/collapse animation is supported. When this method returns true, startExpandedTransition(ViewHolder) will be used. When this method returns false, onUpdateExpandedViewHolder(ViewHolder) will be called.

    Return
    Boolean: True if it is running an expanding or collapsing transition, false otherwise.

    onImeAppearing

    open fun onImeAppearing(@NonNull animators: MutableList<Animator!>): Unit

    Animates the fragment in response to the IME appearing.

    Parameters
    animators MutableList<Animator!>: A list of animations to which this provider's animations should be added.

    isBackKeyToCollapseActivatorView

    fun isBackKeyToCollapseActivatorView(): Boolean
    Return
    Boolean: True if using BACK key to collapse GuidedAction with editable activator view, false otherwise. Default value is true.

    onProvideItemLayoutId

    open fun onProvideItemLayoutId(): Int

    Provides the resource ID of the layout defining the view for an individual guided actions. Subclasses may override to provide their own customized layouts. The base implementation returns androidx.leanback.R.layout#lb_guidedactions_item. If overridden, the substituted layout should contain matching IDs for any views that should be managed by the base class; this can be achieved by starting with a copy of the base layout file. Note that in order for the item to support editing, the title view should both subclass and implement ImeKeyMonitor, GuidedActionAutofillSupport; see . To support different types of Layouts, override .

    Return
    Int: The resource ID of the layout to be inflated to define the view to display an individual GuidedAction.

    onProvideItemLayoutId

    open fun onProvideItemLayoutId(viewType: Int): Int

    Provides the resource ID of the layout defining the view for an individual guided actions. Subclasses may override to provide their own customized layouts. The base implementation supports:

  • androidx.leanback.R.layout#lb_guidedactions_item
  • {androidx.leanback.R.layout#lb_guidedactions_datepicker_item. If overridden, the substituted layout should contain matching IDs for any views that should be managed by the base class; this can be achieved by starting with a copy of the base layout file. Note that in order for the item to support editing, the title view should both subclass android.widget.EditText and implement ImeKeyMonitor; see GuidedActionEditText.
  • Parameters
    viewType Int: View type returned by getItemViewType(GuidedAction)
    Return
    Int: The resource ID of the layout to be inflated to define the view to display an individual GuidedAction.

    onBindViewHolder

    open fun onBindViewHolder(vh: GuidedActionsStylist.ViewHolder!, action: GuidedAction!): Unit

    Binds a ViewHolder to a particular GuidedAction.

    Parameters
    vh GuidedActionsStylist.ViewHolder!: The view holder to be associated with the given action.
    action GuidedActionsStylist.ViewHolder!: The guided action to be displayed by the view holder's view.
    Return
    Unit: The view to be added to the caller's view hierarchy.

    getItemViewType

    open fun getItemViewType(action: GuidedAction!): Int

    Return view type of action, each different type can have differently associated layout Id. Default implementation returns VIEW_TYPE_DEFAULT.

    Parameters
    action GuidedAction!: The action object.
    Return
    Int: View type that used in onProvideItemLayoutId(int).

    onAnimateItemPressed

    open fun onAnimateItemPressed(vh: GuidedActionsStylist.ViewHolder!, pressed: Boolean): Unit

    Animates the view holder's view (or subviews thereof) when the action has had its press state changed.

    Parameters
    vh GuidedActionsStylist.ViewHolder!: The view holder associated with the relevant action.
    pressed GuidedActionsStylist.ViewHolder!: True if the action has been pressed, false if it has been unpressed.

    onUpdateActivatorView

    open fun onUpdateActivatorView(vh: GuidedActionsStylist.ViewHolder!, action: GuidedAction!): Boolean

    Performs updating GuidedAction from activator view. Default implementation supports GuidedDatePickerAction, subclass may override to add support of other views.

    Parameters
    vh GuidedActionsStylist.ViewHolder!: ViewHolder of activator view.
    action GuidedActionsStylist.ViewHolder!: GuidedAction to update.
    Return
    Boolean: True if value has been updated, false otherwise.

    getActionsGridView

    open fun getActionsGridView(): VerticalGridView!

    Returns the VerticalGridView that displays the list of GuidedActions.

    Return
    VerticalGridView!: The VerticalGridView for this presenter.

    setBackKeyToCollapseActivatorView

    fun setBackKeyToCollapseActivatorView(backToCollapse: Boolean): Unit

    Enable or disable using BACK key to collapse GuidedAction with editable activator view. Default is enabled.

    Parameters
    backToCollapse Boolean: True to enable using BACK key to collapse GuidedAction with editable activator view.

    onAnimateItemFocused

    open fun onAnimateItemFocused(vh: GuidedActionsStylist.ViewHolder!, focused: Boolean): Unit

    Animates the view holder's view (or subviews thereof) when the action has had its focus state changed.

    Parameters
    vh GuidedActionsStylist.ViewHolder!: The view holder associated with the relevant action.
    focused GuidedActionsStylist.ViewHolder!: True if the action has become focused, false if it has lost focus.

    setAsButtonActions

    open fun setAsButtonActions(): Unit

    Choose the layout resource for button actions in onProvideLayoutId().

    onImeDisappearing

    open fun onImeDisappearing(@NonNull animators: MutableList<Animator!>): Unit

    Animates the fragment in response to the IME disappearing.

    Parameters
    animators MutableList<Animator!>: A list of animations to which this provider's animations should be added.

    Protected methods

    setupImeOptions

    protected open fun setupImeOptions(vh: GuidedActionsStylist.ViewHolder!, action: GuidedAction!): Unit

    Called by onBindViewHolder(ViewHolder, GuidedAction) to setup IME options. Default implementation assigns EditorInfo#IME_ACTION_DONE. Subclass may override.

    Parameters
    vh GuidedActionsStylist.ViewHolder!: The view holder to be associated with the given action.
    action GuidedActionsStylist.ViewHolder!: The guided action to be displayed by the view holder's view.

    onEditingModeChange

    protected open fun onEditingModeChange(vh: GuidedActionsStylist.ViewHolder!, action: GuidedAction!, editing: Boolean): Unit

    onEditingModeChange

    @CallSuper protected open fun onEditingModeChange(vh: GuidedActionsStylist.ViewHolder!, editing: Boolean, withTransition: Boolean): Unit

    Called when editing mode of an ViewHolder is changed. Subclass must call super.onEditingModeChange(vh,editing,withTransition).

    Parameters
    vh GuidedActionsStylist.ViewHolder!: ViewHolder to change editing mode.
    editing GuidedActionsStylist.ViewHolder!: True to enable editing, false to stop editing
    withTransition GuidedActionsStylist.ViewHolder!: True to run expand transiiton, false otherwise.