ended3월 16일· 1 sources

Customizable “Toast-like” Notification via openCustomDialog (Font Size & Panel Size)

openCustomDialog를 활용한 커스터마이징 가능한 Toast 알림 구현 (글꼴 크기 및 패널 크기 제어)

Why it matters

The article describes how to implement a customizable Toast-like notification in HarmonyOS using openCustomDialog instead of the built-in openToast API, which lacks font size and panel sizing options. It demonstrates using a builder pattern with PromptAction.openCustomDialog to control width, height, corner radius, background, and typography, with auto-dismiss via closeCustomDialog after a short delay.

1
Sources
+0
24h
Growth
179d
Active
HarmonyOSopenCustomDialogToastPromptActionArkTS

Sources

Related Issues