Package com.zendesk.sdk.ui
Class ToolbarSherlock
- java.lang.Object
-
- com.zendesk.sdk.ui.ToolbarSherlock
-
public class ToolbarSherlock extends java.lang.ObjectHelper for detecting the presence of anActionBar.
-
-
Constructor Summary
Constructors Constructor and Description ToolbarSherlock()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidinstallToolBar(AppCompatActivity activity)Ensures that there is anActionBaravailable in theAppCompatActivitythat was passed in as argument.
-
-
-
Method Detail
-
installToolBar
public static void installToolBar(AppCompatActivity activity)
Ensures that there is anActionBaravailable in theAppCompatActivitythat was passed in as argument.If the Activity's theme has an
ActionBarit will be used. In case that the Activity uses a theme without anActionBar,ToolbarSherlocklooks for aToolbar. IfToolbarSherlockfinds aToolbar, it will install it by callingAppCompatActivity#setSupportActionBar(Toolbar).Every
AppCompatActivitythat usesToolbarSherlockmust include the layout<include layout="@layout/zendesk_toolbar" />.- Parameters:
activity- TheAppCompatActivity,ToolbarSherlockshould take care about.
-
-