Toast大家都很熟,不多说。直接上图上代码。
具体代码如下:
main.xml:
<?xml version=1.0 encoding=utf-8?>
<LinearLayout xmlns:android=http://schemas.android.com/apk/res/android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:gravity=center
android:orientation=vertical