All Projects → LinYaoTian → Testleavesloading

LinYaoTian / Testleavesloading

Android 自定义 View 之 LeavesLoading

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Testleavesloading

Morphing Material Dialogs
Material dialog ❤️ morphing animation. An android kotlin UI library for building beautiful animations for converting a floating action button into a material dialog.
Stars: ✭ 806 (+1365.45%)
Mutual labels:  android-app, android-application, android-ui
Loginui Android
Login User Interface in android with innovative, beautiful and creative background 😊😊😉
Stars: ✭ 374 (+580%)
Mutual labels:  android-app, android-application, android-ui
AndroidBatteryStats
Displays all battery stats of an Android device using broadcast receiver.
Stars: ✭ 20 (-63.64%)
Mutual labels:  android-application, android-ui, android-app
PlantShopUI-Android
Check out the new style for App Design aims for the Online Plant Shop Service using jetpack compose...😉😀😁😎
Stars: ✭ 29 (-47.27%)
Mutual labels:  android-application, android-ui, android-app
Androidkex
Extensions for Kotlin. Use the power of Kotlin to make your code smaller and beautiful.
Stars: ✭ 35 (-36.36%)
Mutual labels:  android-app, android-application, android-ui
FutureFurnitureUI-Android
Check out the new style for App Design aims for Furniture E-commerce...😉😀😁😎
Stars: ✭ 117 (+112.73%)
Mutual labels:  android-application, android-ui, android-app
CustomFontView
Custom View classes for TextView, EditText & Buttons - to set custom fonts
Stars: ✭ 26 (-52.73%)
Mutual labels:  android-application, android-ui, android-app
Extract-Color-Palette-Api
Create gradient drawable by extracting prominent colors from image⚫⚪
Stars: ✭ 16 (-70.91%)
Mutual labels:  android-application, android-ui, android-app
Zoomrecylerlayout
🎢 Zoom Recycler Layout Manager For Android Kotlin
Stars: ✭ 618 (+1023.64%)
Mutual labels:  android-app, android-application, android-ui
Superbottomsheet
Android native BottomSheet on steroids 💪
Stars: ✭ 548 (+896.36%)
Mutual labels:  android-app, android-application, android-ui
Android Customtoast
Easy to use Custom Toast Library for Android
Stars: ✭ 24 (-56.36%)
Mutual labels:  android-app, customview, android-ui
Phonenumberverificationui Android
Check out the new style for mobile number verification 😉😉😊😊
Stars: ✭ 52 (-5.45%)
Mutual labels:  android-app, android-application, android-ui
mCustomView
总结了博主这么多年所写的自定义view,以及自定义view的教程
Stars: ✭ 17 (-69.09%)
Mutual labels:  custom, custom-view, android-ui
SeatLayout
A seat selection library for Android with an example for selecting seats for flights, sports venue, theatres, etc
Stars: ✭ 30 (-45.45%)
Mutual labels:  android-application, android-ui, android-app
Android-daily-read-tips
log for articles and info in android for every developer
Stars: ✭ 13 (-76.36%)
Mutual labels:  android-application, android-ui, android-app
SignInSignupScreen-Android
SignIn and SignUp in android 😊😊😉
Stars: ✭ 51 (-7.27%)
Mutual labels:  android-application, android-ui, android-app
PaymentCardView
Custom Credit/Debit card view
Stars: ✭ 62 (+12.73%)
Mutual labels:  android-ui, android-app, customview
media-picker
Easy customizable picker for all your needs in Android application
Stars: ✭ 167 (+203.64%)
Mutual labels:  android-application, android-ui, android-app
Android Arsenal.com
Source to android-arsenal.herokuapp.com
Stars: ✭ 541 (+883.64%)
Mutual labels:  android-app, android-application, android-ui
Music Player Go
🎶🎼 Very slim music player 👨‍🎤 100% made in Italy 🍕🌳🌞🍝🌄
Stars: ✭ 654 (+1089.09%)
Mutual labels:  android-app, android-application, android-ui

LeavesLoading

1. 创意原型

Gif 原图:

效果图:

基本实现了原图的效果

2. 如何添加进项目中

仓库:

  • 方式一:

    下载 LeavesLoading Library 拷贝进工程中。

    tip: 不是当前的 TestLeavesLoading 项目哦!

  • 方式二:

    在 project 的 build.gradle 中:

    allprojects {
      	repositories {
      		...
      		maven { url 'https://jitpack.io' }
      	}
      }
    

    在 app 的 build.gradle 中:

     implementation 'com.github.LinYaoTian:LeavesLoading:1.0.2'
    

3. 如何使用

3.1 简单使用

在布局文件中

 <com.rdc.leavesloading.LeavesLoading
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/myleaf"/>

在 Activity 中

LeavesLoading leavesLoading = findViewById(R.id.myleaf);
leavesLoading.setProgress(50);

3.2 方法

方法名 描述
setLeafSrc(int resId) 设置叶子图片
setFanSrc(int resId) 设置风扇图片
setProgress(int progress) 设置进度
setProgressColor(int color) 设置进度条颜色
setLeafNum(int num) 设置叶片数目
setLeafFloatTime(long time) 设置叶子飘动一个周期所花时间
setLeafRotateTime(long time) 设置叶子旋转一周所花时间
setFanRotateSpeed(int speed) 设置风扇旋转速度
setFanStroke(int color) 设置风扇外圈颜色
setBgColor(int color) 设置背景颜色

3.3 Attributes属性(在布局文件中调用)

Attributes forma describe
leafSrc reference 叶子图片
leafNum integer 叶子数目
fanSrc reference 风扇图片
bgColor color 背景颜色
progress integer 进度值(0-100)
progressColor color 进度条颜色
leafFloatSpeed integer 叶子飘动一个周期所花时间
leafRotateSpeed integer 叶子旋转一周所花时间
fanRotateSpeed integer 设置风扇旋转速度
fanStrokeColor color 风扇外圈颜色

4. About Me

作者掘金博客:Lin_YT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].