怎么加按钮点击就到侧滑页面啊啊,求大神指教,看图
学习是最好的投资!
這個使用自備的DrawLayout可以實現。具體你可以百度,
自行搜尋Android design support library 或直接新建工程勾選 Navigation Drawer Activity
加上一個按鈕監聽打開側滑,用一個boolean變數控制開關狀態
繪製佈置
使用DrawLayoutdrawerLayout.openDrawer(Gravity.LEFT);//參數看著弄
google官方側邊欄選單Demohttps://github.com/googlesamp...
ActionBar有事件的呀,配合SlideMenu輕鬆實現
推薦一個簡單的例子http://www.jcodecraeer.com/a/...
這個使用自備的DrawLayout可以實現。具體你可以百度,
自行搜尋Android design support library
或直接新建工程勾選 Navigation Drawer Activity
加上一個按鈕監聽打開側滑,用一個boolean變數控制開關狀態
繪製佈置
使用DrawLayout
drawerLayout.openDrawer(Gravity.LEFT);//參數看著弄
google官方側邊欄選單Demo
https://github.com/googlesamp...
ActionBar有事件的呀,配合SlideMenu輕鬆實現
推薦一個簡單的例子
http://www.jcodecraeer.com/a/...