added in version 24.1.0
belongs to Maven artifact
Deprecated since version 27.1.0


public class BrandedFragment
extends Fragment

Known Direct Subclasses
Known Indirect Subclasses

This class was deprecated in API level 27.1.0.
use BrandedSupportFragment

Fragment class for managing search and branding using a view that implements TitleViewAdapter.Provider.


Inherited constants

From interface android.content.ComponentCallbacks2

Public constructors


Public methods

Drawable getBadgeDrawable()

Returns the badge drawable used in the fragment title.

int getSearchAffordanceColor()

Returns the color used to draw the search affordance.

SearchOrbView.Colors getSearchAffordanceColors()

Returns the SearchOrbView.Colors used to draw the search affordance.

CharSequence getTitle()

Returns the title text for the fragment.

View getTitleView()

Returns the view that implements TitleViewAdapter.Provider.

TitleViewAdapter getTitleViewAdapter()

Returns the TitleViewAdapter implemented by title view.

void installTitleView(LayoutInflater inflater,