{"id":19793648,"url":"https://github.com/h6ah4i/android-tablayouthelper","last_synced_at":"2025-06-25T02:35:21.037Z","repository":{"id":35995256,"uuid":"40287197","full_name":"h6ah4i/android-tablayouthelper","owner":"h6ah4i","description":"A small library which helps to use TabLayout with ViewPager more easily.","archived":false,"fork":false,"pushed_at":"2021-02-11T01:57:16.000Z","size":863,"stargazers_count":187,"open_issues_count":4,"forks_count":27,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-01T02:38:58.117Z","etag":null,"topics":["android","tablayout","tabs"],"latest_commit_sha":null,"homepage":null,"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/h6ah4i.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}},"created_at":"2015-08-06T05:53:47.000Z","updated_at":"2025-04-14T07:30:06.000Z","dependencies_parsed_at":"2022-09-01T08:50:48.398Z","dependency_job_id":null,"html_url":"https://github.com/h6ah4i/android-tablayouthelper","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/h6ah4i/android-tablayouthelper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h6ah4i%2Fandroid-tablayouthelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h6ah4i%2Fandroid-tablayouthelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h6ah4i%2Fandroid-tablayouthelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h6ah4i%2Fandroid-tablayouthelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h6ah4i","download_url":"https://codeload.github.com/h6ah4i/android-tablayouthelper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h6ah4i%2Fandroid-tablayouthelper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261791696,"owners_count":23210178,"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","tablayout","tabs"],"created_at":"2024-11-12T07:10:40.798Z","updated_at":"2025-06-25T02:35:21.006Z","avatar_url":"https://github.com/h6ah4i.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"TabLayoutHelper\n===============\n\nA small library which helps to use `TabLayout` with `ViewPager` more easily.\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.h6ah4i.android.tablayouthelper/tablayouthelper/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.h6ah4i.android.tablayouthelper/tablayouthelper)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-TabLayoutHelper-green.svg?style=flat)](https://android-arsenal.com/details/1/2273)\n\n---\n\n- Automatically switch `TabLayout.MODE_FIXED` and `TabLayout.MODE_SCROLLABLE` depends on total tab width.\n- Easily to implement custom tab views\n\n\u003ca href=\"./pic/demo.gif?raw=true\"\u003e\u003cimg src=\"./pic/demo.gif?raw=true\" alt=\"Example app\" /\u003e\u003c/a\u003e\n\nTarget platforms\n---\n\n- API level 14 or later\n\nLatest version\n---\n\n- Version 1.0.0  (September 24, 2018)\n\nGetting started\n---\n\nThis library is published on Maven Central. Just add these lines to `build.gradle`.\n\n```gradle\ndependencies {\n    implementation 'com.h6ah4i.android.tablayouthelper:tablayouthelper:1.0.0'\n}\n```\n\n**NOTE**\n- Since v1.0.0, this library has been migrated to AndroidX. If you still need to use support libraries, use v0.9.1 instead.\n\nUsage\n---\n\n```java\nViewPager viewPager = (ViewPager) findViewById(...);\nTabLayout tabLayout = (TabLayout) findViewById(...);\nPagerAdapter adapter = new XXXPagerAdapter();\n\nviewPager.setAdapter(adapter);\n\n// initialize the TabLayoutHelper instance\nmTabLayoutHelper = new TabLayoutHelper(tabLayout, viewPager);\n\n// [Optional] enables auto tab mode adjustment\nmTabLayoutHelper.setAutoAdjustTabModeEnabled(true);\n```\n\nLicense\n---\n\nThis library is licensed under the [Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nSee [`LICENSE`](LICENSE) for full of the license text.\n\n    Copyright (C) 2015 Haruki Hasegawa\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%2Fh6ah4i%2Fandroid-tablayouthelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh6ah4i%2Fandroid-tablayouthelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh6ah4i%2Fandroid-tablayouthelper/lists"}