{"id":13848155,"url":"https://github.com/dersoncheng/MultipleTheme","last_synced_at":"2025-07-12T11:33:39.120Z","repository":{"id":33743171,"uuid":"37397907","full_name":"dersoncheng/MultipleTheme","owner":"dersoncheng","description":"Android换肤／夜间模式的Android框架，配合theme和换肤控件框架可以做到无缝切换换肤（无需重启应用和当前页面）。         This framework of Android app support multiple theme(such as day/night mode) and needn’t finish current application or current activity when you switch theme-mode.","archived":false,"fork":false,"pushed_at":"2020-01-10T02:55:33.000Z","size":1476,"stargazers_count":1684,"open_issues_count":11,"forks_count":313,"subscribers_count":67,"default_branch":"master","last_synced_at":"2024-11-21T03:52:13.440Z","etag":null,"topics":[],"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/dersoncheng.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}},"created_at":"2015-06-14T03:43:26.000Z","updated_at":"2024-11-18T01:23:23.000Z","dependencies_parsed_at":"2022-08-26T10:30:22.839Z","dependency_job_id":null,"html_url":"https://github.com/dersoncheng/MultipleTheme","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/dersoncheng%2FMultipleTheme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dersoncheng%2FMultipleTheme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dersoncheng%2FMultipleTheme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dersoncheng%2FMultipleTheme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dersoncheng","download_url":"https://codeload.github.com/dersoncheng/MultipleTheme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225820303,"owners_count":17529138,"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-08-04T19:00:43.722Z","updated_at":"2024-11-21T23:31:03.135Z","avatar_url":"https://github.com/dersoncheng.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Framework\"\u003e\u003c/A\u003eFramework"],"readme":"MultipleTheme\n=================================== \n真正的支持无缝换肤／夜间模式的Android框架，配合theme和换肤控件框架可以做到无缝切换换肤（无需重启应用和当前页面）。\n-----------------------------------\n该应用框架可以实现无缝换肤／切换夜间模式的需求，需要在换肤／切换夜间模式的界面只需要使用框架里的自封装控件，其他界面的控件使用原生android控件即可。\n-----------------------------------\nThis framework of Android app support multiple theme(such as day/night mode) and needn’t finish current application or current activity.\n-----------------------------------\n###\n第一步：在项目的attr.xml声明自定义属性（各种模式都会用到的属性）\n###\nSetup 1:declare attribute in attr.xml\n###\n![github](https://github.com/dersoncheng/MultipleTheme/blob/master/source/setup1.png \"github\") \n###\n第二步：在项目的style.xml指定各种模式主题下的自定义属性值\n###\nSetup 2:declare attribute in style.xml\n###\n![github](https://github.com/dersoncheng/MultipleTheme/blob/master/source/setup2.png \"github\") \n###\n第三步：在页面布局文件里使用自定义属性值\n###\nSetup 3:use attribute in layout\n###\n![github](https://github.com/dersoncheng/MultipleTheme/blob/master/source/setup6.png \"github\") \n###\n第四步：在基类的onCreate方法里添加切换主题模式的逻辑代码\n###\nSetup 4:add the code of switch theme－mode in base activity\n###\n![github](https://github.com/dersoncheng/MultipleTheme/blob/master/source/setup3.png \"github\") \n###\n第五步：调用工具类方法切换主题模式\n###\nSetup 5:switch theme-mode in code\n###\n![github](https://github.com/dersoncheng/MultipleTheme/blob/master/source/setup4.png \"github\") \n\n###\n第六步：针对切换主题模式时需要立即更新页面ui的页面，需要使用框架里的封装控件\n###\nSetup 6:use customize-widget of framework at the activity that need update ui when switch theme-mode. \n###\n![github](https://github.com/dersoncheng/MultipleTheme/blob/master/source/setup5.png \n\"github\") \n![github](https://github.com/dersoncheng/MultipleTheme/blob/master/source/setup7.png \n\"github\") \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdersoncheng%2FMultipleTheme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdersoncheng%2FMultipleTheme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdersoncheng%2FMultipleTheme/lists"}