HarmonyOS AlertDialog如何实现title以及message内容水平居中

HarmonyOS
2025-01-09 15:25:30
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
fox280

目前AlertDialog的title和message不支持水平居中,可以考虑使用自定义弹窗实现title和message水平居中。自定义弹窗请参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-methods-custom-dialog-box-V5

分享
微博
QQ
微信
回复
2025-01-09 18:30:23
相关问题
HarmonyOS AlertDialogtitle居中显示吗
302浏览 • 1回复 待解决
HarmonyOS AlertDialog标题如何居中
129浏览 • 1回复 待解决
HarmonyOS UI布局水平居中问题
450浏览 • 1回复 待解决
HarmonyOS Navigation中title怎么居中显示
387浏览 • 1回复 待解决
HarmonyOS NavDestination的title怎么居中
370浏览 • 1回复 待解决
HarmonyOS RichEditor 内容居中显示
351浏览 • 1回复 待解决
List水平布局如何根据内容自适应高度
1058浏览 • 1回复 待解决