<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
      android:background="@layout/detail_style"
 > 
  
 <ScrollView
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
      android:paddingTop="5dp"
        android:paddingBottom="5dp"
        android:paddingLeft="5dp"
        android:paddingRight="5dp"> <ImageView
        android:layout_width="wrap_content"
        android:layout_height="240dp"
        android:background="@drawable/sample_9" 
       /> 
 
 
  
 
 <ImageView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/tip_1" 
       /> 
   <TextView 
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
     android:text="@string/text_81"
      android:textSize="18dp"
      android:textColor="#000000"
       >
        
     </TextView>     
  <ImageView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/tip_2" 
       /> 
   <TextView 
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
     android:text="@string/text_82"
      android:textSize="18dp"
      android:textColor="#000000"
 
       />
        
 
   
 
 <ImageView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/tip_3" 
       /> 
   <TextView 
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
     android:text="@string/text_83"
      android:textSize="18dp"
      android:textColor="#000000"
 
       />
 
  
<TabHost android:id="@android:id/tabhost" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent"
  >
    <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
        <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1" />
        <TabWidget android:id="@android:id/tabs" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" />
             <RadioGroup android:gravity="center_vertical"
android:layout_gravity="bottom" android:orientation="horizontal"
android:id="@+id/main_radio" android:background="@layout/bottom_style"
android:layout_width="fill_parent" android:layout_height="wrap_content">

  <RadioButton  android:id="@id/radio_button3" 
      android:layout_marginTop="0dp" 
      android:text="@string/upload" 
      android:drawableTop="@drawable/tab_1" 
      style="@style/main_tab_bottom" />
                <RadioButton  android:id="@id/radio_button4"
                     android:layout_marginTop="0dp" 
                     android:text="@string/like" 
                     android:drawableTop="@drawable/tab_2" 
                     style="@style/main_tab_bottom" />
                <RadioButton  android:id="@id/radio_button5" 
                    android:layout_marginTop="0dp"
                     android:text="@string/font" 
                     android:drawableTop="@drawable/tab_3" 
                     style="@style/main_tab_bottom" />
                 <RadioButton  android:id="@id/radio_button6" 
                    android:layout_marginTop="0dp"
                     android:text="@string/feedback" 
                     android:drawableTop="@drawable/tab_4" 
                     style="@style/main_tab_bottom" />
 
</RadioGroup>
    </LinearLayout>
</TabHost>
</ScrollView>
</LinearLayout>

解决方案 »

  1.   

    已解决 将textview 放到scrollview下设置scorllview的高度值就可以了。谢谢大家!!xml
    <?xml version="1.0" encoding="utf-8"?> 
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
        android:orientation="vertical" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
          android:background="@layout/detail_style"
     > 
     
     <LinearLayout
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
          android:paddingTop="5dp"
            android:paddingBottom="5dp"
            android:paddingLeft="5dp"
            android:paddingRight="5dp"> <ImageView
            android:layout_width="wrap_content"
            android:layout_height="240dp"
            android:background="@drawable/sample_8" 
           /> 
     </LinearLayout>
     
      <LinearLayout
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
          android:paddingLeft="5dp"
        
         >
     <ImageView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/tip_1" 
           /> 
     <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/sv"
            android:layout_width="wrap_content"
            android:layout_height="80dp"
            >
       <TextView 
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
         android:text="@string/text_71"
          android:textSize="18dp"
          android:textColor="#000000"
           />
          
     </ScrollView>
      
     </LinearLayout>
      
      <LinearLayout
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
          android:paddingLeft="5dp"
         
         >
     <ImageView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/tip_2" 
           /> 
    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
          
            android:layout_width="wrap_content"
            android:layout_height="110dp"
            >
       <TextView 
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
         android:text="@string/text_72"
          android:textSize="18dp"
          android:textColor="#000000"
     
           />
            </ScrollView>
     </LinearLayout>
       
     
      <TabHost android:id="@android:id/tabhost" 
         android:layout_width="fill_parent" 
         android:layout_height="fill_parent"
      >
        <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1" />
            <TabWidget android:id="@android:id/tabs" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" />
                 <RadioGroup android:gravity="center_vertical"
    android:layout_gravity="bottom" android:orientation="horizontal"
    android:id="@+id/main_radio" android:background="@layout/bottom_style"
    android:layout_width="fill_parent" android:layout_height="wrap_content">

      <RadioButton  android:id="@id/radio_button3" 
          android:layout_marginTop="0dp" 
          android:text="@string/collect" 
          android:drawableTop="@drawable/tab_1" 
          style="@style/main_tab_bottom" />
                    <RadioButton  android:id="@id/radio_button4"
                         android:layout_marginTop="0dp" 
                         android:text="@string/like" 
                         android:drawableTop="@drawable/tab_2" 
                         style="@style/main_tab_bottom" />
                    <RadioButton  android:id="@id/radio_button5" 
                        android:layout_marginTop="0dp"
                         android:text="@string/font" 
                         android:drawableTop="@drawable/tab_3" 
                         style="@style/main_tab_bottom" />
                     <RadioButton  android:id="@id/radio_button6" 
                        android:layout_marginTop="0dp"
                         android:text="@string/feedback" 
                         android:drawableTop="@drawable/tab_4" 
                         style="@style/main_tab_bottom" />
     
    </RadioGroup>
        </LinearLayout>
    </TabHost>
    </LinearLayout>