0
我在ViewPager
內部實施了HorizontalListView
。 ViewPager
正常工作,但ViewPager
(HorizontalListView
)的孩子不滾動。相反,整個頁面滾動到下一個。父母和孩子都觸摸事件時如何解決觸摸事件?如何在android中Viewpager中處理觸摸事件HorizontalListScrollview或horizontalListview?
在我的情況ViewPager
是膨脹pager.xml
pager.xml
<?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="fill_parent"
android:orientation="vertical" >
<com.geekyouup.paug.awesomepager.HorizontialListView
android:id="@+id/listview"
android:layout_width="fill_parent"
android:layout_height="135dip"
android:background="#ffffff"
android:gravity="left" />
<TextView
android:id="@+id/t1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="sagfjsdkfksjdfhkjs" />
<TextView
android:id="@+id/t2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="he ha ha ha" />
</LinearLayout>
只是想,兩個控件都在消耗「水平觸摸動作」,所以我認爲它不可能使其工作 – Selvin 2012-03-02 11:21:39
:(真的不可能嗎?沒有其他選擇 – 2012-03-02 11:30:34