Hi i am using following layout structure inside LinearLayout
try using this
getLayoutParams().height= x; requestLayout(); or invalidate();