I need to create a custom dialog, so I'm doing so as follows:
    private void ShowSetOptions(Activity context, UserOptions userOptions)
    {
        var dialog = new Dialog(context);
        dialog.SetContentView(Resource.Layout.view_set_unset_buttons);
    }
The layout
view_set_unset_buttons
is basically a list of buttons which the user can press.
The trouble is, depending on the the value of userOptions, I don't want to show all the buttons in view_set_unset_buttons.
Is there a way for me to apply logic to the creation of view_set_unset_buttons so that I can hide some of the buttons?
SOLUTION:
The solution is to implement my own Dialog box, as outlined in this answer: How to create a Custom Dialog box in android?
 
     
     
    