protected void setHeightHeader(final int heightHeader) { mHeightHeader = heightHeader; // some implementations dont use a fake header if (mFakeHeader != null) { ViewGroup.LayoutParams lpFakeHeader = mFakeHeader.getLayoutParams(); lpFakeHeader.height = mHeightHeader; mFakeHeader.setLayoutParams(lpFakeHeader); } ViewGroup.LayoutParams lpHeader = mHeader.getLayoutParams(); lpHeader.height = mHeightHeader; mHeader.setLayoutParams(lpHeader); calculateMaxTranslation(); mHeaderAnimator.setHeightHeader(mHeightHeader, mMaxHeaderTranslation); }
protected void setupAnimator() { mHeaderAnimator.setupAnimator(mHeader, mMinHeightHeader); }