@Override protected boolean onTap(int index) { if (index >= mOverlays.size()) { return false; } selectedItem = mOverlays.get(index); if (mActivity != null) mActivity.didSelectItem(selectedItem); return true; }
public ImageView getDragImage() { if (dragImage == null) { dragImage = new ImageView(mActivity); dragImage.setImageDrawable( mActivity.getResources().getDrawable(android.R.drawable.star_big_on)); dragImage.setLayoutParams(new RelativeLayout.LayoutParams(50, 50)); } return dragImage; }