{"id":13645592,"url":"https://github.com/huzenan/EasyTransition","last_synced_at":"2025-04-21T14:31:50.764Z","repository":{"id":201789061,"uuid":"90726700","full_name":"huzenan/EasyTransition","owner":"huzenan","description":"A light Shared Elements Transition lib for Android.","archived":false,"fork":false,"pushed_at":"2018-01-04T06:46:13.000Z","size":961,"stargazers_count":392,"open_issues_count":8,"forks_count":52,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-02T01:25:32.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/huzenan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-05-09T09:19:35.000Z","updated_at":"2024-06-03T01:48:02.000Z","dependencies_parsed_at":"2023-10-20T06:07:02.206Z","dependency_job_id":null,"html_url":"https://github.com/huzenan/EasyTransition","commit_stats":null,"previous_names":["huzenan/easytransition"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huzenan%2FEasyTransition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huzenan%2FEasyTransition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huzenan%2FEasyTransition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huzenan%2FEasyTransition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huzenan","download_url":"https://codeload.github.com/huzenan/EasyTransition/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223868411,"owners_count":17217085,"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-08-02T01:02:38.034Z","updated_at":"2024-11-09T18:31:52.954Z","avatar_url":"https://github.com/huzenan.png","language":"Java","funding_links":[],"categories":["其他"],"sub_categories":[],"readme":"# EasyTransition\nA light transition lib(with only 2 files...) for Android, scince shared elements transition is not supported before LOLLIPOP, using EasyTransition can easily make fun transition animation between elements in two activities. Enjoy it!\n\n## ScreenShots\n![easytransition](https://github.com/huzenan/EasyTransition/blob/master/screenshots/easy%20transition.gif) \n\n## Usage\n### 1.Add the library.\nAdd to your root build.gradle:\n```xml\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nAdd the dependency:\n```xml\ndependencies {\n    compile 'com.github.huzenan:EasyTransition:v1.0.0'\n}\n```\n\n### 2.Using same ids between two Views in two layouts.\n\n```xml\n    \u003c!-- Activity A --\u003e\n    \u003cImageView\n        android:id=\"@+id/iv_icon\"\n        android:layout_width=\"50dp\"\n        android:layout_height=\"50dp\"\n        android:src=\"@mipmap/avatar_male\"\n        /\u003e\n    \n    \u003c!-- Activity B --\u003e\n    \u003cImageView\n        android:id=\"@+id/iv_icon\"\n        android:layout_width=\"200dp\"\n        android:layout_height=\"200dp\"\n        android:src=\"@mipmap/avatar_male\"\n        /\u003e\n```\n\n### 3.In Activity A, make transition options, and start Activity B with EasyTransition#startActivity.\n\n```java\n    // ready for transition options\n    EasyTransitionOptions options =\n        EasyTransitionOptions.makeTransitionOptions(\n            ActivityA.this,\n            findViewById(R.id.iv_icon),\n            findViewById(R.id.tv_name)); // add as many views as you like\n\n    // start transition\n    Intent intent = new Intent(ActivityA.this, ActivityB.class);\n    EasyTransition.startActivity(intent, options);\n```\n\n### 4.In Activity B, enter transition when creating, and exit transition when backing.\n\n```java\n    // onCreate\n    EasyTransition.enter(ActivityB.this);\n    \n    // onBackPressed\n    EasyTransition.exit(ActivityB.this);\n```\n\n## Attributes\nUsage above is only the minimum choice, you can set attributes like duration, time interpolator and so on, have fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuzenan%2FEasyTransition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuzenan%2FEasyTransition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuzenan%2FEasyTransition/lists"}