android - ListView and Buttons inside ListView -


After

I want to display a button inside ListView . The goal should be to click on the ListView line or button.

Click on the line, it shows more information, click on the button it appears on the bottom and the button.

The same as the Gmail app

After clicking on the checkbox at the right and after clicking on the checkbox at the bottom, there is a button bar.

My problem is after clicking the button in ListView , the button is not clickable if I use the LinearLayout button ButButton.setClickable () then it works, but only the button ListView does not respond to any more clicks!

I have tried.

The same issue as the above ...

If you are using a custom adapter, clicking the button inside a ListView will not work so you should try to use the following code to check for OnItemClickListener

  ListId.setOnItemClickListener (New AdapterView.OnItemClickListener () {Public Zero onItemClick (AdapterView. & Lt;? & Gt; List, View V, Integer Status, Long ID) Od}});  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -