# GADownloading **Repository Path**: ts_ohos/GADownloading ## Basic Information - **Project Name**: GADownloading - **Description**: 一个绚丽的加载布局。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-20 - **Last Updated**: 2024-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GADownloadingView 本项目是基于开源项目GADownloading进行harmonyos化的移植和开发的,可以通过项目标签以及 [github地址](https://github.com/Ajian-studio/GADownloading) 移植版本:源master V1.0.2 版本 ## 项目介绍 ### 项目名称:GADownloading ### 所属系列:harmonyos的第三方组件适配移植 ### 功能: 一个绚丽的加载布局。 ### 项目移植状态:完全移植 ### 调用差异:基本没有使用差异,请参照demo使用 ### 原项目Doc地址:https://github.com/Ajian-studio/GADownloading ### 编程语言:java ### 项目截图(涉及文件仅供demo测试使用) ![demo运行效果](art/art.png) ![运行效果](art/P.gif) ![运行效果](art/S.gif) ## 安装教程 #### 方案一 可以先下载项目,将项目中的library库提取出来放在所需项目中通过build配置 ```Java dependencies { implementation project(":library") } ``` #### 方案二 - 1.项目根目录的build.gradle中的repositories添加: ```groovy buildscript { repositories { ... mavenCentral() } ... } allprojects { repositories { ... mavenCentral() } } ``` - 2.开发者在自己的项目中添加依赖 ```groovy dependencies { implementation 'com.gitee.ts_ohos:GADownloading:1.0.0' } ``` # How to use 在Ability中找到组件: mGADownloadingView = (GADownloadingView) findComponentById(ResourceTable.Id_ga_downloading); 核心接口: performAnimation(): 启动动画,包括背景和下载箭头抖动部分、背景镂空、圆变换为进度条、进度条抖动、下载箭头变换为承载文字的线框; updateProgress(int progress): 更新进度; onFail(): 下载失败、调用则执行失败部分动效; ## License Copyright 2016 GAStudio Licensed 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 at http://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.