Question

In my application i have created a list view and check box.When the user clicks any item in the listview a alert dialog should appear and when the user clicks positive button on alert dialog the checkbox has to checked automatically. How to perform this action? Please help me.

Was it helpful?

Solution

Take a boolean variable and set its default value to false on the creation of every dialog and on the click of positive button of alert dialog set it to true and make a check on the close of dialog if variable is true then set check for that particular checkbox in listview

OTHER TIPS

create a base adapter as private class. Pass the checkbox in the listview as a parameter when the checkbox in popup is triggered also trigger this checkbox which is passed as parameter

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top