{"id":13396195,"url":"https://github.com/florent37/HollyViewPager","last_synced_at":"2025-03-13T22:31:54.792Z","repository":{"id":91120154,"uuid":"40362112","full_name":"florent37/HollyViewPager","owner":"florent37","description":"A different beautiful ViewPager, with quick swipe controls","archived":true,"fork":false,"pushed_at":"2020-07-02T11:54:12.000Z","size":19289,"stargazers_count":1131,"open_issues_count":11,"forks_count":181,"subscribers_count":38,"default_branch":"master","last_synced_at":"2024-09-26T22:04:40.703Z","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/florent37.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":"2015-08-07T13:37:07.000Z","updated_at":"2024-05-29T09:03:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d48019e-5dea-4afb-9fe7-4ef3a8d03e10","html_url":"https://github.com/florent37/HollyViewPager","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/florent37%2FHollyViewPager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FHollyViewPager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FHollyViewPager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FHollyViewPager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florent37","download_url":"https://codeload.github.com/florent37/HollyViewPager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243494009,"owners_count":20299752,"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:42.224Z","updated_at":"2025-03-13T22:31:51.927Z","avatar_url":"https://github.com/florent37.png","language":"Java","funding_links":["https://ko-fi.com/A160LCC'"],"categories":["Index `(light-weight pages)`","Index","Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# HollyViewPager\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-HollyViewPager-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/2388)\n\n\n\u003ca href=\"https://goo.gl/WXW8Dc\"\u003e\n  \u003cimg alt=\"Android app on Google Play\" src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\n\n[![screen](https://raw.githubusercontent.com/florent37/HollyViewPager/master/screens/1024_small.png)](https://www.youtube.com/watch?v=4ZmjEde-Xho)\n\n[![screen](http://j.gifs.com/vZ4D9G.gif)](https://www.youtube.com/watch?v=4ZmjEde-Xho)\n\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.github.florent37.beautifulviewpager.sample\"\u003e\n  \u003cimg alt=\"Android app on Google Play\" src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\n# Usage\n\nAdd a HollyViewPager in your layout\n\n```xml\n\u003ccom.github.florent37.hollyviewpager.HollyViewPager\n        android:id=\"@+id/hollyViewPager\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        app:hvp_headerHeight=\"150dp\" /\u003e\n```\n        \n```java\nHollyViewPager hollyViewPager = findViewById(R.id.hollyViewPager);\nhollyViewPager.setAdapter(...);\n\nhollyViewPager.setConfigurator(new HollyViewPagerConfigurator() {\n           @Override\n           public float getHeightPercentForPage(int page) {\n               return PERCENT;\n           }\n       });\n```\n\n# Pages\nYou pages should contain a recyclerview or a ObservableScrollView\n----------\n\n# RecyclerView\n```java\t\nHollyViewPagerBus.registerRecyclerView(getActivity(), recyclerView);\n```\n\nAdapter\n```java\n\tprotected static final int TYPE_HEADER = 0;\n    protected static final int TYPE_CELL = 1;\n\n    @Override\n    public int getItemViewType(int position) {\n        switch (position){\n            case 0: return TYPE_HEADER;\n            default: return TYPE_CELL;\n        }\n    }\n\n    @Override\n    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int type) {\n        View view;\n        switch (type){\n            case TYPE_HEADER:\n                new RecyclerView.ViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.hvp_header_placeholder,viewGroup,false)) {};\n                break;\n            default:\n                ...YOUR_VIEW...\n                break;\n        }\n    }\n```\n\n# ScrollView\n\n```java\t\nHollyViewPagerBus.registerScrollView(getActivity(), scrollView);\n```\n\n```xml\t\n\u003ccom.github.ksoichiro.android.observablescrollview.ObservableScrollView \n\txmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:id=\"@+id/scrollView\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:scrollbars=\"none\"\u003e\n\n    \u003cLinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:orientation=\"vertical\"\u003e\n\n        \u003cinclude layout=\"@layout/hvp_header_placeholder\"/\u003e\n\n        ... YOUR CONTENT ...\n```\n\n# Download\n\n\u003ca href='https://ko-fi.com/A160LCC' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\nIn your module [![Download](https://api.bintray.com/packages/florent37/maven/HollyViewPager/images/download.svg)](https://bintray.com/florent37/maven/HollyViewPager/_latestVersion)\n```groovy\ncompile 'com.github.florent37:hollyviewpager:1.0.1'\ncompile 'com.github.ksoichiro:android-observablescrollview:1.5.2'\n```\n\n# Credits\n\nAuthor: Florent Champigny \n\nFiches Plateau Moto : [https://www.fiches-plateau-moto.fr/](https://www.fiches-plateau-moto.fr/)\n\n\u003ca href=\"https://goo.gl/WXW8Dc\"\u003e\n  \u003cimg alt=\"Android app on Google Play\" src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://plus.google.com/+florentchampigny\"\u003e\n  \u003cimg alt=\"Follow me on Google+\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/gplus.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/florent_champ\"\u003e\n  \u003cimg alt=\"Follow me on Twitter\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/twitter.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.linkedin.com/profile/view?id=297860624\"\u003e\n  \u003cimg alt=\"Follow me on LinkedIn\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/linkedin.png\" /\u003e\n\u003c/a\u003e\n\n\nLicense\n--------\n\n    Copyright 2015 florent37, Inc.\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2FHollyViewPager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorent37%2FHollyViewPager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2FHollyViewPager/lists"}