HarmonyOS 如何设置promptAction.showToast显示的toast在屏幕中的位置

目前设置了:

promptAction.showToast({ message: response.data.msg, bottom: Alignment.Center }) 

toast显示在了屏幕的最底端。

HarmonyOS
2024-12-25 13:02:57
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
put_get

参考示例如下:

promptAction.showToast({ message: response.data.msg, alignment: Alignment.Center })
分享
微博
QQ
微信
回复
2024-12-25 16:08:26
相关问题
HarmonyOS promptAction.showToast使用问题
81浏览 • 1回复 待解决
HarmonyOS PromptAction无法弹出Toast
238浏览 • 1回复 待解决
鸿蒙Toast能指定弹出位置
6551浏览 • 1回复 待解决
java如何设置CommonDialog位置?
5519浏览 • 1回复 待解决