{"id":13641137,"url":"https://github.com/myinnos/SlidingTabWithColorIcons","last_synced_at":"2025-04-20T07:32:05.755Z","repository":{"id":80788243,"uuid":"82672135","full_name":"myinnos/SlidingTabWithColorIcons","owner":"myinnos","description":"Library for Sliding Tab With Color Icons!","archived":false,"fork":false,"pushed_at":"2018-09-24T08:28:25.000Z","size":1290,"stargazers_count":35,"open_issues_count":3,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-03T01:19:48.013Z","etag":null,"topics":["customtabbar","slidingtablayout","tab","tablayout","tabs","viewpager"],"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/myinnos.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}},"created_at":"2017-02-21T11:29:03.000Z","updated_at":"2022-01-22T09:48:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"183484bc-899d-4164-aa4e-1e31b37b4da8","html_url":"https://github.com/myinnos/SlidingTabWithColorIcons","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myinnos%2FSlidingTabWithColorIcons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myinnos%2FSlidingTabWithColorIcons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myinnos%2FSlidingTabWithColorIcons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myinnos%2FSlidingTabWithColorIcons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myinnos","download_url":"https://codeload.github.com/myinnos/SlidingTabWithColorIcons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223822053,"owners_count":17208795,"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":["customtabbar","slidingtablayout","tab","tablayout","tabs","viewpager"],"created_at":"2024-08-02T01:01:18.074Z","updated_at":"2024-11-09T11:30:45.226Z","avatar_url":"https://github.com/myinnos.png","language":"Java","readme":"# Sliding Tab With Color Icons\nSliding Tab With Color Icons!\n\n ![Sliding Tab With Color Icons - Example1](https://raw.githubusercontent.com/myinnos/SlidingTabWithColorIcons/master/gif/CustomTabLayout_01.gif)\n `` `` `` `` `` `` `` ``\n  ![Sliding Tab With Color Icons - Example2](https://raw.githubusercontent.com/myinnos/SlidingTabWithColorIcons/master/gif/CustomTabLayout_02.gif)\n  \n#### Kindly use the following links to use this library:\n\nIn build.gradle (Project)\n```java\nallprojects {\n\trepositories {\n\t...\n\t\tmaven { url \"https://jitpack.io\" }\n\t}\n}\n```\nAnd then in the other gradle file(may be your app gradle or your own module library gradle, but never add in both of them to avoid conflict.)\n```java\t\n dependencies {\n\tcompile 'com.github.myinnos:SlidingTabWithColorIcons:1.0'\n\t}\n```\nHow to use\n-----\n**Step 1:** create layout:\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tab=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n\n    \u003cin.myinnos.customimagetablayout.ChangeColorTab\n        android:id=\"@+id/tabChangeColorTab\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"60dp\"\u003e\n\n        \u003cin.myinnos.customimagetablayout.ChangeColorItem\n            android:layout_width=\"0dp\"\n            android:layout_height=\"fill_parent\"\n            android:layout_weight=\"1\"\n            android:padding=\"5dp\"\n            tab:item_icon=\"@drawable/ic_one\"\n            tab:item_icon_color=\"#ff45c01a\"\n            tab:item_tab_color=\"@color/colorPrimary\"\n            tab:item_tab_position=\"bottom\"\n            tab:item_text=\"message\"\n            tab:item_text_color=\"@color/colorPrimaryDark\"\n            tab:item_text_size=\"12sp\" /\u003e\n\t    \n\t    ...\n\n    \u003c/in.myinnos.customimagetablayout.ChangeColorTab\u003e\n\n    \u003candroid.support.v4.view.ViewPager\n        android:id=\"@+id/viewpager\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_below=\"@+id/tabChangeColorTab\" /\u003e\n\u003c/RelativeLayout\u003e\n```\n**Step 2:** set view pager to ChangeColorTab:\n```java\nViewPager mViewPager = (ViewPager) findViewById(R.id.viewpager);\nChangeColorTab changeColorTab = (ChangeColorTab) findViewById(R.id.tabChangeColorTab);\nchangeColorTab.setViewpager(mViewPager);\n//Attach page Adapter\nmViewPager.setAdapter(\u003cYOUR_VIEW_PAGE_ADAPTER\u003e);\n```\nFeatures\n-----\n- Set Tab Icon:\n```xml\n tab:item_icon=\"@drawable/ic_one\"\n```\n- Change Icon Color:\n```xml\n tab:item_icon_color=\"#ff45c01a\"\n```\n- Change Tab Color:\n```xml\n tab:item_tab_color=\"@color/colorPrimary\"\n```\n- Change Tab Line Position (bottom|top):\n```xml\n tab:item_tab_position=\"bottom\"\n```\n- Set Text (no need text simply skip this):\n```xml\n tab:item_text=\"message\"\n```\n- Change Text Color:\n```xml\n tab:item_text_color=\"@color/colorPrimaryDark\"\n```\n- Change Text Size:\n```xml\n tab:item_text_size=\"12sp\"\n```\n\n##### Any Queries? or Feedback, please let me know by opening a [new issue](https://github.com/myinnos/SlidingTabWithColorIcons/issues/new)!\n\n## Contact\n#### Prabhakar Thota\n* :globe_with_meridians: Website: [myinnos.in](http://www.myinnos.in \"Prabhakar Thota\")\n* :email: e-mail: contact@myinnos.in\n* :mag_right: LinkedIn: [PrabhakarThota](https://www.linkedin.com/in/prabhakarthota \"Prabhakar Thota on LinkedIn\")\n* :thumbsup: Twitter: [@myinnos](https://twitter.com/myinnos \"Prabhakar Thota on twitter\")    \n\nLicense\n-------\n\n    Copyright 2017 MyInnos\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","funding_links":[],"categories":["TabLayout"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyinnos%2FSlidingTabWithColorIcons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyinnos%2FSlidingTabWithColorIcons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyinnos%2FSlidingTabWithColorIcons/lists"}