/** * Gets the behind offset. * * @return The margin on the right of the screen that the behind view scrolls to */ public int getBehindOffset() { return ((RelativeLayout.LayoutParams) mViewBehind.getLayoutParams()).rightMargin; }