2011-09-17 92 views
0

我嘗試了一切,但我無法刪除我的tabhost的tabWidget和frameLayout之間的界限。我試過fadingEdge = none,margin = 0但沒有任何事情要做。刪除tabWidget和frameLayout之間的線

我指的是黑線; 白線是一個簡單的視圖(1)tabWidget和FrameLayout裏之間「瞭解」問題出在哪裏...這似乎是FrameLayout裏的不tabWidget 這裏我的形象: http://imageshack.us/f/641/screenlme.jpg/

(1)

<View 
ndroid:layout_width="fill_parent" 
android:layout_height="4dip" 
android:background="#FFFFFF"> 
</View> 

你有沒有建議我?

EDIT 1:I FO加入的FrameLayout

android:background="@drawable/bg_tab_body_patched" 

現在黑線移動一個位遞減;所以這是一個線性佈局問題: http://imageshack.us/f/233/screenav.jpg/

+1

檢查這個帖子,似乎爲此持有答案:http://stackoverflow.com/questions/4221959/tabhost-bottom-border-line-android –

+0

它不起作用 – Soul

回答

2

在你的xml文件中使用下面一行。

android:tabStripEnabled="false" 

您必須將此屬性的TabWidget設置爲xml中的選項卡。

+0

我必須把這條線?我試過了,但沒有結果... – Soul

+0

再次檢查我的答案。我編輯過。 –

+0

它試過,但它不是tabwidget的問題。淡入淡出的邊緣效果(它看起來是一種淡化效果...)在其內容中的幀佈局中,即使在fadingEdge = none的情況下仍存在問題 – Soul

0

它的工作對我來說非常漂亮:

應用自定義主題,以您的活動,並空出機器人:windowContentOverlay屬性。

<style name="YourTheme" parent="if you want"> ...
<item name="android:windowContentOverlay">@null</item> </style>

適用於你的應用程序或主題在AndroidManifest.xml活動:

的themes.xml定義主題

<application android:theme="@style/YourTheme" ... >

相關問題