ToastUtils
1 |
|
居中显示带自定义布局
1 | public class Toastutil { |
toast_layout.xml
自定义toast的布局
1 |
|
shape_corner_90_color_999999.xml
圆角背景
1 |
|
Toast问题
Toast运行在子线程问题,handler问题:Can't toast on a thread that has not called Looper.prepare()
正确写法:
1 | new Thread(new Runnable() { |