# 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-ZH.md) ## 目录 * [Project Introduction](#Project Introduction) * [Function Description](#Function Description) * [Function Display](#Function Display) * [Integration Description](#Integration Description) * [Instructions](#Instructions) * [MIT License](#MIT License) ### Project Introduction * [x] Provide IOS update desktop application effect. ### Function Description 1.Introduction to user defined attribute function (1)cl_circleRadius:The radius of the circle in the middle (2)cl_circleStrokeSize:The stroke size of the circle (3)cl_fillAnimationDuration:The duration time to spread the animation (4)cl_src:Background resources ### Function Display ![overview](screenshot/ss_1.gif) ### Integration Description ##### Method 1: Using har package directly ``` implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) ``` ##### Method 2: gradle dependency ``` allprojects{ repositories{ mavenCentral() } } implementation 'com.gitee.archermind-ti:CircleLoadingView:1.0.0' ``` ### Instructions 1.Declare the circleloadingview in XML and the namespace in the root layout ``` ``` 2.Dynamically set percentage in code ``` CircleLoadingView circleLoadingView = (CircleLoadingView) findComponentById(ResourceTable.Id_main_cl); loadingView.setPercent(88); ``` 3.The background image is set dynamically in the code; In addition to XML attributes, background images also support dynamic settings ``` 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. ```