2011-06-13 30 views
0


我使用一個標籤,在該標籤按鈕添加情節性的,我的要求是,以減少標籤按鈕的高度,給自定義樣式的標籤button.I正在使用的Android 1.5.My代碼,給出以下
android:在android中更改選項卡樣式和高度?

tabHost.addTab(tabHost.newTabSpec(LIST1_TAB_TAG).setIndicator(LIST1_TAB_TAG).setContent(new TabContentFactory() { 
     public View createTabContent(String arg0) { 
      return listView1; 
     } 

    })); 

    tabHost.addTab(tabHost.newTabSpec(LIST2_TAB_TAG).setIndicator(LIST2_TAB_TAG).setContent(new TabContentFactory() { 
     public View createTabContent(String arg0) { 
      return listView2; 
     } 
    })); 


請幫
問候奧古斯丁

回答

1

如果您正在尋找自定義選項卡,這可能幫助。

Creating tabs programatically

Creating tabs through xml

+1

請[提供鏈接上下文(http://stackoverflow.com/questions/how-to-answer)。總結答案中的內容;包括供參考的鏈接。即使鏈接不包含,您的答案也應該有意義。 – Gilles 2011-06-13 10:51:25

+2

我會嘗試下一次完美。 – 2011-06-13 11:01:52

+0

由於這些鏈接沒有上下文,並且爲將來的人節省了時間。鏈接2中有更多的細節。 – 2012-10-19 07:50:54

相關問題