Animation animation = new Flip3dAnimation(list, edit, cx, cy, false);
animation.setAnimationListener(new AnimationListener() {
@Override
public void onAnimationEnd(Animation animation) {
if (AdapterView.INVALID_POSITION != editingPosition) {
ListView listView = getListView();
listView.requestFocus();
int first = listView.getFirstVisiblePosition();
int last = listView.getLastVisiblePosition();
if (editingPosition < first || editingPosition > last) {
listView.setSelection(editingPosition);
}
}
setTitle();