{"id":22986057,"url":"https://github.com/dora4/dview-tabbar","last_synced_at":"2025-08-13T20:32:55.309Z","repository":{"id":261791419,"uuid":"860029214","full_name":"dora4/dview-tabbar","owner":"dora4","description":"选项卡栏","archived":false,"fork":false,"pushed_at":"2024-11-08T12:34:21.000Z","size":70,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-08T13:34:58.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/dora4.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-19T17:35:40.000Z","updated_at":"2024-11-08T12:34:09.000Z","dependencies_parsed_at":"2024-11-08T13:35:03.425Z","dependency_job_id":"ac5b740f-6771-439c-b71f-4306c5eee3fe","html_url":"https://github.com/dora4/dview-tabbar","commit_stats":null,"previous_names":["dora4/dview-tabbar"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdview-tabbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdview-tabbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdview-tabbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdview-tabbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dora4","download_url":"https://codeload.github.com/dora4/dview-tabbar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229780079,"owners_count":18122916,"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-12-15T03:38:53.970Z","updated_at":"2025-08-13T20:32:55.287Z","avatar_url":"https://github.com/dora4.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"dview-tabbar\n![Release](https://jitpack.io/v/dora4/dview-tabbar.svg)\n--------------------------------\n\n#### 卡片\n![DORA视图 多界掌控者](https://github.com/user-attachments/assets/0df8e362-0fcc-4ba1-82f2-52a64a8a424d)\n\n#### Gradle依赖配置\n\n```groovy\n// 添加以下代码到项目根目录下的build.gradle\nallprojects {\n    repositories {\n        maven { url \"https://jitpack.io\" }\n    }\n}\n// 添加以下代码到app模块的build.gradle\ndependencies {\n    implementation 'com.github.dora4:dview-tabbar:1.1'\n}\n```\n\n#### 使用控件\n\n```kotlin\n        binding.tabBar.addTextTab(\"频道1\")\n        binding.tabBar.addTextTab(\"频道2\")\n        binding.tabBar.addTextTab(\"频道3\")\n        binding.tabBar.setOnTabClickListener(object : DoraTabBar.OnTabClickListener {\n\n            override fun onTabClick(view: View, position: Int) {\n                when (position) {\n                    0 -\u003e {\n                        showPage(pageOne)\n                    }\n\n                    1 -\u003e {\n                        showPage(pageTwo)\n                    }\n\n                    2 -\u003e {\n                        showPage(pageThree)\n                    }\n                }\n            }\n        })\n```\n\n#### 示例代码\n\nhttps://github.com/dora4/dora_samples\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdora4%2Fdview-tabbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdora4%2Fdview-tabbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdora4%2Fdview-tabbar/lists"}