2

I am trying to add a button in row of List whenever row is selected first time and remove it when that row selected second time

thanks

1
  • 2
    add some code which you have tried.. Commented Oct 18, 2012 at 12:10

2 Answers 2

2

in your getview function of customListAdapter inflate a layout in which keep visibility of button as GONE,then onclick of listitem change the visibility of that button to VISIBLE.

Sign up to request clarification or add additional context in comments.

Comments

0

in your row xml, add a Button and set visibility to View.GONE. Inplement a clickListener on that row that will toggle visibility between View.VISIBLE and View.GONE

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.