Android 滚动视图内部滚动布局?

Android 滚动视图内部滚动布局?,android,android-layout,scrollbar,scrollview,Android,Android Layout,Scrollbar,Scrollview,我需要你的帮助。基本上,我创建了一个scrollView作为活动的父布局。现在我需要在活动中添加许多小部件,包括一个edittext,其中包含在这个edittext中设置的大文本值,这个edittext也可以滚动,但是我的文本在一个edittext中不能平滑滚动?我需要像小部件一样的文本区域,我的xml代码如下所示 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas

我需要你的帮助。基本上,我创建了一个scrollView作为活动的父布局。现在我需要在活动中添加许多小部件,包括一个edittext,其中包含在这个edittext中设置的大文本值,这个edittext也可以滚动,但是我的文本在一个edittext中不能平滑滚动?我需要像小部件一样的文本区域,我的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"
    >
    <LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content"
    android:orientation="vertical" 
    android:background="#498BF4"> 
<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Registration"
    android:gravity="center_horizontal" 
    android:textSize="20dip"/>
    </LinearLayout>

  <ScrollView 
    android:id="@+id/scroll" 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    >

    <LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"
    android:orientation="vertical" 
    >  
    <TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="User_id:*"
    android:textSize="15dip"/>
    <EditText
    android:layout_width="fill_parent" 
    android:layout_height="40dip" 
    android:id="@+id/user">  
    </EditText>
    <TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="FirstName:*"
    android:textSize="15dip"/>
    <EditText
    android:layout_width="fill_parent" 
    android:layout_height="40dip" 
    android:id="@+id/fname">  
    </EditText>
    <TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="LastName:*"
    android:textSize="15dip"/>
    <EditText
    android:layout_width="fill_parent" 
    android:layout_height="40dip" 
    android:id="@+id/lname">  
    </EditText>
    <TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Email:*"
    android:textSize="15dip"/>
    <EditText
    android:layout_width="fill_parent" 
    android:layout_height="40dip" 
    android:id="@+id/email">  
    </EditText>
    <TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Currency:*"
    android:textSize="15dip"/>
    <Spinner 
    android:id="@+id/spinner1" 
    android:layout_width="fill_parent" 
    android:layout_height="40dip">
    </Spinner>
    <TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Date of Birth:*"
    android:textSize="15dip"/>
    <EditText
    android:layout_width="fill_parent" 
    android:layout_height="40dip" 
    android:id="@+id/dob">  
    </EditText>
    <LinearLayout 
    android:id="@+id/agepermission"
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"
    android:orientation="vertical" 
    android:visibility="gone"> 
    <EditText
    android:layout_width="fill_parent" 
    android:layout_height="150dip" 
    android:id="@+id/ageterms"

    android:maxLines="10"
    android:textSize="10dip"
    android:text="@string/hello"
    >  
    </EditText>
    <CheckBox 
    android:text="I have permission to use the  website from parent/guardian.*" 
    android:id="@+id/checkBox1" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content">
    </CheckBox>
    <TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Parent Name:*"
    android:textSize="15dip"/>
    <EditText
    android:layout_width="fill_parent" 
    android:layout_height="40dip" 
    android:id="@+id/pname">  
    </EditText>
    <TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Parent Email:*"
    android:textSize="15dip"/>
    <EditText
    android:layout_width="fill_parent" 
    android:layout_height="40dip" 
    android:id="@+id/pemail">  
    </EditText>
    </LinearLayout>

<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Terms and conditions:*"
    android:textSize="15dip"/>

    <EditText
    android:layout_width="fill_parent" 
    android:layout_height="200dip" 
    android:id="@+id/terms"
   ![android:text="i need your help. Basically I created a scrollView as a parent layout of an activity . Now i need to add many widgets inside the activity including an edittext containing large text values set inside this edittext which is also scrollable , but my text inside an edit text not scrolling smoothly? i need text area like widgets i need your help. Basically I created a scrollView as a parent layout of an activity . Now i need to add many widgets inside the activity including an edittext containing large text values set inside this edittext which is also scrollable , but my text inside an edit text not scrolling smoothly? i need text area like widgets i need your help. Basically I created a scrollView as a parent layout of an activity . Now i need to add many widgets inside the activity including an edittext containing large text values set inside this edittext which is also scrollable , but my text inside an edit text not scrolling smoothly? i need text area like widgets i need your help. Basically I created a scrollView as a parent layout of an activity . Now i need to add many widgets inside the activity including an edittext containing large text values set inside this edittext which is also scrollable , but my text inside an edit text not scrolling smoothly? i need text area like widgets"][2]
    android:inputType="textMultiLine"
    android:textSize="10dip"
    >  
    </EditText>
    <TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="By clicking on 'Sign Up' button below you are agreeing to the Terms of Service above and both the Program Policy and the Privacy Policy."
    android:textSize="15dip"/>
    <Button 
    android:text="Sign Up" 
    android:id="@+id/button1" 
    android:layout_width="wrap_content" 
    android:layout_height="40dip"
    >
    </Button>
    </LinearLayout>
   </ScrollView>
   </LinearLayout>

如果输入是多行的,请在编辑文本中使用下面的标记

   android:inputType="textMultiLine"

如果输入为多行,请在edittext中使用下面的标记

   android:inputType="textMultiLine"

我这里也有同样的问题


到目前为止,我知道唯一的解决方案是在EditText获得焦点时禁用ScrollView的滚动。

我在这里遇到了同样的问题


到目前为止,我知道唯一的解决办法是在编辑文本获得焦点时禁用滚动视图。

plz你的问题很不清楚……只要把你想要的屏幕截图放进去就行了。我们会更适当地帮助你。另外,尝试放置您正在使用的xml代码。您想做什么?如果要在Edittext中滚动文本,请设置允许多行和查看的Edittext的高度,然后重试。我有相同的问题:带有android:scrollbars=“vertical”的Edittext,它位于本身可滚动的布局(表单)内。现在,当尝试在EditText中滚动时,外部滚动条会抓住滚动手势。如果手势发生在EditText内,EditText应该滚动。请注意,您的问题非常不清楚…只需输入您想要的屏幕截图。我们会更适当地帮助你。另外,尝试放置您正在使用的xml代码。您想做什么?如果要在Edittext中滚动文本,请设置允许多行和查看的Edittext的高度,然后重试。我有相同的问题:带有android:scrollbars=“vertical”的Edittext,它位于本身可滚动的布局(表单)内。现在,当尝试在EditText中滚动时,外部滚动条会抓住滚动手势。如果手势发生在EditText内,则应滚动EditText。