当前位置:   article > 正文

鸿蒙应用开发-DevEco Studio 模板体验(三)_deveco studio登录注册页面

deveco studio登录注册页面

设置页面框架:

部分代码如下:

<DependentLayout
    xmlns:ohos="http://schemas.huawei.com/res/ohos"
    ohos:height="$float:singleCardViewHeight"
    ohos:width="match_parent">

    <Text
        ohos:id="$+id:item_content_text"
        ohos:height="$float:singleCardViewTextHeight"
        ohos:width="match_content"
        ohos:align_parent_left="true"
        ohos:center_in_parent="true"
        ohos:left_margin="$float:singleCardViewLeftMargin"
        ohos:text_color="$color:textColorPrimary"
        ohos:text_size="$float:textSizeBody1"/>

    <Image
        ohos:id="$+id:item_right_icon"
        ohos:height="match_content"
        ohos:width="match_content"
        ohos:align_parent_right="true"
        ohos:center_in_parent="true"
        ohos:image_src="$graphic:icon_right_grey"
        ohos:right_margin="$float:singleCardViewRightMargin"/>

    <Text
        ohos:id="$+id:item_right_content_text"
        ohos:height="$float:singleCardViewRightTextHeight"
        ohos:width="match_content"
        ohos:center_in_parent="true"
        ohos:left_of="$id:item_right_icon"
        ohos:right_margin="$float:singleCardViewRightTextRightMargin"
        ohos:text_color="$color:textColorSecondary"
        ohos:text_size="$float:textSizeBody2"/>
</DependentLayout>

 

 

页面滞留界面跳转

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/271273
推荐阅读
相关标签