lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

belongs to Maven artifact androidx.leanback:leanback:1.0.0-alpha3

BrowseFrameLayout.OnChildFocusListener

public static interface BrowseFrameLayout.OnChildFocusListener

androidx.leanback.widget.BrowseFrameLayout.OnChildFocusListener


Interface for managing child focus in a BrowseFrameLayout.

Summary

Public methods

abstract void onRequestChildFocus(View child, View focused)

See ViewGroup.requestChildFocus(android.view.View, android.view.View).

abstract boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect)

See ViewGroup.onRequestFocusInDescendants(int, android.graphics.Rect).

Public methods

onRequestChildFocus

public abstract void onRequestChildFocus (View child, 
                View focused)

See ViewGroup.requestChildFocus(android.view.View, android.view.View).

Parameters
child View

focused View

onRequestFocusInDescendants

public abstract boolean onRequestFocusInDescendants (int direction, 
                Rect previouslyFocusedRect)

See ViewGroup.onRequestFocusInDescendants(int, android.graphics.Rect).

Parameters
direction int

previouslyFocusedRect Rect

Returns
boolean True if handled by listener, otherwise returns ViewGroup.onRequestFocusInDescendants(int, android.graphics.Rect).