{"id":23906894,"url":"https://github.com/looa/sharedelement","last_synced_at":"2025-07-28T19:12:08.891Z","repository":{"id":97384244,"uuid":"77688568","full_name":"looa/SharedElement","owner":"looa","description":"SharedElement support OS on API 11 and above. ","archived":false,"fork":false,"pushed_at":"2017-01-18T03:23:03.000Z","size":2368,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-18T22:22:43.625Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/looa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-30T13:43:24.000Z","updated_at":"2018-02-12T20:10:05.000Z","dependencies_parsed_at":"2023-05-15T14:15:42.417Z","dependency_job_id":null,"html_url":"https://github.com/looa/SharedElement","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/looa/SharedElement","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looa%2FSharedElement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looa%2FSharedElement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looa%2FSharedElement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looa%2FSharedElement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/looa","download_url":"https://codeload.github.com/looa/SharedElement/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looa%2FSharedElement/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267570501,"owners_count":24109256,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-01-05T02:15:18.074Z","updated_at":"2025-07-28T19:12:08.816Z","avatar_url":"https://github.com/looa.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PrismSE\nPrism SharedElement support OS on API 11 and above.\n\n## Using TabView in your Application\nIf you are building with Gradle, simply add the following line to the dependencies section of your build.gradle file:\n````groovy\ncompile 'com.github.looa:SharedElement:-SNAPSHOT'\n````\nAdd it in your root build.gradle at the end of repositories:\n````groovy\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n````\n## Sample\n![demo](./README/show.gif)\n\nJava StartActivity.java\n````groovy\nadapter.setOnItemClickListener(new SimpleAdapter.OnItemClickListener() {\n     @Override\n     public void onItemClick(View view, int position) {\n          Intent intent = new Intent();\n          intent.setClass(MainActivity.this, SubActivity.class);\n          PrismSE.getInstant().startActivity(view, intent, true);\n     }\n});\n````\nor\n````groovy\nadapter.setOnItemClickListener(new SimpleAdapter.OnItemClickListener() {\n     @Override\n     public void onItemClick(View view, int position) {\n          Intent intent = new Intent();\n          intent.setClass(MainActivity.this, SubActivity.class);\n          PrismSE.getInstant().initSharedElement(view, intent, true);\n          //you can use your method to start activity\n          //maybe you have used url to open the next page.\n          //instead of startActivity if you need.\n          startActivity(intent);\n          overridePendingTransition(0, 0);\n     }\n});\n````\nand TargetActivity.java\n````groovy\n@Override\nprotected void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    setContentView(R.layout.activity_sub);\n    imageView = (ImageView) findViewById(R.id.iv_sub);\n    PrismSE.getInstant().matchSharedElement(imageView);\n}\n````\n````groovy\n@Override\npublic void onBackPressed() {\n    PrismSE.getInstant().finish(imageView);\n    //Unnecessary, if you use a translucent theme, you should't use it.\n    //PrismSE.getInstant().overridePendingTransition(0, android.R.anim.fade_out);\n}\n````\nvalues/styles.xml\n````groovy\n\u003cstyle name=\"YourTheme\" parent=\"AppTheme\"\u003e\n    ...\n    \u003citem name=\"android:windowBackground\"\u003e@color/transparent\u003c/item\u003e\n    \u003citem name=\"android:windowNoTitle\"\u003etrue\u003c/item\u003e\n    \u003citem name=\"android:windowIsTranslucent\"\u003etrue\u003c/item\u003e\n    ...\n\u003c/style\u003e\n````\nvalues/colors.xml\n````groovy\n\u003cresources\u003e\n    ...\n    \u003ccolor name=\"transparent\"\u003e#0000\u003c/color\u003e\n    ...\n\u003c/resources\u003e\n````\nAndroidManifest.xml\n````groovy\n\u003cactivity\n     android:name=\".TargetActivity\"\n     android:theme=\"@style/YourTheme\" /\u003e\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flooa%2Fsharedelement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flooa%2Fsharedelement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flooa%2Fsharedelement/lists"}