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

前端 未结 3 1138
粉色の甜心
粉色の甜心 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:20

    you should have TabHost and TabWidget in your xml layout, take a look at the Tab Layout example.

提交回复
热议问题