我已经将滚动视图应用于整个布局,并且该布局具有一个列表视图。当在模拟器中运行应用程序时,两个滚动视图都在为整个布局和另一个用于列表视图的滚动视图(都可以正常工作)运行一个滚动视图。但是当我在手机中安装我的应用程序只有外滚动视图工作滚动视图的ListView不起作用。任何人都可以告诉我我的问题的原因和解决方案。我们可以在滚动查看列表视图?
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bg4"
android:orientation="vertical"
android:scrollbarAlwaysDrawVerticalTrack="true" >
<ListView
android:id="@+id/listViewTickets"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp" >
</ListView>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginBottom="70dp"
android:orientation="horizontal"
>
<Button
android:id="@+id/btnNew"
android:layout_width="80dp"
android:layout_height="30dp"
android:background="@drawable/btnnew" />
<Button
android:id="@+id/btnUpdate"
android:layout_width="80dp"
android:layout_height="30dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:background="@drawable/edit" />
</LinearLayout>
列表视图的内容动态地显示。
你的滚动视图结束了吗? –