[英]Scroll View inside Nested Scroll View does't work
Is it true or not ? 是真的吗? i want to scroll on the listview too inside my activity by using nested scroll view.
我也想通过使用嵌套滚动视图在活动中在listview上滚动。 Please help.
请帮忙。 Thanks in advance
提前致谢
<android.support.v4.widget.NestedScrollView
android:id="@+id/login_form"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/insertkend_form"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/listAksesoris">
</ListView>
</ScrollView>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
现在可以正常工作,只需删除scrollview
并添加到listview
android:nestedScrollingEnabled="true"
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.