I have two relative layouts. Both have width of fill parent and height of 100 dip. My requirement is when I click the first layout it should shrink to 50dip height and the o
Are you using the correct LayoutParams class for your particular view? Try using LinearLayout.LayoutParams.