haijiang
2018-09-19 82cc6c94fdc08b1814fbf7195e88cf335eed3e8d
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();
    }
 
}