I write a customized item layout for a listview. The layout has many widgets and some will have its own clicklistener.
When I click the row, sometimes the listview\' s o
After spenting some time trying, I solved both.
the first. if your customized listview' s layout has a textview which has been set autolink
or Linkify
in the code, the click event in the textview won' t affect the list' s row. You have to extends your own TextView
and override onTouchEvent
method. please see it here
the second. just set in the customized listview' s root node: android:descendantFocusability="blocksDescendants"
, and then, in your widget which will have its own onClickListener
, set android:clickable="true"
, it works for me.
hope it useful for those you encounter the same:-)