{"id":23136569,"url":"https://github.com/tiiime/android-drawable-dsl","last_synced_at":"2026-05-01T09:31:32.691Z","repository":{"id":45476409,"uuid":"280629486","full_name":"tiiime/android-drawable-dsl","owner":"tiiime","description":"Declare Android shape drawable with dsl \u0026\u0026 dynamic.","archived":false,"fork":false,"pushed_at":"2021-12-12T03:37:36.000Z","size":2013,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T09:14:19.977Z","etag":null,"topics":["android","drawable","dsl","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/tiiime.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":"2020-07-18T10:04:55.000Z","updated_at":"2021-12-12T03:38:44.000Z","dependencies_parsed_at":"2022-07-15T04:46:50.459Z","dependency_job_id":null,"html_url":"https://github.com/tiiime/android-drawable-dsl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tiiime/android-drawable-dsl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiiime%2Fandroid-drawable-dsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiiime%2Fandroid-drawable-dsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiiime%2Fandroid-drawable-dsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiiime%2Fandroid-drawable-dsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiiime","download_url":"https://codeload.github.com/tiiime/android-drawable-dsl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiiime%2Fandroid-drawable-dsl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32492104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","drawable","dsl","kotlin"],"created_at":"2024-12-17T12:21:26.059Z","updated_at":"2026-05-01T09:31:32.641Z","avatar_url":"https://github.com/tiiime.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Drawable Dsl\n[![Release](https://jitpack.io/v/tiiime/android-drawable-dsl.svg)](https://jitpack.io/#tiiime/android-drawable-dsl) ![](https://img.shields.io/github/languages/code-size/tiiime/android-drawable-dsl.svg) ![](https://img.shields.io/github/languages/top/tiiime/android-drawable-dsl.svg)\n\n## Example\n\n### shape\n```kotlin\nprivate fun createShapeDrawable() = shape(shape = GradientDrawable.RECTANGLE) {\n\n    corners(\n        corner = 20F,\n        cornerBottomLeft = 80F\n    )\n\n    gradient(\n        startColor = Color.RED,\n        endColor = Color.WHITE\n    )\n\n    stroke(\n        color = Color.BLACK,\n        width = 10\n    )\n}\n```\n\n![](./screenshot/shape.png)\n\n\n### layer-list\n```kotlin\nprivate fun createLayerList() = layerList(\n    item {\n        shape = shape {\n            corners(\n                cornerTopRight = 80F,\n                cornerBottomLeft = 80F\n            )\n\n            gradient(\n                startColor = Color.RED,\n                centerColor = Color.GREEN,\n                endColor = Color.BLUE\n            )\n        }\n    },\n    item(\n        left = 30,\n        top = 30,\n        right = 30,\n        bottom = 30\n    ) {\n        shape = shape {\n            color = Color.WHITE\n            corners(80F)\n        }\n    }\n)\n\n```\n\n![](./screenshot/layer.png)\n\n\n\n### more \n\n![](screenshot/animate.gif)\n\n\n## Install\n\n```groovy\nallprojects {\n    repositories {\n       jcenter()\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\n\n[![Release](https://jitpack.io/v/tiiime/android-drawable-dsl.svg)](https://jitpack.io/#tiiime/android-drawable-dsl)\n\n\n```groovy\ncompile \"com.github.tiiime:android-drawable-dsl:0.2.0\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiiime%2Fandroid-drawable-dsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiiime%2Fandroid-drawable-dsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiiime%2Fandroid-drawable-dsl/lists"}