Search code examples
androidandroid-tvleanback

Remove SearchOrbView Android TV


How can I remove the searchOrbView in the BrowseFragment of Android TV?

I see a way to set the colors (setSearchAffordanceColors), but no way to actually remove the SearchOrbView

Since the TitleView is a private member of BrowseFragment (and TitleView is the way to get to the SearchOrbView), I see no way of actually removing the SearchOrbView


Solution

  • According to the official documentation, calling setOnSearchClickedListener() causes the search orb to be displayed in the title view.

    Removing the method invocation will make the orb disappear.