Android 滚动列表视图更改
请告诉我,为什么在一个列表视图中,滚动条不断地从一个项目切换到另一个项目? 如何使它永久化Android 滚动列表视图更改,android,listview,Android,Listview,请告诉我,为什么在一个列表视图中,滚动条不断地从一个项目切换到另一个项目? 如何使它永久化 <ListView android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/WallList" android:layout_margin="10dp" android:divider="@
<ListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/WallList"
android:layout_margin="10dp"
android:divider="@android:color/transparent"
android:dividerHeight="20dp"
android:padding="10dp"
android:fadeScrollbars="false"
android:scrollbarStyle="outsideInset"/>
自定义列表视图:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/listbackground"
android:padding="10dp">
<TextView android:id="@+id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:textColor="#000"
android:textSize="15dp"
android:text="ghbd"/>
</LinearLayout>
图片:
在自定义列表视图中
<?xml version="1.0" encoding="utf-8"?>
将textview高度设置为固定大小的“android:layout_height=“75dp”。这样它们就不会异常拉伸。在自定义列表视图中
<?xml version="1.0" encoding="utf-8"?>
将textview高度设置为固定大小的“android:layout_height=“75dp”。这样它们就不会异常拉伸。您是否正在尝试制作一个不会在滚动条上更改的列表视图。请详细说明您自己,或者尝试解释一下,因为项目的高度不同。。。你的问题解决了吗?塞尔文,谢谢。它起作用了。但是我想做一个平滑的滚动。你是想做一个滚动不改变的列表视图吗。请详细说明你自己,或者请尝试解释一下,因为项目的高度不一样。。。你的问题解决了吗?塞尔文,谢谢。它起作用了。但是我想做一个平滑的卷轴。但是我不能设定一个固定的高度,文本可以是一个巨大的文本。那么你能不能精确一点你想要归档的内容现在,平滑的文本视图具有不同的高度(这个应用程序用于vk.com,新闻活动),但我不能设置固定的高度,文本可以是一个巨大的文本,那么你可以精确地确定你想要归档的内容吗?-现在,不同高度的平滑文本视图(此应用程序适用于vk.com,新闻活动)