Android scrollview没有';我的布局不起作用

Android scrollview没有';我的布局不起作用,android,layout,Android,Layout,我使用这种布局: <?xml version="1.0" encoding="UTF-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/scroller" android:layout_width="fill_parent" android:layout_height="fill_parent" android:

我使用这种布局:

<?xml version="1.0" encoding="UTF-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/scroller"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:fillViewport="true" 
    android:background="#00868B">


<RelativeLayout 
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 >

  <TextView android:layout_height="wrap_content"
        android:layout_width="fill_parent" 

        android:gravity="center"
        android:layout_alignParentTop="true" 
        />
  <EditText

    android:layout_width="match_parent"
    android:layout_height="wrap_content"


  />

   <TextView android:layout_height="wrap_content"
        android:layout_width="fill_parent" 
        android:gravity="center"
        android:layout_below="@+id/title" />

    <EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"

  />


 <Button ..
    android:layout_width="match_parent"
    android:layout_height="50dp" 
    android:text="@string/getloc" 

    />

 <Button ..
    android:layout_width="match_parent"
    android:layout_height="50dp" 


     />

 <Button ..
    android:layout_width="match_parent"
  ..
    android:layout_alignParentBottom="true" 

    />

</RelativeLayout>



</ScrollView>

没有滚动视图。
当用户在第二个文本视图中输入某个内容时,我希望它“向下”,否则文本视图会变大,但第一个按钮会稳定并阻止视图。

如果你想避免键盘出现时按钮向上移动,你可以在安卓清单的活动节点上放置
android:windowSoftInputMode=“adjustNothing”
。这样,他们就不会在你打字时打扰你了。

好的,我找到了

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/scroller2"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:fillViewport="true" 
    android:background="#00868B">

<LinearLayout 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"   
     >

<RelativeLayout 

 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 >

<TextView android:layout_height="wrap_content"


  <EditText

  />

   <TextView android:layout_height="wrap_content"


    <EditText

  />
    </RelativeLayout>
<Button 

    />

 <Button 

     />

 <Button

    />

</LinearLayout>
</ScrollView>


当前位置主要是,我想使用scrollview。我尝试了你说的内容,但仍然是一样的。是的,我面临的问题是一样的------scrollview无法在任何情况下工作