Animation in changing LayoutParams in LinearLayout
In my app there is a LinearLayout which has 0 Layout height. When I click the button this layout height should be LayoutParams.WRAP_CONTENT. This is the code I use in onclicklistner. LayoutParams lp = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); slider.setLayoutParams(lp); I want to animate this. How can I set animation to slider. If you want to implement the slider animation for your layout then see this demo . UPDATED Also see http://www.inter-fuser.com/2009/07/android-transistions-slide-in-and-slide.html Hope it will help you. If not then let me know. Thanks. Enjoy