# driveimageview **Repository Path**: chinasoft5_ohos/driveimageview ## Basic Information - **Project Name**: driveimageview - **Description**: 以漂亮多彩的风格向 ImageView 添加一些文本或描述 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://gitee.com/chinasoft5_ohos/driveimageview - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-07-21 - **Last Updated**: 2021-09-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # driveimageview ### 项目介绍 - 项目名称:driveimageview - 所属系列:openharmony的第三方组件适配移植 - 功能:以漂亮多彩的风格向 ImageView 添加一些文本或描述 - 项目移植状态:主功能完成 - 调用差异:无 - 开发版本:sdk6,DevEco Studio2.2 beta1 - 基线版本:Release 1.0.0 ### 效果演示 ![screen1](./printscreen/test.gif) ### 安装教程 1.在项目根目录下的build.gradle文件中, ``` allprojects { repositories { maven { url 'https://s01.oss.sonatype.org/content/repositories/releases/' } } } ``` 2.在entry模块的build.gradle文件中, ``` implementation('com.gitee.chinasoft_ohos:driveimageview:1.0.0') ``` 在sdk6,DevEco Studio2.2 beta1下项目可直接运行 如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件, 并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 ### 使用说明 1.在布局文件中加入DriveImageView控件,代码实例如下: ``` ``` 2.然后在你的AbilitySlice或者Fraction中使用: ``` DriveImageView view= (DriveImageView)findComponentById(ResourceTable.Id_driveImageView); DriveImageModel model = new DriveImageModel("main text", "small text", ResourceTable.Media_image); view.setDriveImageModel(model); view.setBackgroundColor("#F44336"); view.setCustomFolderSpacing(100F); view.setAlphaValue(0.7F); view.setCustomHeight(100F); ``` ### 测试信息 CodeCheck代码测试无异常 CloudTest代码测试无异常 病毒安全检测通过 当前版本demo功能与原组件基本无差异 ### 版本迭代 - 1.0.0 - 0.0.1-SNAPSHOT ### 版权和许可信息 - Apache2.0