[English]

List(列表) (lv_list)

Overview

显示原文

The List is basically a rectangle with vertical layout to which Buttons and Texts can be added


List(列表) 基本上是一个垂直布局的矩形,按钮指向该矩形并且可以添加文本。

Parts and Styles(部分和样式)

Background (背景)

显示原文

Buttons and Texts See the Button's and Label's documentation.


按钮和文本 请参阅 按钮标签的文档。

Usage(用法)

Buttons(按钮)

显示原文

lv_list_add_button(list, icon, text) adds a full-width button with an icon

  • that can be an image or symbol

  • and a text.

The text starts to scroll horizontally if it's too long.


lv_list_add_button(list, icon, text) 添加一个带有图标和文本的全宽按钮

  • 可以是图像或符号

  • 和文本。

如果文本太长,文本将会水平滚动。

Texts(文本)

显示原文

lv_list_add_text(list, text) adds a text.


lv_list_add_text(list, text) 添加文本。

Events(事件)

显示原文

No special events are sent by the List, but sent by the Button as usual.

Learn more about Events(事件).


列表不会发送任何特殊事件,但会像往常一样由按钮发送。

详细了解更多 Events(事件)

Keys(按键)

显示原文

No Keys are processed by the object type.

Learn more about Keys(按键).


对象类型不处理任何 按键

了解有关 Keys(按键) 的更多信息。

Example

[English]

Simple List


Sorting a List using up and down buttons


API

lv_list.h

lv_api_map_v8.h