public abstract class AlfonzActivity
extends AppCompatActivity
Constructor and Description |
---|
AlfonzActivity() |
Modifier and Type | Method and Description |
---|---|
void |
replaceFragment(Fragment fragment) |
void |
replaceFragment(Fragment fragment,
boolean addToBackStack,
boolean allowStateLoss) |
void |
replaceFragment(Fragment fragment,
boolean addToBackStack,
boolean allowStateLoss,
java.lang.String tag) |
ActionBar |
setupActionBar(ToolbarIndicator indicator) |
ActionBar |
setupActionBar(ToolbarIndicator indicator,
java.lang.CharSequence title) |
ActionBar |
setupActionBar(ToolbarIndicator indicator,
java.lang.CharSequence title,
Toolbar toolbar)
Setup main toolbar as ActionBar.
|
public ActionBar setupActionBar(ToolbarIndicator indicator)
public ActionBar setupActionBar(ToolbarIndicator indicator, java.lang.CharSequence title)
public ActionBar setupActionBar(ToolbarIndicator indicator, java.lang.CharSequence title, Toolbar toolbar)
indicator
- navigation icon (NONE, BACK, CLOSE are predefined). Uses toolbar theme color for tinting.title
- to be shown as in ActionBar. If it is null, title is not changed! Use empty string to clear it.toolbar
- may be null, in that case it is looking for R.id.toolbar.public void replaceFragment(Fragment fragment)
public void replaceFragment(Fragment fragment, boolean addToBackStack, boolean allowStateLoss)
public void replaceFragment(Fragment fragment, boolean addToBackStack, boolean allowStateLoss, java.lang.String tag)