Google is committed to advancing racial equity for Black communities. See how.

InlineSuggestionsHostView

public class InlineSuggestionsHostView
extends FrameLayout

java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ androidx.autofill.InlineSuggestionsHostView


This class is a container for showing inline suggestions for cases where you want to ensure they appear only in a given area in your app. An example is having a scrollable list of suggestions with an icon on the left and one on the right (think of a suggestion strip with actions on left, right and a scrollable suggestions list in the middle) where scrolling the suggestions should not cover the icons on both sides. Note that without this container the suggestions would cover parts of your app as they are surfaces owned by another process and always appearing on top of your app.

Summary

Inherited constants

Inherited fields

Public constructors

InlineSuggestionsHostView(Context context)
InlineSuggestionsHostView(Context context, AttributeSet attrs)
InlineSuggestionsHostView(Context context, AttributeSet attrs, int defStyleAttr)

Public methods

void addView(View child, int index, ViewGroup.LayoutParams params)
void removeView(View view)

Inherited methods

Public constructors

InlineSuggestionsHostView

public InlineSuggestionsHostView (Context context)

Parameters
context Context

InlineSuggestionsHostView

public InlineSuggestionsHostView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

InlineSuggestionsHostView

public InlineSuggestionsHostView (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

Public methods

addView

public void addView (View child, 
                int index, 
                ViewGroup.LayoutParams params)

Parameters
child View

index int

params ViewGroup.LayoutParams

removeView

public void removeView (View view)

Parameters
view View