0

私のコードは次のとおりです。

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#000000"
    android:orientation="vertical" >

    <ImageView
        android:id="@+id/title"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:src="@drawable/title"
        android:contentDescription="@string/title_name" />
    <TextView 
        android:id="@+id/space"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"/>

    <ScrollView android:id="@+id/scroll_view1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

    <LinearLayout 
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#000000"
        android:orientation="vertical">

     ---------
     ---------
</LinearLayout>

    </ScrollView>

    <TextView 
        android:id="@+id/space10"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"/>

    <TextView 
        android:id="@+id/copyright"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/copyright_text"
        android:textColor="#ffffff"/>

</LinearLayout>

ここでは、スクロールビューの前に上記のテキストビューとイメージビューを確認できますが、スクロールビュー後の下部のテキストビューは確認できません。私のコードに間違いはありますか?私を助けてください。

4

1 に答える 1

1

これを試して

<ImageView
    android:id="@+id/title"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:src="@drawable/title"
    android:contentDescription="@string/title_name" />
<TextView 
    android:id="@+id/space"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
   />

<ScrollView android:id="@+id/scroll_view1"
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_weight="1.0">

<LinearLayout 
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#000000"
    android:orientation="vertical">

     ---------
     ---------
</LinearLayout>

</ScrollView>

<TextView 
    android:id="@+id/space10"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"/>

<TextView 
    android:id="@+id/copyright"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/copyright_text"
    android:textColor="#ffffff"/>

それが役に立てば幸い...!!!

于 2012-09-28T06:44:13.910 に答える