android - Assign positive and negative button a dialogfragment with custom view and buttons -


i using dialog fragment custom view. has tick mark below. want assign tick "postive button".

setpositivebutton takes string in common way.

    builder.setpositivebutton("ok",             new dialoginterface.onclicklistener() {                 public void onclick(dialoginterface dialog, int whichbutton) {                     getdialog().dismiss();                 }             }     ); 

enter image description here


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -