2011-01-12 4 views
1
<FrameLayout 
      android:id="@+id/FrameLayout02" 
      android:layout_height="fill_parent" 
      android:layout_width="fill_parent" 
      > 

      <TabHost android:id="@+id/tabhost" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent"> 
       <TabWidget android:id="@android:id/tabs" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
       /> 
       <FrameLayout android:id="@android:id/tabcontent" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:paddingTop="62px"> 


        <EditText 
         android:id="@+id/VisualPane" 
         android:layout_width="fill_parent" 
         android:layout_height="fill_parent" 
        /> 

        <EditText 
         android:id="@+id/HTMLPane" 
         android:layout_width="fill_parent" 
         android:layout_height="fill_parent" 
         /> 
       </FrameLayout> 
      </TabHost> 
     </FrameLayout> 

Wie kann ich diesen Abstand verringern? http://s47.radikal.ru/i118/1101/92/6844493547b4.jpg Ich habe versucht, nutzlos das AttributWie kann ich den Abstand im TabHost verringern?

android:paddingTop="62px" 

Aber es ist zu ändern.

Antwort

2

versuchen, die android:layout_height = "wrap_content" statt "fill_parent"
einstellen Dann können Sie mit dem paddingTop Wert spielen auch :)

Verwandte Themen