https://github.com/youlookwhat/sceneryview
🏜 The scenery is unique here~ 自定义View,圆、三角形、云朵,平移及旋转动画。
https://github.com/youlookwhat/sceneryview
android views
Last synced: 5 months ago
JSON representation
🏜 The scenery is unique here~ 自定义View,圆、三角形、云朵,平移及旋转动画。
- Host: GitHub
- URL: https://github.com/youlookwhat/sceneryview
- Owner: youlookwhat
- License: apache-2.0
- Created: 2020-01-16T09:34:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T06:51:49.000Z (over 3 years ago)
- Last Synced: 2023-03-04T22:50:09.769Z (about 2 years ago)
- Topics: android, views
- Language: Java
- Homepage:
- Size: 672 KB
- Stars: 31
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## View
[](https://jitpack.io/#youlookwhat/SceneryView) [](#)
🏜 Hand-painted scenery, let it fly~
### 1.SceneryView
- 原型来自dribbble:[Gallery App Icon](https://dribbble.com/shots/4761564)
- 对应文章:[《自定义View实现Dribbble上动感的Gallery App Icon》](https://juejin.cn/post/7024883320269832205)### 2.HorizontalWaveProgressView
- 对应文章:[《自定义View实现横向的双水波纹进度条》](https://juejin.cn/post/7025249776069246984)
### Usage
#### Gradle
```java
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
``````java
dependencies {
implementation 'com.github.youlookwhat:SceneryView:1.0.1'
}
```#### In layout.xml
```xml```
#### In code
```java
SceneryView sceneryIcon = findViewById(R.id.scenery_icon);
sceneryIcon.setCloudColor(Color.parseColor("#0000FF"));
sceneryIcon.setColorBackground(Color.parseColor("#2483D9"));
sceneryIcon.setMidMouColor(Color.parseColor("#ff0000"));
sceneryIcon.setLeftMouColor(Color.parseColor("#e0e0e0"));
sceneryIcon.setRightMouColor(Color.parseColor("#e0e0e0"));
sceneryIcon.setSunColor(Color.parseColor("#ffff00"));
sceneryIcon.playAnimator();
sceneryIcon.setOnAnimationListener(new SceneryView.AnimationListener() {
@Override
public void onAnimationEnd() {
}
});
```### License
```
Copyright 2020 jingbinLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```