check his code i think this will help you a little bit atleast
Boolean bol=false;// to check wether the view is vissible or not
//set the view you want to animate here i hav set it to vv
initiate it on mouse movment according to yor wish
if (bol) {
                         vv.setAnimation(inFromLeftAnimation());
                          vv.setVisibility(vv.VISIBLE);
                    } else {
                        vv.setAnimation(outToLeftAnimation());
                        vv.setVisibility(vv.GONE);
                    }
                bol = !bol;
                }
this is the animating portion
 public static Animation inFromLeftAnimation() {
     Animation inFromLeft = new TranslateAnimation(
     Animation.RELATIVE_TO_PARENT,  -1.0f, Animation.RELATIVE_TO_PARENT,  0.0f,
     Animation.RELATIVE_TO_PARENT,  0.0f, Animation.RELATIVE_TO_PARENT,   0.0f
     );
     inFromLeft.setDuration(350);
     inFromLeft.setInterpolator(new AccelerateInterpolator());
     return inFromLeft;
     }
public static Animation outToLeftAnimation() {
    Animation outtoLeft = new TranslateAnimation(
     Animation.RELATIVE_TO_PARENT,  0.0f, Animation.RELATIVE_TO_PARENT,  -1.0f,
     Animation.RELATIVE_TO_PARENT,  0.0f, Animation.RELATIVE_TO_PARENT,   0.0f
    );
    outtoLeft.setDuration(350);
    outtoLeft.setInterpolator(new AccelerateInterpolator());
    return outtoLeft;
    }
this is not the best method or you can try editing the sliding drawer