1 Star 3 Fork 2

CHINASOFT4_OHOS / FabDialogMorph

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

FabDialogMorph

项目介绍

  • 项目名称:FabDialogMorph
  • 所属系列:openharmony的第三方组件适配移植
  • 功能:Ohos 上的 Fab 和对话框变形动画
  • 项目移植状态:完成
  • 调用差异:无
  • 开发版本:sdk6,DevEco Studio2.2 Beta1
  • 基线版本:master分支

效果演示

效果演示

安装教程

使用说明

java

       public void setStackLayoutWindow(StackLayout stackLayout, boolean isShow) {
   
           int intColor = Color.getIntColor("#AA000000");
           stackLayout.setAlpha(0);
           stackLayout.setClickable(true);
           ShapeElement shapeElementOver = new ShapeElement();
           if (isShow) {
               stackLayout.setVisibility(Component.HIDE);
               shapeElementOver.setRgbColor(getRgbColor(intColor));
           } else {
               stackLayout.setVisibility(Component.VISIBLE);
               shapeElementOver.setRgbColor(new RgbColor(0, 0, 0, 0));
           }
           stackLayout.setBackground(shapeElementOver);
   
       }
    
public boolean showOverlay(Component overlayLayout, AnimationGroupEnd end) {
        AnimatorValue animatorValue = new AnimatorValue();
        animatorValue.setDuration(duration);
        animatorValue.setValueUpdateListener((animatorValue1, v) -> {
            overlayLayout.setTag(animatorValue);
            overlayLayout.setAlpha(v);
            if (v >= FLOAT_005) {
                overlayLayout.setVisibility(Component.VISIBLE);
            }
        });
        animatorValue.start();
        animatorValue.setStateChangedListener(new Animator.StateChangedListener() {
            @Override
            public void onStart(Animator animator) {

            }

            @Override
            public void onStop(Animator animator) {

            }

            @Override
            public void onCancel(Animator animator) {

            }

            @Override
            public void onEnd(Animator animator) {
                end.animationGroup();
                end.animationGroupEnd();
            }

            @Override
            public void onPause(Animator animator) {

            }

            @Override
            public void onResume(Animator animator) {

            }
        });
        return true;
    }

测试信息

CodeCheck代码测试无异常

CloudTest代码测试无异常

病毒安全检测通过

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

版本迭代

1.0.0

版权和许可信息

The MIT License (MIT)

Copyright (c) 2016 Hujiawei

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.
The MIT License (MIT) Copyright (c) 2016 Hujiawei 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.

简介

Ohos 上的 Fab 和对话框变形动画 展开 收起
Java
MIT
取消

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/chinasoft4_ohos/FabDialogMorph.git
git@gitee.com:chinasoft4_ohos/FabDialogMorph.git
chinasoft4_ohos
FabDialogMorph
FabDialogMorph
master

搜索帮助

14c37bed 8189591 565d56ea 8189591