काम नहीं कर रहा है तो वास्तव में मेरे पास एक सूची है जो एक कस्टम एडाप्टर के साथ देखें और यह एक दृश्य को बढ़ाता है जिसमें क्षैतिज स्क्रॉलव्यू के साथ-साथ एक टेक्स्टव्यू इत्यादि भी शामिल है। समस्या यह है कि जब मैं श्रोता संलग्न करने का प्रयास करता हूं इस सूची में देखें कि इसे कोई कॉलबैक नहीं मिल रहा है।क्षैतिज ScrollView OnItem के साथ ListView
मुझे विश्वास है कि समस्या को इस तथ्य के साथ करना है कि मेरी सूची आइटम में एक स्क्रॉल व्यू है जो क्लिक ईवेंट को रोक रहा है (हालांकि मैंने सोचा था कि इसे केवल अन्य संकेतों को रोकना चाहिए)।
कोड ... (मेरी सूची में आइटम एक्सएमएल)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linearMain"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/grey" >
<TextView
android:id="@+id/headerName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:padding="4dp"
android:textColor="@color/text_header"
android:textStyle="bold"
android:text="TextView" />
</RelativeLayout>
<View
android:background="@color/border"
android:layout_width="fill_parent"
android:layout_height="1px" />
<HorizontalScrollView
android:id="@+id/horizontalScrollView1"
android:layout_width="fill_parent"
android:focusable="false"
android:focusableInTouchMode="false"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/linearImages"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="4dp">
</LinearLayout>
</HorizontalScrollView>
<View
android:background="@color/border"
android:layout_width="fill_parent"
android:layout_height="1px" />
</LinearLayout>
और फिर मेरी onCreate में ...
lv.setAdapter(myobj.adapter);
lv.setTextFilterEnabled(true);
lv.setOnItemClickListener(new OnItemClickListener(){
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
// TODO Auto-generated method stub
Log.w("dsdsds", "sdsdsds");
}});
कोई मदद या सुझाव हो सकता है बहुत सराहना
किसी भी सलाह बहुत अच्छा होगा – Maurycy
तो जवाब में से कोई भी वास्तव में इसे ठीक है और मैं कोड के लिए पहुँच नहीं है अब और आधार अगर कोई इस मुद्दे पर आता है और एक ज्ञात फिक्स है तो मैं – Maurycy