2012-02-08 132 views

回答

0

您要找的是Action Bar Tabs。他們以前的方式,TabHost已被棄用。

這裏有一個很好的鏈接,讓你開始實施它們。 Action Bar User Interface.這是Google爲您帶來的full example。至於樣式化ActionBar和選項卡,here's a great example.

+0

我已經實施了Action Bar。我想要它下面的標籤。 – SkyWalker 2012-02-08 11:15:52

+1

好的,所以,我的答案仍然是你要找的。點擊這些鏈接,好友。 – adneal 2012-02-08 11:43:35

+0

我沒有看到有關TabHost在文檔中被棄用的任何內容:http://developer.android.com/reference/android/widget/TabHost.html – 2012-11-16 19:21:54

2

您可以使用ActionBar創建此類選項卡。由於Android3.0支持ActionBar,所以有一個針對舊版本的支持包。可以使用ActionBarSherlock

The library will automatically use the native action bar when available or will automatically wrap a custom implementation around your layouts. This allows you to easily develop an application with an action bar for every version of Android back through 1.6. 

訪問ActionBarSherlock地址 - ActionBarSherlock

編輯:檢查這個Application。它使用ActionBarSherlock來支持舊版本。

+0

我已經實施了Action Bar。我想要它下面的標籤。 – SkyWalker 2012-02-08 11:15:34

+0

你需要藍色標籤在右下角? – Shaiful 2012-02-08 11:27:47

+0

你有沒有從這個[鏈接](http://docs.xamarin.com/android/tutorials/Introduction_to_Ice_Cream_Sandwich) – Shaiful 2012-02-08 11:29:49

相關問題