WindMillView
Android自定义控件WindMillView,仿华为天气风车效果(Android custom control WindMillView, weather windmill effect)
Rendering
效果图
The method referenced in the project:
项目中引用的方法:
Step 1. Add the JitPack repository to your build file
步骤1.将JitPack存储库添加到构建文件中
项目的根build.gradle中添加以下代码:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
步骤2.build.gradle添加依赖项
dependencies {
implementation 'com.github.hnsycsxhzcsh:WindMillView:v1.1'
}
Step 3. Reference control in layout
步骤3. 布局中引用控件
android:id="@+id/wm1"
android:layout_width="100dp"
android:layout_height="120dp"
app:windColor="@color/white" />
Step 4. Call the view's startRotate method in the activity to start the rotation.
步骤4. activity中调用控件的startRotate方法开启旋转
If my control helps you, please help click on the top right corner, thank you!
如果有帮助到大家希望点下右上角Star,谢谢!