public void removeChild(View v) {
   addToRecycledViews(v);
   mLinearLayout.removeView(v);
   mCallback.removeTaskDescription(v);
   // Restore the alpha/translation parameters to what they were before swiping
   // (for when these items are recycled)
   View contentView = getChildContentView(v);
   contentView.setAlpha(1f);
   contentView.setTranslationY(0);
 }
 public void onChildDismissed(View v, boolean fromUser) {
   addToRecycledViews(v);
   mLinearLayout.removeView(v);
   mCallback.handleSwipe(v);
   // Restore the alpha/translation parameters to what they were before swiping
   // (for when these items are recycled)
   View contentView = getChildContentView(v);
   contentView.setAlpha(1f);
   contentView.setTranslationX(0);
 }