List of usage examples for android.view.animation AnimationUtils makeInChildBottomAnimation
public static Animation makeInChildBottomAnimation(Context c)
From source file:edu.mit.mobile.android.livingpostcards.CardViewActivity.java
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor c) { if (c.moveToFirst()) { // don't show deleted cards. This just confuses things. if (Card.isDeleted(c)) { finish();//from ww w .jav a2s.c o m return; } final int videoCol = c.getColumnIndexOrThrow(Card.COL_VIDEO_RENDER); // if the card has a video render, show that mHasVideo = !c.isNull(videoCol) && c.getString(videoCol).length() > 0; mHandler.sendEmptyMessage(MSG_LOAD_CARD_MEDIA); setTitle(Card.getTitle(this, c)); mSherlock.getActionBar().setSubtitle(c.getString(c.getColumnIndexOrThrow(Card.COL_AUTHOR))); mIsEditable = PrivatelyAuthorable.canEdit(mUserUri, c); mIsOwner = mUserUri.equals(c.getString(c.getColumnIndexOrThrow(Card.COL_AUTHOR_URI))); final View addPicture = findViewById(R.id.add_frame); if (mIsEditable) { addPicture.setVisibility(View.VISIBLE); addPicture.startAnimation(AnimationUtils.makeInChildBottomAnimation(this)); } else { addPicture.setVisibility(View.GONE); } mWebUrl = c.getString(c.getColumnIndexOrThrow(Card.COL_WEB_URL)); // resolve to a full URL final NetworkClient nc = LocastApplication.getNetworkClient(this, Authenticator.getFirstAccount(this)); mWebUrl = mWebUrl != null ? nc.getFullUrlAsString(mWebUrl) : null; try { mSherlock.dispatchInvalidateOptionsMenu(); } catch (final OutOfMemoryError oom) { // well, damn. } } else { finish(); } }