Android 嵌套滚动
我们如何在嵌套滚动中给予优先级?假设我们有一个Android 嵌套滚动,android,android-listview,scrollview,Android,Android Listview,Scrollview,我们如何在嵌套滚动中给予优先级?假设我们有一个列表视图,其中包含需要滚动的大行。现在我们想让ListView在内部布局滚动完成时滚动。 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:l
列表视图
,其中包含需要滚动的大行。现在我们想让ListView在内部布局滚动完成时滚动。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/poicroll"
>
<RelativeLayout
android:id="@+id/addLay"
android:layout_width="match_parent"
android:layout_height="490dp"
android:paddingLeft="10dp"
android:paddingRight="5dp"
android:paddingTop="10dp" >
//Your Data/ Content here
<HorizontalScrollView
android:layout_below="@+id/btnSavePOI"
android:layout_width="match_parent"
android:layout_height="wrap_content >
//Your Listview here
</HorizontalScrollView>
</RelativeLayout>
</RelativeLayout>
//您的数据/内容在此显示
//您的数据/内容在此显示
Thx dude但是我恐怕我们没有得到对方:D我知道如何实现滚动,只是想知道如何将焦点放在listView的行上,然后再放在listView本身Thx dude但是我恐怕我们没有得到对方:D我知道如何实现滚动,只是想知道如何将焦点放在listView的行上,然后再放在listView本身上