• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-376311

screenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-2024501 178

README_zh.mdD12-May-2024702 3015

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024369 1918

README.md

1# Badge<a name="EN-US_TOPIC_0000001172354593"></a>
2
3### Introduction<a name="section104mcpsimp"></a>
4
5This sample shows how to customize the color, size, position, and events to respond for badges.
6
7### Usage<a name="section107mcpsimp"></a>
8
9After you enter the home screen of your application, two types of badge examples will be displayed.
10
11After you touch the message box, the badge disappears.
12
13### Constraints<a name="section112mcpsimp"></a>
14
15This sample can only be run on mini-system devices.
16
17

README_zh.md

1# 事件标记控件
2
3### 简介
4
5本示例展示了事件标记控件(badge)的简单使用,开发者可自定义该控件的颜色、大小、放置位置、响应事件等能力。
6
7实现效果如下:
8
9![](screenshots/device/main.png)
10
11### 相关概念
12
13新事件标记组件:在组件上提供事件信息展示能力。
14
15### 相关权限
16
17不涉及。
18
19### 使用说明
20
211.进入应用主界面后,会显示两种消息提醒示例。
22
232.点击**消息框**后,消息提醒控件会隐藏。
24
25### 约束和限制
26
271.本示例仅支持在标准系统上运行。
28
292.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。
30