1.导第三方jar包 nineoldandroids
2.
在onscrollchanged方法里面填入这几句代码
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
//向右滑动时scale的值就会变大,settranslationx的值就会变大,mmenu就会显示的越多
float scale = l*1.0f/mMenuWidth;
super.onScrollChanged(l, t, oldl, oldt);
ViewHelper.setTranslationX(mMenu, mMenuWidth*scale);
}