Example usage for android.widget FrameLayout setTranslationY

List of usage examples for android.widget FrameLayout setTranslationY

Introduction

In this page you can find the example usage for android.widget FrameLayout setTranslationY.

Prototype

public void setTranslationY(float translationY) 

Source Link

Document

Sets the vertical location of this view relative to its #getTop() top position.

Usage

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());
}