Android7.0中文文档(API)-- Toast
来源:互联网 发布:数据的分散程度怎么算 编辑:程序博客网 时间:2024/06/16 05:06
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/Toast.html
Toast
public class Toast
extends Object
A toast is a view containing a quick little message for the user. The toast class helps you create and show those.
Toast是一个视图,其中包含了显示给用户一条简短的消息。Toast类帮助你创建和显示这样的消息。
When the view is shown to the user, appears as a floating view over the application. It will never receive focus. The user will probably be in the middle of typing something else. The idea is to be as unobtrusive as possible, while still showing the user the information you want them to see. Two examples are the volume control, and the brief message saying that your settings have been saved.
当视图显示给用户时,通常显示为一个覆盖着应用程序上的浮动视图。它永远不会接收焦点。用户不会在其中输入什么。这样做的目的是尽可能地不引人注目,同时向用户显示你希望他们看到的信息。两个例子,一个是音量控制,另外一个是显示一条简短的消息,以提示你的设置已经保存。
The easiest way to use this class is to call one of the static methods that constructs everything you need and returns a new Toast object.
Developer Guides
使用这个类的最简单的方法是调用一个静态方法来构造你需要的所有东西,并返回一个新的Toast对象。
开发者指南
For information about creating Toast notifications, read the Toast Notifications developer guide.
关于创建Toast的更多信息,请参考Toast Notifications开发者指南。
摘要
常量
int
LENGTH_LONG
Show the view or text notification for a long period of time.
显示长时间的视图或文本通知。
int
LENGTH_SHORT
Show the view or text notification for a short period of time.
显示短时间的视图或文本通知。
Public构造方法
Toast(Context context)
Construct an empty Toast object.
创建一个空的Toast对象。
- Android7.0中文文档(API)-- Toast
- Android7.0中文文档(API)--- FrameLayout
- Android7.0中文文档(API)--- DatePicker
- Android7.0中文文档(API) --- MediaController
- Android7.0中文文档(API)--- TabHost
- Android7.0中文文档(API) -- TimePicker
- Android7.0中文文档(API)-- ViewAnimator
- Android7.0中文文档(API)--- AbsoluteLayout
- Android7.0中文文档(API) -- Switch
- Android7.0中文文档(API) --- ToggleButton
- Android7.0中文文档(API) --- RadioButton
- Android7.0中文文档(API) --- CheckedTextView
- Android7.0中文文档(API) -- ScrollView
- Android7.0中文文档(API)-- DigitalClock
- Android7.0中文文档(API)-- TextClock
- Android7.0中文文档(API)---Chronometer
- Android7.0中文文档(API)--- AdapterView
- Android7.0中文文档(API)--- AdapterViewAnimator
- 学习Location对象
- JS学习笔记(三)
- 一分钟告诉你究竟DevOps是什么鬼?
- 如何使用跳板机一键登录目标机器
- Git 常用命令大全
- Android7.0中文文档(API)-- Toast
- tomcat搭建本地服务器 实现apk更新下载(Android )
- 测试实习生面试
- 70-persistent-net.rules以及网卡配置详解
- c++队列 优先队列的使用方法
- 白盒测试和黑盒测试
- PAT练习-A除以B
- Java 练习1--数组
- inline用法详解