Java ScrollView不能平滑滚动
我正在添加一个Java ScrollView不能平滑滚动,java,android,xml,scrollview,Java,Android,Xml,Scrollview,我正在添加一个滚动视图和几个文本视图。我使用web服务填充数据(来自服务器的php/mysql数据)。除了一个问题,一切都很好。当用户滚动页面/活动时,滚动不如列表视图平滑 我在这里发布我的xml: <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width=
滚动视图
和几个文本视图
。我使用web服务填充数据(来自服务器的php/mysql数据)。除了一个问题,一切都很好。当用户滚动页面/活动时,滚动不如列表视图
平滑
我在这里发布我的xml:
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:focusable="true"
android:id="@+id/scrolFullText"
tools:context=".FullText" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
android:id="@+id/HEAD"
android:text="@string/HEAD"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:textColor="@color/blue"
/>
<TextView
android:id="@+id/WRITER"
android:text="@string/WRITER"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="@color/darkgreen"
/>
<TextView
android:id="@+id/CATEGORY"
android:text="@string/CATEGORY"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="6dp"
/>
<TextView
android:id="@+id/TEXT"
android:text="@string/TEXT"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="6dp"
/>
</LinearLayout>
</ScrollView>
如何使滚动更平滑?滚动可能不平滑,因为正在处理某些后台作业,您可以在多个设备上测试应用程序
顺便说一句,我猜
滚动视图的高度应该是匹配\u parent
你能发布你的适配器代码吗?这可能与如何填充ScrollView有关。我只是在使用AyncTask,并使用textview.setText(DataFromServer)
设置文本;