如何創建冰淇淋三明治,如API級別10中的標籤佈局?Android:冰淇淋三明治喜歡標籤佈局
Image Preview http://docs.xamarin.com/@api/deki/files/482/=23_-_Tabs.png
我不知道如何自定義標籤佈局。我已經實施了Action Bar,我希望它下面的標籤。
*漸變操作欄和漸變選項卡下面,看起來不酷。
如何創建冰淇淋三明治,如API級別10中的標籤佈局?Android:冰淇淋三明治喜歡標籤佈局
Image Preview http://docs.xamarin.com/@api/deki/files/482/=23_-_Tabs.png
我不知道如何自定義標籤佈局。我已經實施了Action Bar,我希望它下面的標籤。
*漸變操作欄和漸變選項卡下面,看起來不酷。
您要找的是Action Bar Tabs。他們以前的方式,TabHost已被棄用。
這裏有一個很好的鏈接,讓你開始實施它們。 Action Bar User Interface.這是Google爲您帶來的full example。至於樣式化ActionBar和選項卡,here's a great example.
您可以使用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
來支持舊版本。
使用http://actionbarsherlock.com/這個庫,我也使用它的作品像魅力, – 2012-02-08 12:05:09