提交 532a3e60 编写于 作者: B Blankj

see 05/30 log

上级 3ff340e9
......@@ -122,7 +122,7 @@ class CustomListener implements BuildListener {
}
})
def sdf = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss")
def sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH-mm-ss")
file = new File(rootProject.buildDir.getAbsolutePath(),
"buildTime_" + sdf.format(new Date(System.currentTimeMillis())) + ".txt")
}
......
......@@ -185,7 +185,15 @@ public final class ToastUtils {
* @param layoutId ID for an XML layout resource to load.
*/
public static View showCustomShort(@LayoutRes final int layoutId) {
final View view = getView(layoutId);
return showCustomShort(getView(layoutId));
}
/**
* Show custom toast for a short period of time.
*
* @param view The view of toast.
*/
public static View showCustomShort(final View view) {
show(view, Toast.LENGTH_SHORT);
return view;
}
......@@ -196,7 +204,15 @@ public final class ToastUtils {
* @param layoutId ID for an XML layout resource to load.
*/
public static View showCustomLong(@LayoutRes final int layoutId) {
final View view = getView(layoutId);
return showCustomLong(getView(layoutId));
}
/**
* Show custom toast for a long period of time.
*
* @param view The view of toast.
*/
public static View showCustomLong(final View view) {
show(view, Toast.LENGTH_LONG);
return view;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册