Back button behavior with tabs and ActivityGroup

后端 未结 2 945
南旧
南旧 2021-01-28 23:29

I have an Activity (Main) which shows tabs like this:

private void initTabs(){
    mTabHost = getTabHost(); // The activity TabHost

    Intent inte         


        
2条回答
  •  梦谈多话
    2021-01-29 00:01

    So I found the answer.

    I have an admob adview in my Main, which seems the cause of this problem. This is the xml:

        
        
            
            
            
            
    
        
    
    

    When I remove the adview, the problem doesn't occur.

    Now to solve this, I've changed the xml into this:

    
    
        
            
                
    
                
            
            
                
            
        
    
    

提交回复
热议问题