{"id":13645523,"url":"https://github.com/sho5nn/ZDepthShadow","last_synced_at":"2025-04-21T14:31:29.671Z","repository":{"id":23758865,"uuid":"27133274","full_name":"sho5nn/ZDepthShadow","owner":"sho5nn","description":"Android - draw z-depth shadow of MaterialDesign","archived":false,"fork":false,"pushed_at":"2016-10-19T14:26:25.000Z","size":1088,"stargazers_count":571,"open_issues_count":6,"forks_count":79,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-08-04T00:07:07.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sho5nn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-25T15:51:47.000Z","updated_at":"2024-07-06T07:16:06.000Z","dependencies_parsed_at":"2022-08-22T05:50:32.736Z","dependency_job_id":null,"html_url":"https://github.com/sho5nn/ZDepthShadow","commit_stats":null,"previous_names":["shogomizumoto/zdepthshadow"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sho5nn%2FZDepthShadow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sho5nn%2FZDepthShadow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sho5nn%2FZDepthShadow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sho5nn%2FZDepthShadow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sho5nn","download_url":"https://codeload.github.com/sho5nn/ZDepthShadow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070173,"owners_count":21369839,"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-02T01:02:36.497Z","updated_at":"2025-04-21T14:31:29.335Z","avatar_url":"https://github.com/sho5nn.png","language":"Java","funding_links":[],"categories":["其他"],"sub_categories":[],"readme":"ZDepthShadowLayout\n==================\n\nAndroid - draw z-depth shadow of MaterialDesign\n\n## Demo\n\n![ZDepthShadowLayout GIF](./blobs/demo.gif)\n\n## Screen Capture\n\n![ZDepthShadowLayout GIF](./blobs/screen_capture.png)\n\n## Download\n\n```groovy\napply plugin: 'com.android.application'\n\nrepositories {\n    maven {\n        url \"https://jitpack.io\"\n    }\n}\n\nandroid {\n    // something code...\n}\n\ndependencies {\n    compile 'com.github.ShogoMizumoto:ZDepthShadowLayout:1.0.4'\n}\n```\n\n## How to Use\n\n```xml\n\u003cRelativeLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:shadow=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n\n    \u003capp.mosn.zdepthshadowlayout.ZDepthShadowLayout\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        shadow:z_depth=\"z_depth1\"\n        shadow:z_depth_shape=\"rect\"\n        shadow:z_depth_padding=\"z_depth5\"\u003e\n\n        \u003cTextView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:text=\"Change ZDepth\"\n            android:background=\"@android:color/white\"/\u003e\n\n    \u003c/app.mosn.zdepthshadowlayout.ZDepthShadowLayout\u003e\n\n\u003c/RelativeLayout\u003e\n```\n\n### Attribute\n\n#### configuration\n\n```xml\n\u003capp.mosn.zdepthshadowlayout.ZDepthShadowLayout\n    shadow:z_depth=\"z_depth1\"         // enum\n    shadow:z_depth_shape=\"rect\"       // enum\n    shadow:z_depth_padding=\"z_depth5\" // enum\n    shadow:z_depth_animDuration=\"150\" // integer\n    shadow:z_depth_doAnim=\"true\"      // boolean\n/\u003e\n```\n\n#### attrs.xml\n\n```xml\n\u003cresources\u003e\n    \u003cdeclare-styleable name=\"ZDepthShadowLayout\"\u003e\n        \u003cattr name=\"z_depth\" format=\"enum\"\u003e\n            \u003cenum name=\"z_depth0\" value=\"0\"/\u003e\n            \u003cenum name=\"z_depth1\" value=\"1\"/\u003e\n            \u003cenum name=\"z_depth2\" value=\"2\"/\u003e\n            \u003cenum name=\"z_depth3\" value=\"3\"/\u003e\n            \u003cenum name=\"z_depth4\" value=\"4\"/\u003e\n            \u003cenum name=\"z_depth5\" value=\"5\"/\u003e\n        \u003c/attr\u003e\n        \u003cattr name=\"z_depth_shape\" format=\"enum\"\u003e\n            \u003cenum name=\"rect\" value=\"0\"/\u003e\n            \u003cenum name=\"oval\" value=\"1\"/\u003e\n        \u003c/attr\u003e\n        \u003cattr name=\"z_depth_padding\" format=\"enum\"\u003e\n            \u003cenum name=\"z_depth0\" value=\"0\"/\u003e\n            \u003cenum name=\"z_depth1\" value=\"1\"/\u003e\n            \u003cenum name=\"z_depth2\" value=\"2\"/\u003e\n            \u003cenum name=\"z_depth3\" value=\"3\"/\u003e\n            \u003cenum name=\"z_depth4\" value=\"4\"/\u003e\n            \u003cenum name=\"z_depth5\" value=\"5\"/\u003e\n        \u003c/attr\u003e\n        \u003cattr name=\"z_depth_paddingLeft\" format=\"enum\"\u003e\n            \u003cenum name=\"z_depth0\" value=\"0\"/\u003e\n            \u003cenum name=\"z_depth1\" value=\"1\"/\u003e\n            \u003cenum name=\"z_depth2\" value=\"2\"/\u003e\n            \u003cenum name=\"z_depth3\" value=\"3\"/\u003e\n            \u003cenum name=\"z_depth4\" value=\"4\"/\u003e\n            \u003cenum name=\"z_depth5\" value=\"5\"/\u003e\n        \u003c/attr\u003e\n        \u003cattr name=\"z_depth_paddingTop\" format=\"enum\"\u003e\n            \u003cenum name=\"z_depth0\" value=\"0\"/\u003e\n            \u003cenum name=\"z_depth1\" value=\"1\"/\u003e\n            \u003cenum name=\"z_depth2\" value=\"2\"/\u003e\n            \u003cenum name=\"z_depth3\" value=\"3\"/\u003e\n            \u003cenum name=\"z_depth4\" value=\"4\"/\u003e\n            \u003cenum name=\"z_depth5\" value=\"5\"/\u003e\n        \u003c/attr\u003e\n        \u003cattr name=\"z_depth_paddingRight\" format=\"enum\"\u003e\n            \u003cenum name=\"z_depth0\" value=\"0\"/\u003e\n            \u003cenum name=\"z_depth1\" value=\"1\"/\u003e\n            \u003cenum name=\"z_depth2\" value=\"2\"/\u003e\n            \u003cenum name=\"z_depth3\" value=\"3\"/\u003e\n            \u003cenum name=\"z_depth4\" value=\"4\"/\u003e\n            \u003cenum name=\"z_depth5\" value=\"5\"/\u003e\n        \u003c/attr\u003e\n        \u003cattr name=\"z_depth_paddingBottom\" format=\"enum\"\u003e\n            \u003cenum name=\"z_depth0\" value=\"0\"/\u003e\n            \u003cenum name=\"z_depth1\" value=\"1\"/\u003e\n            \u003cenum name=\"z_depth2\" value=\"2\"/\u003e\n            \u003cenum name=\"z_depth3\" value=\"3\"/\u003e\n            \u003cenum name=\"z_depth4\" value=\"4\"/\u003e\n            \u003cenum name=\"z_depth5\" value=\"5\"/\u003e\n        \u003c/attr\u003e\n        \u003cattr name=\"z_depth_animDuration\" format=\"integer\"/\u003e\n        \u003cattr name=\"z_depth_doAnim\" format=\"boolean\"/\u003e\n    \u003c/declare-styleable\u003e\n\u003c/resources\u003e\n```\n\n## What is ZDepth?\n\n![ZDepthShadowLayout GIF](./blobs/shadow_zdepth.png)\n\n#### Example : z-depth 5\n\n![ZDepthShadowLayout GIF](./blobs/zdepthshadow_zdepth_5.png)\n\n### Outline\n\n![ZDepthShadowLayout GIF](./blobs/zdepthshadow_layout_1.png)\n\n#### Example\n\n![ZDepthShadowLayout GIF](./blobs/zdepthshadow_layout_2.png)\n\n## MIT License\n\nThis library is released under the MIT License, see LICENSE.txt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsho5nn%2FZDepthShadow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsho5nn%2FZDepthShadow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsho5nn%2FZDepthShadow/lists"}