1

ListView setOnItemClick issue

view story
linux-howto

http://stackoverflow.com – So I am making a Listview using my custom adapter. The adapter layout is shown below <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <TextView android:id="@+id/textViewName" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout> Then I set onItemClickListener to the ListView and it is doing fine. Then when I added a button to the layout become <LinearLayout (HowTos)