updated android-example to latest 1.5.0
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package net.irext.iris.utils;
|
||||
|
||||
import android.content.Context;
|
||||
import android.widget.Toast;
|
||||
|
||||
/**
|
||||
* Filename: ToastUtil.java
|
||||
* Revised: Date: 2020-10-24
|
||||
* Revision: Revision: 1.0
|
||||
* <p>
|
||||
* Description: Utils of popup
|
||||
* <p>
|
||||
* Revision log:
|
||||
* 2020-10-24: created by strawmanbobi
|
||||
*/
|
||||
public class ToastUtils {
|
||||
|
||||
public static void showToast(Context context, String text) {
|
||||
int duration = Toast.LENGTH_SHORT;
|
||||
|
||||
Toast toast = Toast.makeText(context, text, duration);
|
||||
toast.show();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user