logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

鸿蒙OS应用开发之——Java UI框架-常用组件DatePicker

一 概述DatePicker的使用DatePicker样式设置二 DatePicker的使用2.1 在XML中创建DatePicker布局文件<?xml version="1.0" encoding="utf-8"?><DirectionalLayoutxmlns:ohos="http://schemas.huawei.com/res/ohos"ohos:height="matc

#鸿蒙
鸿蒙OS应用开发之——Java UI框架-常用组件TimePicker

一 概述TimePicker的基本使用TimePicker样式配置范围选择设置二 TimePicker的基本使用2.1 创建TimePickerXML中配置<?xml version="1.0" encoding="utf-8"?><DirectionalLayoutxmlns:ohos="http://schemas.huawei.com/res/ohos"ohos:heigh

#鸿蒙
鸿蒙OS应用开发之——Java UI框架-常用组件Checkbox

一 概述创建Checkbox设置Checkbox二 创建CheckboxXML中创建<?xml version="1.0" encoding="utf-8"?><DirectionalLayoutxmlns:ohos="http://schemas.huawei.com/res/ohos"ohos:height="match_parent"ohos:width="match_pa

#鸿蒙
鸿蒙OS应用开发之——Java UI框架-常用组件Picker

一 概述Picker的基本使用Picker样式设置二Picker的基本使用2.1 在XML中创建Picker(默认0~9)<Pickerohos:id="$+id:test_picker"ohos:height="match_content"ohos:width="300vp"ohos:background_element="#E1FFFF"ohos:layout_alignment="ho

#鸿蒙
鸿蒙OS应用开发之——Java UI框架-常用组件ProgressBar

一 概述ProgressBar用于显示内容或操作的进度;水平显示的ProgressBar圆形显示的RoundProgressBar二 水平显示的ProgressBar2.1 创建ProgressBarlayout目录XML配置<?xml version="1.0" encoding="utf-8"?><DirectionalLayoutxmlns:ohos="http://sch

#鸿蒙
鸿蒙OS应用开发之——Java UI框架-常用组件TabList和Tab

一 概念Tab为某个页签TabList为包含Tab的页签栏,可以实现多个页签的切换二 创建TabList3.1 XML中创建TabList<?xml version="1.0" encoding="utf-8"?><DirectionalLayoutxmlns:ohos="http://schemas.huawei.com/res/ohos"ohos:height="match_

#鸿蒙
鸿蒙OS应用开发之——Java UI框架-常用组件RadioContainer和RadioButton

一 概述RadioButton和RadioContainer组合使用,实现单选效果RadioContainer是RadioButton的容器,其下的RadioButton只有一个被选中二 RadioButton2.1 创建RadioButton<RadioButtonohos:id="$+id:rb_1"ohos:height="40vp"ohos:width="match_content"

#鸿蒙
鸿蒙OS应用开发之——Java UI框架-常用组件Switch

一 概述Switch是切换单个设置开/关两种状态的组件。创建Switch设置Switch二 创建Switch2.1 XML中创建Switch<?xml version="1.0" encoding="utf-8"?><DirectionalLayoutxmlns:ohos="http://schemas.huawei.com/res/ohos"ohos:height="match

#鸿蒙
鸿蒙OS应用开发之——Java UI框架-常用组件ListContainer

一 概述ListContainer用来呈现连续、多行数据的组件,包含一系列相同类型的列表项ListContainer的使用方法ListContainer的常用设置ListContainer的样式设置二 ListContainer的使用方法2.1 在layout目录下的xml文件中创建ListContainer<ListContainerohos:id="$+id:list_container

#鸿蒙
鸿蒙OS应用开发之——将SVG文件转换为XML文件

一 概述在Java UI框架中,给Button组件设置了左侧显示图标时,使用了如下的属性:ohos:element_left="$graphic:ic_btn_reload"就是将SVG文件转换为XML文件后设置的二 SVG图片来源2.1 来源地址iconfont:https://www.iconfont.cn/search/index?searchType=icon&q=reload2.

#鸿蒙
    共 153 条
  • 1
  • 2
  • 3
  • 16
  • 请选择