i am trying to present an alertdialog in my actvitiy which describe if the user doesnot have some information stored in my database then a alertdialog will popup in front of the user with button. here is my code for the dialog in activity
AlertDialog.Builder myAlert= new AlertDialog.Builder(this);
myAlert.setMessage("You are winner!").setPositiveButton("Continue...", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
}
})
.setTitle("Welcome")
.create();
myAlert.show();
so basicly i am not getting the desired alertdialog i wanted,i am getting something like this enter image description here.
i have no borders between title and message and button, my button not placed at center as default ,what should i do to fix these i have tried many videos and posts.