public class HostActivity extends AppCompatActivity {
Intent intent;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tab_activity);
intent = getIntent();
TabHost tabHost = findViewById(R.id.tabHost);
tabHost.getTabWidget();
tabHost.setup();
TabHost.TabSpec tabSpec1=tabHost.newTabSpec("tab1").setIndicator("PC_VR").setContent(R.id.btn3);
tabHost.newTabSpec("tab1").setIndicator("PC VR").setContent(R.id.btn4);
tabHost.newTabSpec("tab1").setIndicator("PC VR").setContent(R.id.btn5);
tabHost.newTabSpec("tab1").setIndicator("PC VR").setContent(R.id.btn6);
tabHost.newTabSpec("tab1").setIndicator("PC VR").setContent(R.id.btn7);
tabHost.newTabSpec("tab1").setIndicator("PC VR").setContent(R.id.btn8);
tabHost.newTabSpec("tab1").setIndicator("PC VR").setContent(R.id.btn9);
tabHost.newTabSpec("tab1").setIndicator("PC VR").setContent(R.id.btn10);
tabHost.addTab(tabSpec1);
TabHost.TabSpec tabSpec2= tabHost.newTabSpec("tab2").setIndicator("Mobile_VR").setContent(R.id.btn11);
tabHost.newTabSpec("tab2").setIndicator("Mobile VR").setContent(R.id.btn12);
tabHost.newTabSpec("tab2").setIndicator("Mobile VR").setContent(R.id.btn13);
tabHost.newTabSpec("tab2").setIndicator("Mobile VR").setContent(R.id.btn14);
tabHost.newTabSpec("tab2").setIndicator("Mobile VR").setContent(R.id.btn15);
tabHost.newTabSpec("tab2").setIndicator("Mobile VR").setContent(R.id.btn16);
tabHost.newTabSpec("tab2").setIndicator("Mobile VR").setContent(R.id.btn17);
tabHost.addTab(tabSpec2);
tabHost.setCurrentTab(0);
}
}
로그캣 오류는 없고 실행은 잘 되는데 탭은 보이고 버튼들만 안보이네요 뭐가 잘못된거죠?