Android SlidingDrawer 滑动抽屉效果
2012-10-22 11:39:12 来源:WEB开发网核心提示:通过布局文件就已经实现了上面的效果,此外SlidingDrawer还提供了一些方法:SlidingDrawer sd = (SlidingDrawer)findViewById(R.id.slidingdrawer);sd.setOnDrawerOpenListener(new OnDrawerOpenListener
通过布局文件就已经实现了上面的效果,此外SlidingDrawer还提供了一些方法:
SlidingDrawer sd = (SlidingDrawer)findViewById(R.id.slidingdrawer); sd.setOnDrawerOpenListener(new OnDrawerOpenListener(){ public void onDrawerOpened() { // TODO Auto-generated method stub } }); sd.setOnDrawerCloseListener(new OnDrawerCloseListener(){ public void onDrawerClosed() { // TODO Auto-generated method stub } }); sd.setOnDrawerScrollListener(new OnDrawerScrollListener(){ public void onScrollEnded() { // TODO Auto-generated method stub } public void onScrollStarted() { // TODO Auto-generated method stub } });
Tags:Android SlidingDrawer 滑动
编辑录入:爽爽 [复制链接] [打 印]更多精彩
赞助商链接