Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0-rc01

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

added in version 1.0.0
public abstract void onRequestChildFocus (View child, 
                View focused)

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

Parameters
child View

focused View

onRequestFocusInDescendants

added in version 1.0.0
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).