{"id":21083842,"url":"https://github.com/spongebobsun/tabbar","last_synced_at":"2025-05-16T09:33:36.805Z","repository":{"id":84564667,"uuid":"44442936","full_name":"SpongeBobSun/TabBar","owner":"SpongeBobSun","description":"Tab Bar widget for Android.","archived":false,"fork":false,"pushed_at":"2015-10-19T07:11:19.000Z","size":284,"stargazers_count":12,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-31T00:41:15.715Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpongeBobSun.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}},"created_at":"2015-10-17T15:35:03.000Z","updated_at":"2020-04-03T05:46:52.000Z","dependencies_parsed_at":"2023-03-02T06:15:52.098Z","dependency_job_id":null,"html_url":"https://github.com/SpongeBobSun/TabBar","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/SpongeBobSun%2FTabBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongeBobSun%2FTabBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongeBobSun%2FTabBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongeBobSun%2FTabBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpongeBobSun","download_url":"https://codeload.github.com/SpongeBobSun/TabBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225420340,"owners_count":17471577,"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-11-19T20:19:59.832Z","updated_at":"2024-11-19T20:20:00.334Z","avatar_url":"https://github.com/SpongeBobSun.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#TabBar\n####Tab Bar widget for Android.\n\n![](./art/shot.gif)\n\n#Project Structure\nAfter checkout this repo, you will get a sample project and the TabBar module is located in `tabbar` folder.\n\n#Usage\n##Add to layout\n\n\t\t\u003csun.bob.tabbar.TabBar\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"50dp\"\n            android:id=\"@+id/id_tabbar\" /\u003e\n##Add tabs\nUse below method to add tabs to the bar.\n\n\t\taddTab(int imgId, int highlightImgId, String text, int fontColor, int highlightFontColor)\n\t\t\n\t\t'imgId' is the resource id for icon's normal state.\n\t\t'highlightImgId' is the resource id for icon's checked state.\n\t\t'text' is the text under the label\n\t\t'fontColor' is text color for normal state.\n\t\t'highlightFontColor' is text color for checked state.\n\n##Add OnTabClickedListener\nWhen the tab is clicked, it will call the callback defined in `OnTabClickedListener` with the tab index as argument.\n\nFor example,\n\n\t\tclass OnClickedListener implements OnTabClickedListener{\n\t\t\t@Override\n\t\t\t public void onTabClicked(int index) {\n\t\t\t MainActivity that = MainActivity.this;\n\t\t\tthat.getSupportFragmentManager().beginTransaction().hide(currentFragment).show(fragments.get(index)).commit();\n\t\t\tcurrentFragment = fragments.get(index);\n\t\t\t}\n\t\t}\n\n#License\nCopyright 2015 Bob Sun\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\nSee LICENSE file for details\n\n####Icons from [icons8.com](http://icons8.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspongebobsun%2Ftabbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspongebobsun%2Ftabbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspongebobsun%2Ftabbar/lists"}