{"id":13396360,"url":"https://github.com/DesarrolloAntonio/FragmentTransactionExtended","last_synced_at":"2025-03-13T23:30:55.410Z","repository":{"id":17672316,"uuid":"20477065","full_name":"DesarrolloAntonio/FragmentTransactionExtended","owner":"DesarrolloAntonio","description":"FragmentTransactionExtended is a library which provide us a set of custom animations between fragments.","archived":false,"fork":false,"pushed_at":"2016-03-13T23:55:56.000Z","size":8467,"stargazers_count":1084,"open_issues_count":8,"forks_count":233,"subscribers_count":61,"default_branch":"master","last_synced_at":"2024-07-31T18:17:09.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"XML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DesarrolloAntonio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-04T09:14:02.000Z","updated_at":"2024-07-05T16:48:26.000Z","dependencies_parsed_at":"2022-08-04T20:30:23.834Z","dependency_job_id":null,"html_url":"https://github.com/DesarrolloAntonio/FragmentTransactionExtended","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesarrolloAntonio%2FFragmentTransactionExtended","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesarrolloAntonio%2FFragmentTransactionExtended/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesarrolloAntonio%2FFragmentTransactionExtended/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesarrolloAntonio%2FFragmentTransactionExtended/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DesarrolloAntonio","download_url":"https://codeload.github.com/DesarrolloAntonio/FragmentTransactionExtended/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243499873,"owners_count":20300705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T18:00:47.301Z","updated_at":"2025-03-13T23:30:54.606Z","avatar_url":"https://github.com/DesarrolloAntonio.png","language":"XML","funding_links":[],"categories":["Index `(light-weight pages)`","Index"],"sub_categories":[],"readme":"FragmentTransactionExtended\n===========================\n\n![Logo](fragmentTransactionExample/cap1.gif)   ![Logo](fragmentTransactionExample/cap2.gif)\n\n`FragmentTransactionExtended` is a library which provide us a set of custom animations between fragments. \n`FragmentTransaction` only accepts some simple animations (TRANSIT_FRAGMENT_CLOSE, TRANSIT_FRAGMENT_FADE, TRANSIT_FRAGMENT_OPEN...). \n\nList of animations added:\n-  `SCALEX`\n- `SCALEY`\n- `SCALEXY`\n- `FADE`\n- `FLIP_HORIZONTAL`\n- `FLIP_VERTICAL`\n- `SLIDE_VERTICAL`\n- `SLIDE_HORIZONTAL`\n- `SLIDE_HORIZONTAL_PUSH_TOP`\n- `SLIDE_VERTICAL_PUSH_LEFT`\n- `GLIDE`\n- `SLIDING`\n- `STACK`\n- `CUBE`\n- `ROTATE_DOWN`\n- `ROTATE_UP`\n- `ACCORDION`\n- `TABLE_HORIZONTAL`\n- `TABLE_VERTICAL`\n- `ZOOM_FROM_LEFT_CORNER`\n- `ZOOM_FROM_RIGHT_CORNER`\n- `ZOOM_SLIDE_HORIZONTAL`\n- `ZOOM_SLIDE_VERTICAL`\n\n\nBecause `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.\n\n```xml\n\u003ccom.desarrollodroide.libraryfragmenttransitionextended.SlidingRelativeLayout\n        xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\u003e\n\u003c/com.desarrollodroide.libraryfragmenttransitionextended.SlidingRelativeLayout\u003e\n```\n\n\nThe container of the fragments must extends from `SlidingRelativeLayout` like the example\n```xml\n\u003ccom.desarrollodroide.libraryfragmenttransactionextended.SlidingRelativeLayout\n        xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:background=\"@drawable/back1\" \u003e\n    \u003cListView\n            android:id=\"@android:id/list\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"/\u003e\n\u003c/com.desarrollodroide.libraryfragmenttransactionextended.SlidingRelativeLayout\u003e\n```\nYou need to declare in your activity manifest if you need to manage change orientations:\n```xml\nandroid:configChanges=\"keyboardHidden|orientation|screenSize\"\n```\n\n\nUsage FragmentTransitionExtended\n=====\n\nConstructor: \n```java\nFragmentTransactionExtended fragmentTransactionExtended = new FragmentTransactionExtended(context, fragmentTransaction, firstFragment, secondFragment, containerID);\n```\n\nAddTransition:\n```java\nfragmentTransactionExtended.addTransition(FragmentTransactionExtended.*);\n```\nExample:\n\n```java\nFragmentManager fm = getFragmentManager();\nFragmentTransaction fragmentTransaction = fm.beginTransaction();\nFragmentTransactionExtended fragmentTransactionExtended = new FragmentTransactionExtended(this, fragmentTransaction, firstFragment, secondFragment, R.id.fragment_place);\nfragmentTransactionExtended.addTransition(FragmentTransactionExtended.GLIDE);\nfragmentTransactionExtended.commit();\n```\nGradle\n-----\n```java\ndependencies {\n    compile 'com.desarrollodroide:fragmenttransactionextended:1'\n}\n```\n\nSpecial Thanks\n-----\n* Daniel Olshansky. - From DevBytes [Sliding Fragments][1].\n\nDeveloped By\n============\n\nAntonio Corrales desarrollogit@gmail.com\n\n\nLicense\n=======\n\nCopyright 2014 Antonio Corrales\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n [1]: https://plus.google.com/+AndroidDevelopers/posts/PcFbxqa55e4\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDesarrolloAntonio%2FFragmentTransactionExtended","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDesarrolloAntonio%2FFragmentTransactionExtended","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDesarrolloAntonio%2FFragmentTransactionExtended/lists"}