Android Tab Views - could not create tab content because could not find view with id

前端 未结 3 1128
粉色の甜心
粉色の甜心 2021-01-20 13:27

I am trying to create a tab view with will switch to a different content view by Id. Here is my tab activity:

public class TabViews extends TabA         


        
3条回答
  •  既然无缘
    2021-01-20 14:06

    Your xml should have something like ,

      
    
        
    
           
    
        
    
        
    
        
        
    

    examples: http://www.androidhive.info/2011/08/android-tab-layout-tutorial/ http://www.codeproject.com/Articles/107693/Tabbed-Applications-in-Android

提交回复
热议问题