Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DesarrolloAntonio/FragmentTransactionExtended
FragmentTransactionExtended is a library which provide us a set of custom animations between fragments.
https://github.com/DesarrolloAntonio/FragmentTransactionExtended
Last synced: 2 months ago
JSON representation
FragmentTransactionExtended is a library which provide us a set of custom animations between fragments.
- Host: GitHub
- URL: https://github.com/DesarrolloAntonio/FragmentTransactionExtended
- Owner: DesarrolloAntonio
- License: apache-2.0
- Created: 2014-06-04T09:14:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-13T23:55:56.000Z (almost 9 years ago)
- Last Synced: 2024-07-31T18:17:09.858Z (5 months ago)
- Language: XML
- Homepage:
- Size: 8.07 MB
- Stars: 1,084
- Watchers: 61
- Forks: 233
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- -awesome-android-ui - FragmentTransactionExtended - 2.0) | <img src="/art/FragmentTransactionExtended.gif" width="49%"> <img src="/art/FragmentTransactionExtended2.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - FragmentTransactionExtended - 2.0) | <img src="/art/FragmentTransactionExtended.gif" width="49%"> <img src="/art/FragmentTransactionExtended2.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - FragmentTransactionExtended - 2.0) | <img src="/art/FragmentTransactionExtended.gif" width="49%"> <img src="/art/FragmentTransactionExtended2.gif" width="49%"> (Index)
README
FragmentTransactionExtended
===========================![Logo](fragmentTransactionExample/cap1.gif) ![Logo](fragmentTransactionExample/cap2.gif)
`FragmentTransactionExtended` is a library which provide us a set of custom animations between fragments.
`FragmentTransaction` only accepts some simple animations (TRANSIT_FRAGMENT_CLOSE, TRANSIT_FRAGMENT_FADE, TRANSIT_FRAGMENT_OPEN...).List of animations added:
- `SCALEX`
- `SCALEY`
- `SCALEXY`
- `FADE`
- `FLIP_HORIZONTAL`
- `FLIP_VERTICAL`
- `SLIDE_VERTICAL`
- `SLIDE_HORIZONTAL`
- `SLIDE_HORIZONTAL_PUSH_TOP`
- `SLIDE_VERTICAL_PUSH_LEFT`
- `GLIDE`
- `SLIDING`
- `STACK`
- `CUBE`
- `ROTATE_DOWN`
- `ROTATE_UP`
- `ACCORDION`
- `TABLE_HORIZONTAL`
- `TABLE_VERTICAL`
- `ZOOM_FROM_LEFT_CORNER`
- `ZOOM_FROM_RIGHT_CORNER`
- `ZOOM_SLIDE_HORIZONTAL`
- `ZOOM_SLIDE_VERTICAL`Because `FragmentTransaction.setCustomAnimations` needs to use `ObjectAnimator` in XML and the animations of this library needs some fractional values is necesary to extends the fragment container from `SlidingRelativeLayout`, this class contains the necessary getters and setters.
```xml
```
The container of the fragments must extends from `SlidingRelativeLayout` like the example
```xml
```
You need to declare in your activity manifest if you need to manage change orientations:
```xml
android:configChanges="keyboardHidden|orientation|screenSize"
```Usage FragmentTransitionExtended
=====Constructor:
```java
FragmentTransactionExtended fragmentTransactionExtended = new FragmentTransactionExtended(context, fragmentTransaction, firstFragment, secondFragment, containerID);
```AddTransition:
```java
fragmentTransactionExtended.addTransition(FragmentTransactionExtended.*);
```
Example:```java
FragmentManager fm = getFragmentManager();
FragmentTransaction fragmentTransaction = fm.beginTransaction();
FragmentTransactionExtended fragmentTransactionExtended = new FragmentTransactionExtended(this, fragmentTransaction, firstFragment, secondFragment, R.id.fragment_place);
fragmentTransactionExtended.addTransition(FragmentTransactionExtended.GLIDE);
fragmentTransactionExtended.commit();
```
Gradle
-----
```java
dependencies {
compile 'com.desarrollodroide:fragmenttransactionextended:1'
}
```Special Thanks
-----
* Daniel Olshansky. - From DevBytes [Sliding Fragments][1].Developed By
============Antonio Corrales [email protected]
License
=======Copyright 2014 Antonio Corrales
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 athttp://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.[1]: https://plus.google.com/+AndroidDevelopers/posts/PcFbxqa55e4