use of com.jigdraw.draw.tasks.JigsawLoader in project android-jigsaw-puzzle by julesbond007.
the class JigsawActivity method initViews.
/**
* Initialize the jigsaw grid view
*/
private void initViews() {
Log.d(TAG, "initializing jigsaw grid view");
final JigsawGridView gridView = findViewById(R.id.jigsaw_grid);
JigsawLoader task = new JigsawLoader(getApplicationContext(), gridView);
Bundle bundle = getIntent().getExtras();
if (bundle != null) {
LongParcelable parcelable = bundle.getParcelable(ORIGINAL_IMG_ID);
if (parcelable != null) {
task.execute(parcelable.getData());
}
}
gridView.setOnItemLongClickListener(onItemLongClickListener(gridView));
gridView.setOnDropListener(onDropListener(gridView));
gridView.setOnDragListener(onDragListener());
}
Aggregations