Let\'s say I have a vertical linearLayout with :
[v1] [v2]
By default v1 has visibily = GONE. I would like to show v1 with an expand animat
public static void slide(View v, int speed, int pos) { v.animate().setDuration(speed); v.animate().translationY(pos); v.animate().start(); } // slide down slide(yourView, 250, yourViewHeight); // slide up slide(yourView, 250, 0);