WEB开发网
开发学院手机开发Android 开发 Android SlidingDrawer 滑动抽屉效果 阅读

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
			}	
		});

上一页  1 2 

Tags:Android SlidingDrawer 滑动

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接