2013-11-02 36 views

回答

2

使用操作SetIcon(R.drawable.icon)以顯示在位文字的片段標籤圖標,

看到這個example

像:

// Create Tab1 with a custom image in res folder 
    mTabHost.addTab(mTabHost.newTabSpec("tab1").setIndicator("", getResources().getDrawable(R.drawable.tab1)), 
      FragmentTab1.class, null); 
+0

你嘗試我的解決方案? –

相關問題