ToastDialog dialog box of Hongmeng foundation (HarmonyOS Hongmeng development tutorial with source code)

ToastDialog

A Toast dialog box is provided at the top of the window to notify simple feedback of the operation.
The toast dialog box cannot be clicked and will disappear automatically.

Use tutorial

ToastDialog toastDialog = new ToastDialog(this);
toastDialog.setText("发生错误").setGravity(1).setDuration(1000).show();

Unauthorized reprinting is prohibited


For more technical exchanges, please join the QQ group

Group name: harmonyos Hongmeng Technology Exchange
Group number: 856567895


Start from scratch to learn HarmonyOS Hongmeng 2.0 development

Guess you like

Origin blog.csdn.net/iCloudEnd/article/details/108731565