updated android-example to latest 1.5.0

This commit is contained in:
strawmanbobi
2025-10-19 20:16:10 +08:00
parent b3f8ae0785
commit 3fa6df58c3
2 changed files with 24 additions and 0 deletions

View File

@@ -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();
}
}