# CircleLoadingView **Repository Path**: archermind-ti/circleloadingview ## Basic Information - **Project Name**: CircleLoadingView - **Description**: An image-view with circle loading animation - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-07-08 - **Last Updated**: 2021-11-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CircleLoadingView [英文版](README.md) ## 目录 * [项目介绍](#项目介绍) * [功能说明](#功能说明) * [功能展示](#功能展示) * [集成说明](#集成说明) * [使用说明](#使用说明) * [MIT License](#MIT License) ### 项目介绍 * [x] 提供类ios更新桌面应用的效果 ### 功能说明 1.自定义属性功能介绍 (1)cl_circleRadius:中间那个圆的半径 (2)cl_circleStrokeSize:圆的边框大小 (3)cl_fillAnimationDuration:最后扩散动画的时间 (4)cl_src:背景的资源 ### 功能展示 ![overview](screenshot/ss_1.gif) ### 集成说明 ##### 方法1: 直接使用har包 ``` 通过library生成har包,添加har包到要集成的libs文件夹内 在entry的gradle内添加如下代码 implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) ``` ##### 方法2: gradle依赖 ``` allprojects{ repositories{ mavenCentral() } } implementation 'com.gitee.archermind-ti:CircleLoadingView:1.0.0' ``` ### 使用说明 1.在xml中声明circleLoadingView控件,在根布局声明命名空间 ``` ``` 2.在代码中动态设置百分比 ``` CircleLoadingView circleLoadingView = (CircleLoadingView) findComponentById(ResourceTable.Id_main_cl); loadingView.setPercent(88); ``` 3.在代码动态设置背景图;除xml可以自定属性外,背景图也支持动态设置 ``` CircleLoadingView circleLoadingView = (CircleLoadingView) findComponentById(ResourceTable.Id_main_cl); loadingView.setImageBitmap(circleLoadingView.getPixelMap(ResourceTable.Media_icon)); ``` ### MIT License ``` The MIT License (MIT) Copyright (c) 2015 聚会玩 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```