2012-03-02 9 views
0

ViewPagerの中にHorizontalListViewを実装しました。 ViewPagerは正常に動作しますが、ViewPagerHorizontalListView)の子はスクロールしません。代わりに、ページ全体が次にスクロールします。親と子の両方がイベントに触れるときにタッチイベントを解決する方法は?私の場合ViewPagerアンドロイドのViewpagerでタッチイベントHorizo​​ntalListScrollviewまたはhorizo​​ntalListviewを処理する方法は?

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> 
+0

と思うと、両方のコントロールが「水平タッチ移動」を消費しているので、それを動作させることはできません。 – Selvin

+0

:(それは本当に不可能ですか?それに代わるものはありません –

答えて

0

solution

を見て、彼にそれを可能に感謝:)膨らませる親ビューであります

関連する問題