You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
without native libs present, launches and renders white square in map view; with native libs present, segfaults in bundled skia
27 lines
545 B
Java
27 lines
545 B
Java
package android.widget;
|
|
|
|
import android.content.Context;
|
|
|
|
public class Toast {
|
|
|
|
public Toast(Context context) {
|
|
/* TODO */
|
|
}
|
|
|
|
private String text;
|
|
|
|
public static Toast makeText(Context context, int resId, int duration) {
|
|
return makeText(context, context.getString(resId), duration);
|
|
}
|
|
|
|
public static Toast makeText(Context context, CharSequence text, int duration) {
|
|
Toast toast = new Toast(context);
|
|
toast.text = String.valueOf(text);
|
|
return toast;
|
|
}
|
|
|
|
public void show() {
|
|
System.out.println("showing toast: " + text);
|
|
}
|
|
}
|