public abstract class

ToolbarFragment

extends DialogFragment
java.lang.Object
   ↳ DialogFragment
     ↳ com.pdftron.demo.navigation.ToolbarFragment
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

A base fragment class used to provide basic support for an embedded Toolbar widget.

It handles setting a Toolbar with id R.id#fragment_toolbar as the containing FragmentActivity's androidx.appcompat.app.ActionBar action bar, applying a fallback shadow to the main fragment content view with id R.id#fragment_content for pre-Lollipop devices, and positioning the Toolbar correctly when the View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN flag is used with View.setSystemUiVisibility(int).

Summary

Nested Classes
class ToolbarFragment.Delegate This class defines a delegate which can be used to add inset-aware toolbar functionality to any Fragment fragment inside a FragmentActivity. 
Public Constructors
ToolbarFragment()
Public Methods
void onActivityCreated(Bundle savedInstanceState)
void onCreate(Bundle savedInstanceState)
void onViewCreated(View view, Bundle savedInstanceState)
void setTitle(CharSequence title)
void setTitle(int titleId)
boolean showCustomToolbarView()
Whether to show a custom TextView for the toolbar title.
void updateToolbarDrawable()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ToolbarFragment ()

Public Methods

public void onActivityCreated (Bundle savedInstanceState)

public void onCreate (Bundle savedInstanceState)

public void onViewCreated (View view, Bundle savedInstanceState)

public void setTitle (CharSequence title)

public void setTitle (int titleId)

public boolean showCustomToolbarView ()

Whether to show a custom TextView for the toolbar title. This will be used if left toolbar buttons are available.

public void updateToolbarDrawable ()