예제 #1
0
  @Override
  protected boolean onTap(int index) {
    if (index >= mOverlays.size()) {
      return false;
    }
    selectedItem = mOverlays.get(index);
    if (mActivity != null) mActivity.didSelectItem(selectedItem);

    return true;
  }
예제 #2
0
  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;
  }