{"id":13645516,"url":"https://github.com/crosswall/Android-Coverflow","last_synced_at":"2025-04-21T14:31:23.346Z","repository":{"id":95137017,"uuid":"57375687","full_name":"crosswall/Android-Coverflow","owner":"crosswall","description":"A beautiful coverflow lib for android","archived":false,"fork":false,"pushed_at":"2019-06-02T12:59:39.000Z","size":2348,"stargazers_count":910,"open_issues_count":37,"forks_count":164,"subscribers_count":36,"default_branch":"master","last_synced_at":"2024-11-09T18:42:49.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crosswall.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-29T10:07:42.000Z","updated_at":"2024-10-04T08:19:25.000Z","dependencies_parsed_at":"2023-06-26T22:06:35.082Z","dependency_job_id":null,"html_url":"https://github.com/crosswall/Android-Coverflow","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosswall%2FAndroid-Coverflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosswall%2FAndroid-Coverflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosswall%2FAndroid-Coverflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosswall%2FAndroid-Coverflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crosswall","download_url":"https://codeload.github.com/crosswall/Android-Coverflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070173,"owners_count":21369839,"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:36.332Z","updated_at":"2025-04-21T14:31:21.860Z","avatar_url":"https://github.com/crosswall.png","language":"Java","readme":"## Android-CoverFlow\nA beautiful cover flow for android platform , base on ViewPager.\n\n### [Demo Vedio](https://youtu.be/2FEp33kisz4)\n\n## GIF\n\u003cimg src=\"https://github.com/crosswall/Android-Coverflow/blob/master/gif/3.pic_hd.gif\" width=\"40%\" height=\"40%\"\u003e\n\n### Thanks\n[vincent-paing](https://github.com/vincent-paing) \n\n\n### Build\n##### Step 1. Add the JitPack repository to your build file\n```build\nallprojects {\n\trepositories {\n\t\t\t...\n\t\t\tmaven { url \"https://jitpack.io\" }\n\t}\n}\n```\n\n##### Step 2. Add the dependency\n```build\ndependencies {\n\tcompile 'com.github.crosswall:Android-Coverflow:release-v1.0.5'\n}\n```\n\n### Layout.xml\n\n```layout\n\u003cme.crosswall.lib.coverflow.core.PagerContainer\n        android:id=\"@+id/pager_container\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"220dp\"\n        android:background=\"?attr/colorPrimary\"\u003e\n\n\t\t\u003cyour viewpager.../\u003e\n\n\u003c/me.crosswall.lib.coverflow.core.PagerContainer\u003e\n```\n```java\n new CoverFlow.Builder()\n             .with(viewpager)\n             .pagerMargin(0f)\n             .scale(0.3f)\n             .spaceSize(0f)\n             .rotationY(0f)\n             .build();\n\n```\n\n```click\ncontainer.setPageItemClickListener(new PageItemClickListener() {\n    @Override\n    public void onItemClick(View view, int position) {\n        //Toast.makeText(context,\"position:\" + position,Toast.LENGTH_SHORT).show();\n      }\n    });\n```\n\n\n#### Two viewpagers synchronized scrolling.\n```layout\n\u003crootLayout....\n \u003cme.crosswall.lib.coverflow.core.LinkagePagerContainer\n        android:id=\"@+id/pager_container\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"180dp\"\u003e\n        \u003candroid.support.v4.view.LinkagePager\n            android:layout_width=\"150dp\"\n            android:layout_height=\"150dp\"\n            android:layout_gravity=\"center\"/\u003e\n  \u003c/me.crosswall.lib.coverflow.core.LinkagePagerContainer\u003e\n  \u003candroid.support.v4.view.LinkagePager\n        android:id=\"@+id/pager\"\n        android:layout_gravity=\"center\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        app:velocity=\"150\"/\u003e\n\n\u003c/rootLayout\u003e\n```\n```java\n//init widget\nLinkagePager aPager = (LinkagePager)findViewById(R.id.pager_a)\nLinkagePager bPager = (LinkagePager)findViewById(R.id.pager_b)\n//binding scroll\naPager.setLinkagePager(bPager);\nbPager.setLinkagePager(aPager);\n```\n\n\n#### To Enable Overlapping\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/8496187/15041789/0aa0850c-12bf-11e6-8795-f5a8196cf114.png\"/\u003e\n\n\n```java\nmPagerContainer.setOverlapEnabled(true);\n```\n\nYou might want to manually set the first view to be elevated, this can easily be done with this line of code\n```java\n //Manually setting the first View to be elevated\n    viewPager.post(new Runnable() {\n      @Override public void run() {\n        Fragment fragment = (Fragment) viewPager.getAdapter().instantiateItem(viewPager, 0);\n        ViewCompat.setElevation(fragment.getView(), 8.0f);\n      }\n    });\n```\n\n### TODO\n\u003e* HorizontalScrollView replace LinkagePager\n\u003e* More CoordinatorLayout.Behavior...\n\u003e* More Configurations...\n\n### Lincense\n```lincense\nThe MIT License (MIT)\n\nCopyright (c) 2015 Hugo yu\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nStatus API Training Shop Blog About Pricing\n```\n","funding_links":[],"categories":["其他"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrosswall%2FAndroid-Coverflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrosswall%2FAndroid-Coverflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrosswall%2FAndroid-Coverflow/lists"}