listview item with clickable subview sometime can't pass the click event to the item's subview

前端 未结 1 1150
广开言路
广开言路 2020-12-20 07:54

I have a list view , each item has a clickable textview, when I click the textview, then change it into two buttons, if I click the outside of the textview I need the whole

相关标签:
1条回答
  • 2020-12-20 08:27
    <RelativeLayout
        …
        android:descendantFocusability="blocksDescendants"
    >
    
        <Button
            …
            android:focusable="false"
        />
    
    </RelativeLayout>
    
    0 讨论(0)
提交回复
热议问题