public abstract class FeatureTransitionManagerAdapter extends java.lang.Object implements FeatureTransitionManager
FeatureTransitionManagerAdapter
is an adapter for implementing
FeatureTransitionManager
.Modifier and Type | Field and Description |
---|---|
protected int |
enterAnim |
protected int |
exitAnim |
protected int |
popEnterAnim |
protected int |
popExitAnim |
Constructor and Description |
---|
FeatureTransitionManagerAdapter(int enterAnim,
int exitAnim) |
FeatureTransitionManagerAdapter(int enterAnim,
int exitAnim,
int popEnterAnim,
int popExitAnim) |
Modifier and Type | Method and Description |
---|---|
boolean |
canShowView(FeatureView view)
Tests if the given
FeatureView can be shown by this FeatureTransitionManager . |
void |
removeView(FeatureView featureView,
boolean addedToBackStack,
java.lang.String fragmentTag)
Removes the given
FeatureView from its container. |
void |
showView(FeatureView featureView,
boolean addToBackStack,
java.lang.String fragmentTag)
Shows the given
FeatureView . |
protected final int enterAnim
protected final int exitAnim
protected final int popEnterAnim
protected final int popExitAnim
public FeatureTransitionManagerAdapter(int enterAnim, int exitAnim)
public FeatureTransitionManagerAdapter(int enterAnim, int exitAnim, int popEnterAnim, int popExitAnim)
public boolean canShowView(FeatureView view)
FeatureTransitionManager
FeatureView
can be shown by this FeatureTransitionManager
.canShowView
in interface FeatureTransitionManager
view
- A FeatureView
.boolean
.public void showView(FeatureView featureView, boolean addToBackStack, java.lang.String fragmentTag)
FeatureTransitionManager
FeatureView
. If parameter fragmentTag
is given null
value, implementation of this method should use the View.getViewTag()
method
to obtain the tag.showView
in interface FeatureTransitionManager
featureView
- A FeatureView
. May not be null
.addToBackStack
- A boolean
value specifying if the FeatureView
is added
to back stack.fragmentTag
- A tag for the Fragment
. May be null
.public void removeView(FeatureView featureView, boolean addedToBackStack, java.lang.String fragmentTag)
FeatureTransitionManager
FeatureView
from its container.removeView
in interface FeatureTransitionManager
featureView
- A FeatureView
. May not be null
.addedToBackStack
- A boolean
value specifying if the FeatureView
was
added to back stack.fragmentTag
- The tag that was used in adding the Fragment
. May be null
,
if no tag was given when adding the Fragment
.