Android : Multiple Actions on a List View - Focus Issue

前端 未结 6 1049
醉酒成梦
醉酒成梦 2021-02-06 02:55

I would like to implement a ListView, which I can do no problem w/ my cursor. Right now depending on which row you click on it takes you to a new activity based on the informati

6条回答
  •  悲&欢浪女
    2021-02-06 03:30

    I would like to thank BoD for its hint on removing the focusable state to the button(s), it saved my day.

    But for information, since the button is no more focusable - state_focused on < selector > xml - , its design won't display anymore to the user.

    Those buttons will still get the state pressed though, but also when clicking anywhere else on the parent view (anywhere BUT another button) !

    Keep that in mind, it could not be a good solution for your own case, but it does work well.

提交回复
热议问题