haijiang
2018-07-10 e48c183a0984908c14eebd9791761d13d9baca2c
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
package com.moral.screen.httputils;
 
import android.widget.Toast;
 
import com.moral.screen.MainApp;
 
 
/**
 * Toast工具类
 */
 
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();
    }
 
}