当前位置: 代码迷 >> Eclipse >> TabHost tabHost = getTabHost();有关问题
  详细解决方案

TabHost tabHost = getTabHost();有关问题

热度:189   发布时间:2016-04-23 12:23:24.0
TabHost tabHost = getTabHost();问题
后面gettabhost有错误The method getTabHost() is undefined for the type tabhost

------解决方案--------------------
TabHost tabHost = (TabHost)getTabHost();
------解决方案--------------------
不是说你这方法未定义么!?
Activity***.this.getTabHost();或mContext.getTabHost();