赞
踩
参考TextField常见属性
ability_main.xml代码:
<?xml version="1.0" encoding="utf-8"?>
<DirectionalLayout
xmlns:ohos="http://schemas.huawei.com/res/ohos"
ohos:height="match_parent"
ohos:width="match_parent"
ohos:background_element="#F2F2F2"
ohos:orientation="vertical"
>
<TextField
ohos:height="50vp"
ohos:width="319vp"
ohos:basement="#000000"
ohos:element_cursor_bubble="$media:bubble"
ohos:element_selection_left_bubble="$media:left"
ohos:element_selection_right_bubble="$media:right"
ohos:hint="请输入信息"
ohos:hint_color="#999999"
ohos:layout_alignment="horizontal_center"
ohos:selection_color="#FF0000"
ohos:text_alignment="center"
ohos:text_size="17fp"
ohos:top_margin="100vp"
/>
<!--ohos:text_input_type="pattern_password"-->
</DirectionalLayout>
把以下三张图片放到media文件夹当中,进行提示气泡的设置
效果:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。