how to setcheck in checkbox in listview when user clicks positive button in custom alert dialog?

StackOverflow https://stackoverflow.com/questions/21378744

質問

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.

役に立ちましたか?

解決

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

他のヒント

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top