ViewGroup.LayoutParams layoutParams = viewContainer.getLayoutParams(); layoutParams.height = Util.dip2px(this, 448); viewContainer.setLayoutParams(layoutParams);
<FrameLayout android:id="@+id/view_container" android:layout_width="match_parent" android:layout_height="@dimen/y1100" android:paddingLeft="@dimen/x30" android:paddingRight="@dimen/x30"> </FrameLayout>