2011-02-04 4 views
0

탭에 다음 XML을 사용 중이며 맨 아래에 탭이 표시됩니다. 그러나 탭이 목록에 의해 겹쳐서 나는 모든 탭 기능에 액세스 할 수 없습니다. 그림이 더 잘 설명 할 수 있습니다. Android + Tab을 앞으로 가져 오기

목록은 탭 위에 표시됩니다. 나는 앞 XML에 탭을 가져 오는 어떤 제안을 주셔서 감사합니다 : 이것에 대한

![<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 높이를 설정해야합니다. android:paddingBottom="65dip" :


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

는 동적 THT THN 당신은, 당신의 목록보기에 패딩을 설정 여기처럼해야


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

감사합니다. Chirag !. 이것은 당분간 일하고 있습니다. 더 나은 솔루션을 찾으면 여기에 게시 할 것입니다. – surya

1

사용하여 작성하는 경우. 이렇게하면 목록이 탭 호스트와 겹치지 않습니다.

관련 문제