[英]Gluon Mobile information message like Android Toast
Is it possible to show a message, in a platform independent way, like what in Android would be a Toast? 是否可以以独立于平台的方式显示消息,就像Android中的Toast一样? If not, what would a good way to create similar functionality? 如果没有,那么创建相似功能的好方法是什么?
The closest thing in Gluon Mobile to the Android Toast control is the SnackbarPopupView . Gluon Mobile中最接近Android Toast控件的是SnackbarPopupView 。 The easiest way to do this, is to use the snackbar popup view that is built in into MobileApplication
: 最简单的方法是使用MobileApplication
内置的快餐栏弹出视图:
MobileApplication.getInstance().showMessage("Hi There!");
We are planning to add Toast functionality as well in a future release. 我们计划在将来的版本中添加Toast功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.