{"id":18498709,"url":"https://github.com/vivian8725118/cardview","last_synced_at":"2025-04-06T16:11:28.896Z","repository":{"id":44331231,"uuid":"75272630","full_name":"vivian8725118/CardView","owner":"vivian8725118","description":"小票形状的CardView，可以修改阴影颜色","archived":false,"fork":false,"pushed_at":"2017-04-05T08:10:43.000Z","size":703,"stargazers_count":499,"open_issues_count":1,"forks_count":68,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-30T14:10:05.583Z","etag":null,"topics":["cardview","receipt","shadow"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vivian8725118.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-01T08:40:57.000Z","updated_at":"2025-03-07T05:36:03.000Z","dependencies_parsed_at":"2022-09-14T17:23:32.182Z","dependency_job_id":null,"html_url":"https://github.com/vivian8725118/CardView","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/vivian8725118%2FCardView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivian8725118%2FCardView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivian8725118%2FCardView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivian8725118%2FCardView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vivian8725118","download_url":"https://codeload.github.com/vivian8725118/CardView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509221,"owners_count":20950232,"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":["cardview","receipt","shadow"],"created_at":"2024-11-06T13:42:15.278Z","updated_at":"2025-04-06T16:11:28.865Z","avatar_url":"https://github.com/vivian8725118.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CardView\n类似小票效果的卡片列表，并且可以修改阴影颜色\n\n# Usage\n可以直接引用CardView\n```\nCardView cardView=new CardView(context);\n//修改CardView的主题颜色\ncardView.changeTheme(0xff01a3a1);\n```\n# 原理\n用paint.setShadowLayer来设置阴影颜色和尺寸，进行阴影绘制，用path来画出drawable的形状。\n封装了changeTheme的方法，可以直接设置主题的颜色。\n\n本示例中为了更好地实现效果，用了```TopDrawable、CenterDrawable、BottomDrawable```三部分拼接而成，也可以用来实现打印小票的视觉效果。另外添加了一个类似\u003cb\u003eFloatingButton\u003c/b\u003e效果的```CircleShadowDrawable```。\n# 效果图\n\u003cdiv\u003e\n\u003cimg hspace=\"20\" src=\"https://github.com/vivian8725118/ShadeDemo/blob/master/art/S61201-155859.jpg\" width=\"40%\"/\u003e\n\u003cimg src=\"https://github.com/vivian8725118/ShadeDemo/blob/master/art/S61201-163058.jpg\" width=\"40%\"/\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvivian8725118%2Fcardview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvivian8725118%2Fcardview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvivian8725118%2Fcardview/lists"}