All Projects → DesarrolloAntonio → Fragmenttransactionextended

DesarrolloAntonio / Fragmenttransactionextended

Licence: apache-2.0
FragmentTransactionExtended is a library which provide us a set of custom animations between fragments.

Labels

Projects that are alternatives of or similar to Fragmenttransactionextended

Amateras Html Editor
Eclipse plugin for HTML/JSP/XML/JavaScript Editing
Stars: ✭ 34 (-96.87%)
Mutual labels:  xml
Xqerl
Erlang XQuery 3.1 Processor
Stars: ✭ 44 (-95.94%)
Mutual labels:  xml
Xslt Processor
A JavaScript XSLT processor without native library dependencies
Stars: ✭ 50 (-95.39%)
Mutual labels:  xml
Xml
No longer maintained
Stars: ✭ 36 (-96.68%)
Mutual labels:  xml
Node Prince
Node API for executing PrinceXML via prince(1) CLI
Stars: ✭ 42 (-96.13%)
Mutual labels:  xml
Attic Ode
Mirror of Apache ODE
Stars: ✭ 44 (-95.94%)
Mutual labels:  xml
Wikiforia
A Utility Library for Wikipedia dumps
Stars: ✭ 31 (-97.14%)
Mutual labels:  xml
Java Client Api
Java client for the MarkLogic enterprise NoSQL database
Stars: ✭ 52 (-95.21%)
Mutual labels:  xml
Python Hsreplay
Python library for creating and parsing HSReplay XML files
Stars: ✭ 43 (-96.04%)
Mutual labels:  xml
Netty Book
Stars: ✭ 49 (-95.48%)
Mutual labels:  xml
Onthefly
🔗 Generate TinySVG, HTML and CSS on the fly
Stars: ✭ 37 (-96.59%)
Mutual labels:  xml
View shaper
A library to help create shaped views and layouts in Android
Stars: ✭ 42 (-96.13%)
Mutual labels:  xml
Ansible Config encoder filters
Ansible role used to deliver the Config Encoder Filters.
Stars: ✭ 48 (-95.58%)
Mutual labels:  xml
Xml
XML without worries
Stars: ✭ 35 (-96.77%)
Mutual labels:  xml
Xmlunit.net
XMLUnit.NET 2.x
Stars: ✭ 50 (-95.39%)
Mutual labels:  xml
Xml2tex
one-off xml-to-latex-converter generator
Stars: ✭ 31 (-97.14%)
Mutual labels:  xml
Fast Xml Parser
Validate XML, Parse XML to JS/JSON and vise versa, or parse XML to Nimn rapidly without C/C++ based libraries and no callback
Stars: ✭ 1,021 (-5.9%)
Mutual labels:  xml
Php E Invoice It
A PHP package for managing italian e-invoice and notice XML formats. (Pacchetto PHP per gestire il formato XML di fatture e notifiche come richiesto dal SdI).
Stars: ✭ 53 (-95.12%)
Mutual labels:  xml
Sdformat
Simulation Description Format (SDFormat) parser and description files.
Stars: ✭ 51 (-95.3%)
Mutual labels:  xml
Bookdown.org
Source documents to generate the bookdown.org website
Stars: ✭ 49 (-95.48%)
Mutual labels:  xml

FragmentTransactionExtended

Logo Logo

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.

<com.desarrollodroide.libraryfragmenttransitionextended.SlidingRelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
</com.desarrollodroide.libraryfragmenttransitionextended.SlidingRelativeLayout>

The container of the fragments must extends from SlidingRelativeLayout like the example

<com.desarrollodroide.libraryfragmenttransactionextended.SlidingRelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/back1" >
    <ListView
            android:id="@android:id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>
</com.desarrollodroide.libraryfragmenttransactionextended.SlidingRelativeLayout>

You need to declare in your activity manifest if you need to manage change orientations:

android:configChanges="keyboardHidden|orientation|screenSize"

Usage FragmentTransitionExtended

Constructor:

FragmentTransactionExtended fragmentTransactionExtended = new FragmentTransactionExtended(context, fragmentTransaction, firstFragment, secondFragment, containerID);

AddTransition:

fragmentTransactionExtended.addTransition(FragmentTransactionExtended.*);

Example:

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

dependencies {
    compile 'com.desarrollodroide:fragmenttransactionextended:1'
}

Special Thanks

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 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].