且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

巴顿在定制的Andr​​oid吐司?

更新时间:2023-01-27 18:41:47

一个土司不能点击。这是不可能捕捉到的点击里面敬酒消息。 你需要搭建一个对话。看看建立对话框获取更多的信息。

A toast can not be clicked. It is not possible to capture a click inside a toast message. You will need to build a dialog for that. Look at Creating Dialogs for more info.

吐司类状态的API,举杯将永远不会收到焦点又因为举杯不是认为不存在的onClick消息。我会假设,因此举杯的童车不能点击为好。

The API on the Toast class state that a toast will never receive the focus and because a toast is not a view there is no onClick message. I would assume that therefore childs of a Toast can not be clicked as well.