Service widgets present important information about apps/atomic services, allowing users to access desired features instantly via shortcut gestures.
Widgets are classified as static widgets and dynamic widgets. Static widgets occupy less memory, which helps optimize overall device memory. They support static information display, refresh, and tap-to-navigate features. Dynamic widgets support custom interactions, animations, and scrolling, offering rich functionality but consuming more memory.
From the perspective of build products, widget packages are classified into shared packages and standalone packages. For details, see Creating an ArkTS Widget.
Creation Mode | Widget Type |
|---|---|
Shared package | Static widget |
Dynamic widget | |
Standalone package | Static standalone widget |
Dynamic standalone widget |
Template | Supported Device Type | Programming Language | Description |
|---|---|---|---|
Hello World | Phones, tablets, 2-in-1 devices, wearables, cars, and TVs | ArkTS, JS | This template implements a HelloWorld service widget for building the UI efficiently and intuitively. It can be in 6 x 4 dimensions. |
Image With Information | Phones, tablets, 2-in-1 devices, wearables, and cars | ArkTS, JS | This template is used to display images and a certain amount of text in equal importance. The image size and text amount vary depending on the widget size to highlight key information. |
Immersive Information | Phones, tablets, 2-in-1 devices, wearables, and cars | ArkTS, JS | This template delivers a touch of aesthetics and quality with a properly designed layout of information and background images, helping to create an immersive user experience. |
List | Phones, tablets, 2-in-1 devices, and cars | ArkTS | This template provides basic list functionality. Currently, it is only available for dynamic service widgets using API version 11 or later. |
Control Button | Phones, tablets, 2-in-1 devices, and cars | ArkTS | This template implements an actionable service widget that displays text information and buttons, with button clicks triggering events. Currently, it is only available for static service widgets using API version 11 or later. |
Control Search | Phones, tablets, 2-in-1 devices, and cars | ArkTS | This template implements an actionable service widget applicable to search scenarios. Currently, it is only available for static service widgets using API version 11 or later. |
After creating a project, you can create a widget as follows.


During widget development, you can preview them to ensure their functionality and appearance. The layout of a widget is designed in an ArkTS file. Once you have saved the layout file, you will be able to see layout changes in real time on the preview canvas. Widgets of phones and tablets can be previewed in three scenarios: Minimum, Default, and Maximum. Make sure your widget displays properly in all these scenarios.

For details about the preview features, see Previewing the UI.