Material Design Animation for opening forms

I just adapted my interface with support for Lib material design.

I want to recreate a simple animation to open the form as indicated in the White Paper:

http://www.google.com/design/spec/animation/meaningful-transitions.html#meaningful-transitions-visual-continuity

The animation I want to play is second (Beach, blue toolbar)

Thing - I donโ€™t know what kind of animation it is, and how to implement it?

Is there a way to do this with lib support, another lib, or should I code it myself?

Here I have an official document for creating animations, but it doesnโ€™t help me much ...

http://developer.android.com/training/material/animations.html

Any idea?

+4
source share
1

, pre-Lollipop.

build.gradle

dependencies {
    compile 'com.kogitune:pre-lollipop-activity-transition:1.1.0'
}

.

.

findViewById(R.id.imageView).setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        final Intent intent = new Intent(MainActivity.this, SubActivity.class);
        ActivityTransitionLauncher.with(MainActivity.this).from(v).launch(intent);
    }
});

.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_sub);
    ActivityTransition.with(getIntent()).to(findViewById(R.id.sub_imageView)).start(savedInstanceState);
}
0

All Articles