Getting DrawerLayout to Slide over the ActionBar

前端 未结 10 1680
星月不相逢
星月不相逢 2020-12-02 09:46

I have a sliding drawer menu in an activity, which has an actionbar with some tabs on it.

I\'d like to get the sliding drawer to slide over the tabs , not below th

10条回答
  •  半阙折子戏
    2020-12-02 09:58

    Actionbar Navigaton Drawer and SwipeTabs cant be used simultaneously. You should implement Navigation Drawer using Actionbar and swipetabs by simple Tabhosts. You can use Tabhost for tabs and use fragments for inside view of each Tab. Fragments should be used via viewpager to provide scrolling/swiping effect. Connect tabs and viewpager with eachother through their methods

    
    
    
    
        
    
            
    
                
                
            
    
            
    
                
            
        
    
    

提交回复
热议问题