2013-07-17 49 views
0

正在檢查此link,link。但它確實解決了我想用Title Tabs替換默認標題和圖標的問題。使用標題標題替換標題欄垂直視圖上的默認設置

 // Set up the action bar. 
     final ActionBar actionBar = getActionBar(); 

     // Specify that the Home/Up button should not be enabled, since there is no hierarchical 
     // parent. 
     actionBar.setHomeButtonEnabled(false); 

     // Specify that we will be displaying tabs in the action bar. 
     actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); 

我一直在嘗試一些代碼從上面的鏈接,但我沒有得到我想要的東西。 水平視圖相當好,但對於垂直視圖,它看起來像標籤正在創建另一個標題欄圖層。這與橫向視圖不一樣。在此指導我。謝謝。

enter image description here enter image description here

回答

0

我還沒有解決這個,但是我想我不能把標籤的動作條,一旦它在縱向來看,但如果是在水平視圖它會直接到操作欄部分。我的基礎也來自於這種情況下的其他應用程序。