add more stubs

This commit is contained in:
Julian Winkler
2023-11-08 21:40:39 +01:00
parent 9f74ab811e
commit 72a8b3a047
21 changed files with 128 additions and 34 deletions

View File

@@ -0,0 +1,22 @@
package android.widget;
import android.content.Context;
public class Toast {
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();
toast.text = String.valueOf(text);
return toast;
}
public void show() {
System.out.println("showing toast: " + text);
}
}