---
title: "安卓Toast弹出消息实例"
author: "kanexiao"
date: "2012-12-24T14:32:42Z"
tags: []
categories: ["移动开发"]
slug: "toast"
draft: false
lastmod: "2012-12-24T14:32:42Z"
id: 1753079
url: "https://kanexiao.iteye.com/blog/1753079"
---

Toast.makeText(this, "弹出成功", Toast.LENGTH_SHORT).show();
其中第二个为弹出内容，第三个为消息显示的时间，Toast.LENGTH_SHORT为1秒，Toast.LENGTH_LONG为3秒。