2011-02-04 13 views
0

私はタブに次のXMLを使用しています。このタブが下部に表示されています。しかし、タブはリストによって重複しているので、私はタブの機能にアクセスできません。画像はそれをよりよく説明できるかもしれない。 Android +タブを前面に表示

リストはタブの上に描画されます。このため

![<TabHost xmlns:android="http://schemas.android.com/apk/res/android" 
     android:id="@android:id/tabhost" android:layout_width="fill_parent" 
     android:layout_height="fill_parent"> 
     <RelativeLayout android:orientation="vertical" 
      android:layout_width="fill_parent" android:layout_height="fill_parent" 
      > 
      <View android:layout_width="fill_parent" android:layout_height="0.5dip" 
       android:background="#000"/> 
      <TabWidget android:id="@android:id/tabs" 
       android:layout_width="fill_parent" android:layout_height="wrap_content" 
       android:layout_marginLeft="0dip" android:layout_marginRight="0dip" 
       android:layout_alignParentBottom="true" 
       /> 
      <View android:layout_width="fill_parent" android:layout_height="2dip" 
       android:background="#696969" /> 
      <View android:layout_width="fill_parent" android:layout_height="2dip" 
       android:background="#000" /> 
      <FrameLayout android:id="@android:id/tabcontent" 
       android:layout_width="fill_parent" android:layout_height="fill_parent" /> 
     </RelativeLayout> 
    </TabHost>][1] 

答えて

0

スーリヤのゾルあなたはそれのためにbootmだけで設定された固定サイズでタブを重ならないようlsitview高さを設定する必要がある:私は、フロント XMLにタブを持参のいずれかの提案は感謝しています。


<Listview 
android:layoutheight="some fixed value"> 

あなたが動的にTHTのTHNの使用に


ln.setLayoutParams(new LayoutParams(width,height)); 
+0

ありがとうChirag !.これは当面有効です。もし私がより良い解決策を見つけるなら、私はここにそれを掲示するでしょう – surya

1

を満たしている場合は、ここのように、あなたのリストビューにパディングを設定する必要があります。 android:paddingBottom="65dip"を。 この方法では、リストはタブホストと重複しません。

関連する問題