{"id":19864213,"url":"https://github.com/youlookwhat/sceneryview","last_synced_at":"2025-05-02T05:30:45.366Z","repository":{"id":50466967,"uuid":"234284406","full_name":"youlookwhat/SceneryView","owner":"youlookwhat","description":"🏜 The scenery is unique here~ 自定义View，圆、三角形、云朵，平移及旋转动画。","archived":false,"fork":false,"pushed_at":"2022-01-07T06:51:49.000Z","size":688,"stargazers_count":37,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T22:42:47.048Z","etag":null,"topics":["android","views"],"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/youlookwhat.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":"2020-01-16T09:34:27.000Z","updated_at":"2025-04-05T15:34:24.000Z","dependencies_parsed_at":"2022-08-19T17:40:10.809Z","dependency_job_id":null,"html_url":"https://github.com/youlookwhat/SceneryView","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youlookwhat%2FSceneryView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youlookwhat%2FSceneryView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youlookwhat%2FSceneryView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youlookwhat%2FSceneryView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youlookwhat","download_url":"https://codeload.github.com/youlookwhat/SceneryView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251992602,"owners_count":21677018,"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":["android","views"],"created_at":"2024-11-12T15:17:49.428Z","updated_at":"2025-05-02T05:30:40.358Z","avatar_url":"https://github.com/youlookwhat.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## View\n\n[![](https://jitpack.io/v/youlookwhat/SceneryView.svg)](https://jitpack.io/#youlookwhat/SceneryView) [![minSdk for Scenery](https://img.shields.io/badge/minSdk-15-green.svg)](#)\n\n🏜 Hand-painted scenery, let it fly~\n\n\n### 1.SceneryView\n![](https://github.com/youlookwhat/SceneryView/blob/master/art/SceneryView.gif?raw=true)\n\n - 原型来自dribbble：[Gallery App Icon](https://dribbble.com/shots/4761564)\n - 对应文章：[《自定义View实现Dribbble上动感的Gallery App Icon》](https://juejin.cn/post/7024883320269832205)\n\n\n\n### 2.HorizontalWaveProgressView\n![](https://github.com/youlookwhat/SceneryView/blob/master/art/HorizontalWaveProgressView.GIF?raw=true)\n\n - 对应文章：[《自定义View实现横向的双水波纹进度条》](https://juejin.cn/post/7025249776069246984)\n\n\n\n### Usage\n#### Gradle\n```java\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n```\n\n```java\ndependencies {\n\timplementation 'com.github.youlookwhat:SceneryView:1.0.1'\n}\n```\n\n#### In layout.xml\n```xml\n\u003cme.jingbin.scenery.SceneryView\n    android:id=\"@+id/scenery\"\n    android:layout_width=\"100dp\"\n    android:layout_height=\"100dp\"\n    app:background_color=\"#2483D9\"\n    app:cloud_color=\"#0000FF\"\n    app:left_mountain_color=\"#e0e0e0\"\n    app:mid_mountain_color=\"#ff0000\"\n    app:right_mountain_color=\"#e0e0e0\"\n    app:sun_color=\"#ffff00\" /\u003e\n```\n\n#### In code\n```java\n\tSceneryView sceneryIcon = findViewById(R.id.scenery_icon);\n\tsceneryIcon.setCloudColor(Color.parseColor(\"#0000FF\"));\n\tsceneryIcon.setColorBackground(Color.parseColor(\"#2483D9\"));\n\tsceneryIcon.setMidMouColor(Color.parseColor(\"#ff0000\"));\n\tsceneryIcon.setLeftMouColor(Color.parseColor(\"#e0e0e0\"));\n\tsceneryIcon.setRightMouColor(Color.parseColor(\"#e0e0e0\"));\n\tsceneryIcon.setSunColor(Color.parseColor(\"#ffff00\"));\n\t\n\tsceneryIcon.playAnimator();\n\tsceneryIcon.setOnAnimationListener(new SceneryView.AnimationListener() {\n\t    @Override\n\t    public void onAnimationEnd() {\n\t\n\t    }\n\t});\n```\n\n### License\n```\nCopyright 2020 jingbin\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n\n\u003c!--\n## link\n - 云朵及动画：https://www.jianshu.com/p/ff7c3d36b5ef\n - 烧杯滴水动画：https://github.com/Ajian-studio/GABottleLoading\n - 很多自定义View参考：https://github.com/samlss/FunnyViews\n - 自定义View学习：https://blog.csdn.net/carson_ho/article/details/62037696\n - 高级UI示例：https://github.com/zincPower/UI2018\n--\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoulookwhat%2Fsceneryview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoulookwhat%2Fsceneryview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoulookwhat%2Fsceneryview/lists"}