{"id":18789191,"url":"https://github.com/dsiner/tabview","last_synced_at":"2025-04-13T13:32:26.687Z","repository":{"id":202173188,"uuid":"92754385","full_name":"Dsiner/TabView","owner":"Dsiner","description":"TabView for Android    ——Slide indicator/button/tab; 滑动指示器/按钮/TAB控件","archived":false,"fork":false,"pushed_at":"2020-12-24T13:26:15.000Z","size":178,"stargazers_count":22,"open_issues_count":2,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T05:02:14.159Z","etag":null,"topics":["button","indicator","tab","viewpager-indicator"],"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/Dsiner.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":"2017-05-29T15:55:25.000Z","updated_at":"2025-02-16T00:43:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"1288bb94-8236-4035-951d-93316422ba03","html_url":"https://github.com/Dsiner/TabView","commit_stats":null,"previous_names":["dsiner/tabview"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FTabView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FTabView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FTabView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FTabView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dsiner","download_url":"https://codeload.github.com/Dsiner/TabView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248721299,"owners_count":21151076,"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":["button","indicator","tab","viewpager-indicator"],"created_at":"2024-11-07T21:06:55.380Z","updated_at":"2025-04-13T13:32:25.850Z","avatar_url":"https://github.com/Dsiner.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TabView for Android\n\n[![License](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![API](https://img.shields.io/badge/API-9%2B-green.svg?style=flat)](https://android-arsenal.com/api?level=11)\n[![Download](https://api.bintray.com/packages/dsiner/maven/tabview/images/download.svg) ](https://bintray.com/dsiner/maven/tabview/_latestVersion)\n\n## Demos\n![](https://github.com/Dsiner/Resouce/blob/master/lib/TabView/tabview.gif)\n\n## Setup\nMaven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.dsiner.lib\u003c/groupId\u003e\n  \u003cartifactId\u003etabview\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\nor Gradle:\n```groovy\ncompile 'com.dsiner.lib:tabview:1.0.2'\n```\n\n\n## Usage\n```xml\n    \u003ccom.d.lib.tabview.TabView\n        android:id=\"@+id/tabv_tab\"\n        android:layout_width=\"365dp\"\n        android:layout_height=\"36dp\"\n        app:tabv_colorMain=\"#4577B7\"\n        app:tabv_colorSub=\"#ffffff\"\n        app:tabv_duration=\"250\"\n        app:tabv_padding=\"2px\"\n        app:tabv_textSize=\"14dp\"\n        app:tabv_title=\"TAB1;TAB2;TAB3;TAB4\" /\u003e\n```\n\n#### Operation\n###### app:tabv_title指定标题（或代码中设置标题，如下）\n```java\n        tabView.setTitle(new String[]{\"TAB1\", \"TAB2\", \"TAB3\", \"TAB4\"});\n```\n###### 其他参数都具有默认值(可选)\n\n#### SetListener(可选)\n```java\n        tabView.setOnTabSelectedListener(new TabView.OnTabSelectedListener() {\n            @Override\n            public void onTabSelected(int index) {\n                \n            }\n        });\n```\n\n#### Parameter\n| Attrs        | Type           | Function  |\n| ------------- |:-------------:| -----:|\n| tabv_title      | string | 标题(各个标题以\";\"分隔) |\n| tabv_textSize      | dimension      |   标题文字大小 |\n| tabv_colorMain | color      |    主颜色 |\n| tabv_colorSub | color      |    辅颜色 |\n| tabv_padding | dimension      |    边框宽度 |\n| tabv_paddingSide | dimension      |    两端预留间距 |\n| tabv_duration | integer      |    动画时长(ms) |\n\nMore usage see [Demo](app/src/main/java/com/d/slidelayout/MainActivity.java)\n\n\n## Licence\n\n```txt\nCopyright 2017 D\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsiner%2Ftabview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsiner%2Ftabview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsiner%2Ftabview/lists"}