// Path: eclipse-version/MosaicLayoutLib/src/com/adhamenaya/listeners/OnItemClickListener.java
// public interface OnItemClickListener {
//  
// 	public void onClick(int position);
// 
// }
// 
// Path: eclipse-version/MosaicLayoutLib/src/com/adhamenaya/listeners/OnItemLongClickListener.java
// public interface OnItemLongClickListener {
// 
// 	public void onLongClick(int position);
// 
// }
// 
// Path: eclipse-version/MosaicLayoutLib/src/com/adhamenaya/views/BlockPattern.java
// public enum BLOCK_PATTERN {
// 	SMALL, BIG, VERTICAL, HORIZONTAL, EMPTY
// };


import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.FrameLayout;
import android.widget.ScrollView;
import com.adhamenaya.listeners.OnItemClickListener;
import com.adhamenaya.listeners.OnItemLongClickListener;
import com.adhamenaya.views.BlockPattern.BLOCK_PATTERN;
				coorX++;
			}
			coorY++;
		}
	}

	public void reset() {
		postion = 0;
		resetPatterns();
		// Clear the adapter
		if (mAdapter != null)
			mAdapter.clear();
	}

	public void chooseRandomPattern(boolean isRandom) {
		this.isRandomPattern = isRandom;
	}

	public void setOnItemClickListener(OnItemClickListener onClickListener) {
		this.mOnItemClickListener = onClickListener;
	}

	public void resetPatterns() {
		this.patternsList.clear();
	}

	public void addPattern(BLOCK_PATTERN patternsList[]) {
		this.patternsList.add(patternsList);
	}

// Path: eclipse-version/MosaicLayoutLib/src/com/adhamenaya/listeners/OnItemClickListener.java
// public interface OnItemClickListener {
//  
// 	public void onClick(int position);
// 
// }
// 
// Path: eclipse-version/MosaicLayoutLib/src/com/adhamenaya/listeners/OnItemLongClickListener.java
// public interface OnItemLongClickListener {
// 
// 	public void onLongClick(int position);
// 
// }
// 
// Path: eclipse-version/MosaicLayoutLib/src/com/adhamenaya/views/BlockPattern.java
// public enum BLOCK_PATTERN {
// 	SMALL, BIG, VERTICAL, HORIZONTAL, EMPTY
// };


// Path: eclipse-version/MosaicLayoutLib/src/com/adhamenaya/views/MosaicLayout.java
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.FrameLayout;
import android.widget.ScrollView;
import com.adhamenaya.listeners.OnItemClickListener;
import com.adhamenaya.listeners.OnItemLongClickListener;
import com.adhamenaya.views.BlockPattern.BLOCK_PATTERN;

				coorX++;
			}
			coorY++;
		}
	}

	public void reset() {
		postion = 0;
		resetPatterns();
		// Clear the adapter
		if (mAdapter != null)
			mAdapter.clear();
	}

	public void chooseRandomPattern(boolean isRandom) {
		this.isRandomPattern = isRandom;
	}

	public void setOnItemClickListener(OnItemClickListener onClickListener) {
		this.mOnItemClickListener = onClickListener;
	}

	public void resetPatterns() {
		this.patternsList.clear();
	}

	public void addPattern(BLOCK_PATTERN patternsList[]) {
		this.patternsList.add(patternsList);
	}

	private void display(Context cx) {