沈斌
2018-05-16 6c88cd89b3f3d6d140f6eb0cec20e2f57a7ff563
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.moral.yunfushao.utils;
 
import android.widget.Toast;
 
import com.moral.yunfushao.MainApp;
 
 
/**
 * Toast工具类
 * 作者: wangcj
 * 日期: 2017/2/23.
 */
 
public class T {
 
    public static void show(String text) {
        Toast.makeText(MainApp.theApp, text, Toast.LENGTH_SHORT).show();
    }
 
    public static void show(Integer text) {
        Toast.makeText(MainApp.theApp, String.valueOf(text), Toast.LENGTH_SHORT).show();
    }
 
    public static void show(Object text) {
        Toast.makeText(MainApp.theApp, text.toString(), Toast.LENGTH_SHORT).show();
    }
 
}