// Path: androidemu/src/main/java/android/Res.java
// public interface Res extends ClientBundle {
// 	public static final Res R = GWT.create(Res.class);
// 
// 	@Source("Style.gss")
// 	public Style style();
// 
// }


import android.Res;
import android.content.Context;
import android.view.Gravity;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.PopupPanel;
package android.widget;



public class Toast {

	public final static int LENGTH_LONG = 1;
	public final static int LENGTH_SHORT = 0;

	String message;
	int gravity = Gravity.BOTTOM;
	int duration;

	public static Toast makeText(Context context, int message, int duration) {
		return makeText(context, Context.resources.getString(message), duration);
	}

	public static Toast makeText(Context context, String message, int duration) {
		Toast toast = new Toast();
		toast.setMessage(message);
		toast.setDuration(duration);
		return toast;
	}

	public void show() {
		final PopupPanel panel = new PopupPanel();
// Path: androidemu/src/main/java/android/Res.java
// public interface Res extends ClientBundle {
// 	public static final Res R = GWT.create(Res.class);
// 
// 	@Source("Style.gss")
// 	public Style style();
// 
// }


// Path: androidemu/src/main/java/android/widget/Toast.java
import android.Res;
import android.content.Context;
import android.view.Gravity;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.PopupPanel;

package android.widget;



public class Toast {

	public final static int LENGTH_LONG = 1;
	public final static int LENGTH_SHORT = 0;

	String message;
	int gravity = Gravity.BOTTOM;
	int duration;

	public static Toast makeText(Context context, int message, int duration) {
		return makeText(context, Context.resources.getString(message), duration);
	}

	public static Toast makeText(Context context, String message, int duration) {
		Toast toast = new Toast();
		toast.setMessage(message);
		toast.setDuration(duration);
		return toast;
	}

	public void show() {
		final PopupPanel panel = new PopupPanel();
		panel.setStyleName(Res.R.style().toast());