android.transition.ChangeTransform Java Examples

The following examples show how to use android.transition.ChangeTransform. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultShareElementTransitionFactory.java    From YcShareElement with Apache License 2.0 6 votes vote down vote up
protected TransitionSet buildShareElementsTransition(List<View> shareViewList) {
    TransitionSet transitionSet = new TransitionSet();
    if (shareViewList == null || shareViewList.size() == 0) {
        return transitionSet;
    }
    transitionSet.addTransition(new ChangeClipBounds());
    transitionSet.addTransition(new ChangeTransform());
    transitionSet.addTransition(new ChangeBounds());
    transitionSet.addTransition(new ChangeTextTransition());
    if (mUseDefaultImageTransform) {
        transitionSet.addTransition(new ChangeImageTransform());
    } else {
        transitionSet.addTransition(new ChangeOnlineImageTransition());
    }
    return transitionSet;
}
 
Example #2
Source File: FragmentSharedElementTransition.java    From native-navigation with MIT License 5 votes vote down vote up
public FragmentSharedElementTransition() {
  addTransition(new ChangeBounds());
  addTransition(new Fade());
  addTransition(new ChangeImageTransform());
  addTransition(new ChangeTransform());
  setInterpolator(new FastOutSlowInInterpolator());
}
 
Example #3
Source File: LinkStoryFragment.java    From talk-android with MIT License 5 votes vote down vote up
static public LinkStoryFragment getInstance(Story story, boolean isExpanded) {
    LinkStoryFragment f = new LinkStoryFragment();
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            f.setSharedElementEnterTransition(new ChangeTransform());
        }
        f.setSharedElementEnterTransition(new ChangeBounds());
    }
    Bundle bundle = new Bundle();
    bundle.putBoolean("isExpanded", isExpanded);
    bundle.putParcelable("story", Parcels.wrap(story));
    f.setArguments(bundle);
    return f;
}
 
Example #4
Source File: FileStoryFragment.java    From talk-android with MIT License 5 votes vote down vote up
static public FileStoryFragment getInstance(Story story, boolean isExpanded) {
    FileStoryFragment f = new FileStoryFragment();
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            f.setSharedElementEnterTransition(new ChangeTransform());
        }
        f.setSharedElementEnterTransition(new ChangeBounds());
    }
    Bundle bundle = new Bundle();
    bundle.putBoolean("isExpanded", isExpanded);
    bundle.putParcelable("story", Parcels.wrap(story));
    f.setArguments(bundle);
    return f;
}
 
Example #5
Source File: TopicStoryFragment.java    From talk-android with MIT License 5 votes vote down vote up
static public TopicStoryFragment getInstance(Story story, boolean isExpanded) {
    TopicStoryFragment f = new TopicStoryFragment();
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            f.setSharedElementEnterTransition(new ChangeTransform());
        }
        f.setSharedElementEnterTransition(new ChangeBounds());
    }
    Bundle bundle = new Bundle();
    bundle.putBoolean("isExpanded", isExpanded);
    bundle.putParcelable("story", Parcels.wrap(story));
    f.setArguments(bundle);
    return f;
}
 
Example #6
Source File: ImageTransitionSet.java    From Anecdote with Apache License 2.0 5 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private void init() {
    setOrdering(ORDERING_TOGETHER);
    addTransition(new ChangeBounds()).
            addTransition(new ChangeTransform()).
            addTransition(new ChangeImageTransform());

    super.addListener(this);
}
 
Example #7
Source File: DetailsTransition.java    From AndroidNavigation with MIT License 4 votes vote down vote up
private void init() {
    setOrdering(ORDERING_TOGETHER);
    addTransition(new ChangeBounds()).
            addTransition(new ChangeTransform()).
            addTransition(new ChangeImageTransform());
}
 
Example #8
Source File: Transition.java    From android-permission-checker-app with Apache License 2.0 4 votes vote down vote up
private void init() {
  setOrdering(ORDERING_TOGETHER);
  addTransition(new ChangeBounds()).
      addTransition(new ChangeTransform()).
      addTransition(new ChangeImageTransform());
}
 
Example #9
Source File: DetailTransition.java    From Android-UtilCode with Apache License 2.0 4 votes vote down vote up
private void init() {
    setOrdering(ORDERING_TOGETHER);
    addTransition(new ChangeBounds()).
            addTransition(new ChangeTransform()).
            addTransition(new ChangeImageTransform());
}
 
Example #10
Source File: DetailsTransition.java    From simple-stack with Apache License 2.0 4 votes vote down vote up
private void init() {
    setOrdering(ORDERING_TOGETHER);
    addTransition(new ChangeBounds()).
            addTransition(new ChangeTransform()).
            addTransition(new ChangeImageTransform());
}
 
Example #11
Source File: MusicCoverView.java    From Music-Cover-View with Apache License 2.0 4 votes vote down vote up
private MorphTransition(int shape) {
    setOrdering(ORDERING_TOGETHER);
    addTransition(new MusicCoverViewTransition(shape));
    addTransition(new ChangeImageTransform());
    addTransition(new ChangeTransform());
}
 
Example #12
Source File: DetailsTransition.java    From ForPDA with GNU General Public License v3.0 4 votes vote down vote up
private void init() {
    setOrdering(ORDERING_TOGETHER);
    addTransition(new ChangeBounds()).
            addTransition(new ChangeTransform()).
            addTransition(new ChangeImageTransform());
}
 
Example #13
Source File: TransitionHelperApi21.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
public static Object createScale() {
    return new ChangeTransform();
}