Code example for Animation

Methods: getDuration

0
                                    GroceryItems.CONTENT_URI, null); 
                            mContentResolver.notifyChange(
                                    RecentItems.CONTENT_URI, null); 
                            view.invalidate();
                        } 
                    }, anim.getDuration());
                    // Move this out of postDelayed for better animation 
                    removeStores(storesAsCSV);
                } 
            }); 
 
            // Dropdown button 
            ImageButton dropDownButton = (ImageButton) view
                    .findViewById(R.id.grocery_row_dropdown);
            registerForContextMenu(view);
            dropDownButton.setOnClickListener(new OnClickListener() {
                @Override 
                public void onClick(View v) {
                    showOptionsDialog(fullItemValues, v);
                } 
            });