3 Star 2 Fork 0

CHINASOFT_OHOS / ohos_maskable_layout

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

ohos_maskable_layout

项目介绍

  • 项目名称:ohos_maskable_layout
  • 所属系列:openharmony的第三方组件适配移植
  • 功能:给图片加蒙层的库,如图片加圆形,星形蒙层,以及蒙层动画
  • 项目移植状态:主功能完成
  • 调用差异:无
  • 开发版本:sdk6,DevEco Studio2.2 beta1
  • 基线版本:release 1.3.2

效果演示

screen1

安装教程

1.在项目根目录下的build.gradle文件中,

allprojects {
    repositories {
        maven {
            url 'https://s01.oss.sonatype.org/content/repositories/releases/'
        }
    }
}

2.在entry模块的build.gradle文件中,

 dependencies {
    implementation('com.gitee.chinasoft_ohos:ohos_maskable_layout:1.3.3')
    ......  
 }

在sdk6,DevEco Studio2.2 beta1下项目可直接运行 如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件, 并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下

使用说明

1.将仓库导入到本地仓库中

2.在布局文件中加入MaskableFrameLayout控件,代码实例如下:

   <com.example.maskablelayout.MaskableFrameLayout
            ohos:height="80vp"
            ohos:width="80vp"
            app:porterduffxfermode="SRC_OUT"
            >

            <Image
                ohos:height="match_parent"
                ohos:width="match_parent"
                ohos:image_src="$media:unicorn"
                app:mask="$graphic:animation_mask"
                ohos:scale_mode="clip_center"
                />

        </com.example.maskablelayout.MaskableFrameLayout>

通过不同mask来设置不同蒙层效果.详情见DEMO

测试信息

CodeCheck代码测试无异常

CloudTest代码测试无异常

病毒安全检测通过

当前版本demo功能与原组件基本无差异

版本迭代

  • 1.3.3
  • 0.0.1-SNAPSHOT

版权和许可信息

Copyright 2015 Christophe Smet.

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.

Repository Comments ( 0 )

Sign in for post a comment

About

给图片加蒙层的库,如图片加圆形,星形蒙层,以及蒙层动画 expand collapse
Java
Apache-2.0
Cancel

ohos_maskable_layout

Contributors

All

Activities

Load More
can not load any more
Java
1
https://gitee.com/chinasoft_ohos/ohos_maskable_layout.git
git@gitee.com:chinasoft_ohos/ohos_maskable_layout.git
chinasoft_ohos
ohos_maskable_layout
ohos_maskable_layout
master

Search