// 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/view/ViewGroup.java
// public class ViewGroup extends View {
// 
// 	static final String TAG = "ViewGroup";
// 
// 	ArrayList<View> childViews = new ArrayList<View>();
// 
// 	public ViewGroup(Element element) {
// 		super(element);
// 	}
// 
// 	public void addView(View v) {
// 		element.appendChild(v.getElement());
// 		childViews.add(v);
// 	}
// 
// 	public View getChildAt(int index) {
// 		return childViews.get(index);
// 	}
// 
// 	public int getChildCount() {
// 		return childViews.size();
// 	}
// 
// 	public void removeAllViews() {
// 		element.removeAllChildren();
// 	}
// }


import android.Res;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.EventListener;
	public DrawerLayout(Element element) {
		super(element);
		for (int i = 0; i < element.getChildCount(); i++) {
			if (element.getChild(i) instanceof Element) {
				Element child = (Element) element.getChild(i);
				if ("DrawerOverLay".equals(child.getId())) {
					drawerOverlay = new View(child);
				} else if ("Drawer".equals(child.getId())) {
					drawer = new View(child);
				}
			}
		}
		drawerOverlay.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				closeDrawer(0);
			}
		});
		closeDrawer(0);
	}

	public void setDrawerListener(DrawerLayout.DrawerListener listener) {
		this.listener = listener;
	}

	public boolean isDrawerOpen(View drawer) {
		return isOpen;
	}

	public void openDrawer(int gravity) {
// 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/view/ViewGroup.java
// public class ViewGroup extends View {
// 
// 	static final String TAG = "ViewGroup";
// 
// 	ArrayList<View> childViews = new ArrayList<View>();
// 
// 	public ViewGroup(Element element) {
// 		super(element);
// 	}
// 
// 	public void addView(View v) {
// 		element.appendChild(v.getElement());
// 		childViews.add(v);
// 	}
// 
// 	public View getChildAt(int index) {
// 		return childViews.get(index);
// 	}
// 
// 	public int getChildCount() {
// 		return childViews.size();
// 	}
// 
// 	public void removeAllViews() {
// 		element.removeAllChildren();
// 	}
// }


// Path: androidemu/src/main/java/android/support/v4/widget/DrawerLayout.java
import android.Res;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.EventListener;

	public DrawerLayout(Element element) {
		super(element);
		for (int i = 0; i < element.getChildCount(); i++) {
			if (element.getChild(i) instanceof Element) {
				Element child = (Element) element.getChild(i);
				if ("DrawerOverLay".equals(child.getId())) {
					drawerOverlay = new View(child);
				} else if ("Drawer".equals(child.getId())) {
					drawer = new View(child);
				}
			}
		}
		drawerOverlay.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				closeDrawer(0);
			}
		});
		closeDrawer(0);
	}

	public void setDrawerListener(DrawerLayout.DrawerListener listener) {
		this.listener = listener;
	}

	public boolean isDrawerOpen(View drawer) {
		return isOpen;
	}

	public void openDrawer(int gravity) {
		drawerOverlay.getElement().addClassName(Res.R.style().drawerOverlayOpened());