如何通过编程方式更改Toast的对齐方式?
可能的重复:
如何更改Android中Toast的位置?
如何更改吐司的对齐方式?基本上,吐司它会在设备底部显示信息。我们怎样才能改变这一点?有人帮我找出这个吗?提前致谢。
Possible Duplicate:
how to change position of Toast in android?
How to change the Alignment for Toast? Basically, toast it'll displays information bottom of the device. How can we change that? Anyone help me to find out this? Thanks in Advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建一个像这样的自定义 Toast 是一个好主意,
这样您就可以使用
Gravity
将 Toast 放置到您想要的任何位置It would be a nice idea to create a Custom Toast like this,
By this you can place the Toast to anywhere you want using
Gravity