{"id":22986062,"url":"https://github.com/dora4/dview-titlebar","last_synced_at":"2025-08-13T20:32:55.542Z","repository":{"id":163268312,"uuid":"638567113","full_name":"dora4/dview-titlebar","owner":"dora4","description":"仿微信标题栏","archived":false,"fork":false,"pushed_at":"2024-09-04T19:56:04.000Z","size":128,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-06T04:52:26.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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":"2023-05-09T16:14:25.000Z","updated_at":"2024-09-04T19:56:07.000Z","dependencies_parsed_at":"2023-10-03T18:22:43.380Z","dependency_job_id":"4f1a8f9f-c06b-48ac-ad80-614c114d9b3e","html_url":"https://github.com/dora4/dview-titlebar","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdview-titlebar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdview-titlebar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdview-titlebar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdview-titlebar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dora4","download_url":"https://codeload.github.com/dora4/dview-titlebar/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:56.434Z","updated_at":"2025-08-13T20:32:55.520Z","avatar_url":"https://github.com/dora4.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"dview-titlebar\n![Release](https://jitpack.io/v/dora4/dview-titlebar.svg)\n--------------------------------\n\n#### 卡片\n![DORA视图 标题栏](https://github.com/user-attachments/assets/4626b2db-dd46-4cbb-9884-c7af4caef1ba)\n![DORA视图 DORA战士](https://github.com/user-attachments/assets/9233a84c-422a-408a-b812-acc2bb95ec4d)\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-titlebar:1.37'\n}\n```\n\n#### 控件使用\n```xml\n        \u003cdora.widget.DoraTitleBar\n            android:id=\"@+id/titleBar\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            app:dview_title=\"@string/common_title\"\n            app:dview_backIcon=\"@drawable/ic_back\"\n            app:dview_backIconSize=\"26dp\"\n            app:dview_isTitleTextBold=\"true\"\n            android:background=\"@color/colorPrimary\"/\u003e\n```\n```kotlin\n        mBinding.titleBar\n            .addMenuButton(R.drawable.ic_save)\n            .addMenuButton(R.drawable.ic_confirm)\n            .setOnIconClickListener(object : DoraTitleBar.OnIconClickListener {\n            override fun onIconBackClick(icon: AppCompatImageView) {\n                LogUtils.i(\"返回\")\n            }\n\n            override fun onIconMenuClick(position: Int, icon: AppCompatImageView) {\n                LogUtils.i(\"点击了第${position}个菜单\")\n            }\n        })\n```\n\n#### 示例代码\n\nhttps://github.com/dora4/dora_samples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdora4%2Fdview-titlebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdora4%2Fdview-titlebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdora4%2Fdview-titlebar/lists"}