List of usage examples for android.widget FrameLayout setTranslationY
public void setTranslationY(float translationY)
From source file:com.sociablue.nanodegree_p1.MovieDetailPagerFragment.java
private void setupEnterAnimations() { int id = mMovieList.get(mCurrentPosition).getId(); View currentPage = mPager.findViewWithTag(id); FrameLayout imgContainer = (FrameLayout) currentPage.findViewById(R.id.details_img_container); imgContainer.setTranslationY(-imgContainer.getMeasuredHeight()); LinearLayout contentContainer = (LinearLayout) currentPage.findViewById(R.id.details_copy_container); contentContainer.setTranslationY(contentContainer.getMeasuredHeight()); }