All Projects → Commit451 → MorphTransitions

Commit451 / MorphTransitions

Licence: Apache-2.0 license
Morph transitions from buttons to dialogs and back

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to MorphTransitions

support
Plaid Support
Stars: ✭ 65 (+140.74%)
Mutual labels:  plaid
plaid2qif
Download financial transactions from Plaid as QIF files.
Stars: ✭ 70 (+159.26%)
Mutual labels:  plaid
plaid-link-ios
Plaid Link iOS SDK
Stars: ✭ 100 (+270.37%)
Mutual labels:  plaid
Dracker
An iOS and React App to track debt and send/receive payments.
Stars: ✭ 22 (-18.52%)
Mutual labels:  plaid
plaid flutter
Plaid Link for Flutter. Integrates the native iOS, Android and Web SDKs.
Stars: ✭ 38 (+40.74%)
Mutual labels:  plaid

MorphTransitions

Morph transitions from FAB to dialog, and Button to dialog

Inspired by Plaid

Build Status

Usage

See the sample app. Typical usage:

MorphTransform.addExtras(intent, color, dialogCornerRadius);
ActivityOptions options =
        ActivityOptions.makeSceneTransitionAnimation(MainActivity.this, button,
                getString(R.string.morph_transition));
startActivity(intent, options.toBundle());

in the first activity, then:

MorphTransform.setup(this, container, color, dialogCornerRadius));

in the next activity. Be sure that you override onBackPressed() and call ActivityCompat.finishAfterTransition(DialogActivity.this);

In addition, be sure that your activities themes have the attribute:

<item name="android:windowContentTransitions">true</item>

License

Copyright 2015 Google, Inc
Copyright 2016 Commit 451

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].