{"id":20522023,"url":"https://github.com/pradyuman7/pager","last_synced_at":"2025-04-14T02:52:40.106Z","repository":{"id":96936040,"uuid":"171406344","full_name":"Pradyuman7/Pager","owner":"Pradyuman7","description":"🔥 An android library to get simple menu options on steroids 💪","archived":false,"fork":false,"pushed_at":"2019-05-14T02:04:22.000Z","size":627,"stargazers_count":69,"open_issues_count":1,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-27T20:50:22.275Z","etag":null,"topics":["android","android-library","android-menu","android-ui","beautiful-ui","customisation","java","library","menu","page"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pradyuman7.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2019-02-19T04:42:17.000Z","updated_at":"2024-01-16T09:36:25.000Z","dependencies_parsed_at":"2023-06-09T00:45:37.799Z","dependency_job_id":null,"html_url":"https://github.com/Pradyuman7/Pager","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradyuman7%2FPager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradyuman7%2FPager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradyuman7%2FPager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradyuman7%2FPager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pradyuman7","download_url":"https://codeload.github.com/Pradyuman7/Pager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813827,"owners_count":21165631,"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":["android","android-library","android-menu","android-ui","beautiful-ui","customisation","java","library","menu","page"],"created_at":"2024-11-15T22:33:42.350Z","updated_at":"2025-04-14T02:52:40.098Z","avatar_url":"https://github.com/Pradyuman7.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pager \n\n[![](https://www.jitpack.io/v/Pradyuman7/Pager.svg)](https://www.jitpack.io/#Pradyuman7/Pager)\n[![API](https://img.shields.io/badge/API-15%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=15)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Pager-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/7537)\n[![Pager](https://img.shields.io/badge/Pradyuman7-Pager-yellow.svg?style=flat)](https://github.com/Pradyuman7/Pager)\n[![AndroidDevDigest](https://img.shields.io/badge/AndroidDevDigest-Pager-darkblue.svg?style=flat)](https://www.androiddevdigest.com/digest-219/)\n[![UX Planet](https://img.shields.io/badge/UX_Planet-Pager-lightblue.svg?style=flat)](\nhttps://uxplanet.org/ui-libraries-by-top-app-developers-12588746efb0)\n[![AndroidWeekly](https://img.shields.io/badge/AndroidWeekly-Pager-black.svg?style=flat)](https://androidweekly.cn/android-dev-weekly-issue-218/)\n[![AwesomeAndroid](https://img.shields.io/badge/Awesome_Android-Pager-purple.svg?style=flat)](https://android.libhunt.com/pager-alternatives)\n[ ![Download](https://api.bintray.com/packages/pradyuman7/Pager/Pager/images/download.svg?version=V1.1) ](https://bintray.com/pradyuman7/Pager/Pager/V1.0/link)\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"250\" height=\"250\" src=\"https://user-images.githubusercontent.com/41565823/52990799-2c5b2980-340a-11e9-8e74-d530ee593c01.gif\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  🔥 An android library to get simple menu options to 💪. Inspired by \u003ca href=\"https://github.com/SpecialCyCi/AndroidResideMenu\"\u003e AndroidResideMenu\u003c/a\u003e.\n\u003c/p\u003e\n\n## GIF\n\n\u003cp align=\"left\"\u003e\n  \u003cimg width=\"300\" height=\"550\" src=\"https://user-images.githubusercontent.com/41565823/52993954-3edb6000-3416-11e9-94ef-bf9578abfe7f.gif\"\u003e\n\u003c/p\u003e\n\n## AndroidPub(Medium) Post\n\n[You can read the AndroidPub post about this library, the perks it provides and other details here.](https://medium.com/@pradyumandixit/how-to-get-your-menu-options-on-steroids-aef1b5a40862)\n\n## Prerequisites\n\nAdd this in your root `build.gradle` file (**not** your module `build.gradle` file):\n\n```gradle\nallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://www.jitpack.io' }\n\t\t}\n\t}\n```\n\n## Dependency\n\nAdd this to your module's `build.gradle` file (make sure the version matches the JitPack badge above):\n\n```gradle\ndependencies \n\t        implementation 'com.github.Pradyuman7:Pager:V1.1'\n\t}\n```\n\n## Usage\n\n- Add the layout in your XML file for the activity, like this:\n\n```XML\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cmerge\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\"com.pd.cards.Main2Activity\"\n    tools:ignore=\"all\"\n    tools:showIn=\"@layout/activity_main2\"\u003e\n\n    \u003ccom.pd.pager.PagerLayout\n        android:id=\"@+id/rl_main\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_gravity=\"center\"\n        app:num=\"five\"/\u003e\n\u003c/merge\u003e\n```\n***\n\n```XMl\n\u003ccom.pd.pager.PagerLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:orientation=\"vertical\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n\n\u003c/com.pd.pager.PagerLayout\u003e\n```\n***\n- Configure the layout and add the fragments like this:\n\n```java\nPagerLayout pager = findViewById(R.id.rl_main);\n\n        List\u003cString\u003e titleList = new ArrayList\u003c\u003e();\n        titleList.add(\"Page1\");\n        titleList.add(\"Page2\");\n        titleList.add(\"Page3\");\n        titleList.add(\"Page4\");\n        titleList.add(\"Page5\");\n\n        if(pager == null)\n            Log.i(\"Pager_Null\",\"Pager is null\");\n\n\n        pager.setTitles(titleList);\n\n\n        fragments.add(new Page1());\n        fragments.add(new Page2());\n        fragments.add(new Page3());\n        fragments.add(new Page4());\n        fragments.add(new Page5());\n\n        FragmentPagerAdapter adapter = new FragmentPagerAdapter(getSupportFragmentManager()) {\n            @Override\n            public Fragment getItem(int position) {\n                return fragments.get(position);\n            }\n\n            @Override\n            public int getCount() {\n                return fragments.size();\n            }\n        };\n\n        pager.setAdapter(adapter);\n```\n\n- See the app code to know more about this.\n\n## Pull Request\n\nHave some new ideas or found a bug? Do not hesitate to open an `issue` and make a `pull request`.\n\n## License\n\n**Pager** is under [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0). See the [LICENSE](LICENSE.md) file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradyuman7%2Fpager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradyuman7%2Fpager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradyuman7%2Fpager/lists"}