Code example for SortedSet

Methods: add

0
				lp.height = (Integer) valueAnimator.getAnimatedValue();
				dismissView.setLayoutParams(lp);
			} 
		}); 
 
		mPendingDismisses.add(new PendingDismissData(dismissPosition, dismissView));
		animator.start();
	} 
 
	/** 
	 * Changes text in the popup depending on stored undos. 
	 */ 
	private void changePopupText() { 
		String msg = "";
		if(mUndoActions.size() > 1 && mDeleteMultipleString != null) {
			msg = String.format(mDeleteMultipleString, mUndoActions.size());
		} else if(mUndoActions.size() >= 1) {
			// Set title from single undoable or when no multiple deletion string 
			// is given 
			if(mUndoActions.get(mUndoActions.size() - 1).getTitle() != null) {
				msg = mUndoActions.get(mUndoActions.size() - 1).getTitle();