加入收藏 | 设为首页 | 会员中心 | 我要投稿 辽源站长网 (https://www.0437zz.com/)- 云专线、云连接、智能数据、边缘计算、数据安全!
当前位置: 首页 > 教程 > 正文

跨平台自适应布局yoga特性详解

发布时间:2021-05-22 18:41:54 所属栏目:教程 来源:互联网
导读:yoga是facebook打造的一个跨IOS、Android、Window平台在内的布局引擎,兼容Flexbox布局方式,让界面更加简单。 Yoga官网:https://facebook.github.io/yoga/ 官

                    .withAction("action.showrow.slice") 

                    .build(); 

            intent1.setOperation(operation); 

            startAbilityForResult(intent1, 1); 

        }); 

 

        Button btn1= (Button) findComponentById(ResourceTable.Id_btn_3); 

        btn1.setClickedListener(component -> { 

            Intent intent1 = new Intent(); 

            Operation operation = new Intent.OperationBuilder() 

                    .withAction("action.inflate.slice") 

                    .build(); 

            intent1.setOperation(operation); 

            startAbilityForResult(intent1, 1); 

        }); 

 

    } 

 

    @Override 

    public void onActive() { 

        super.onActive(); 

    } 

 

    @Override 

    public void onForeground(Intent intent) { 

        super.onForeground(intent); 

    } 

(编辑:辽源站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

推荐文章
    热点阅读