ok, I am making an app for a phone. I made a function for my dialog and just calling the function when needed.
I want to be able to change the dialog window ie: different colors and lines and stuff to separate the text out.
I have looked all over the internet and I cant find anything that can help me.
here is the function that I am calling....
public void userNameRequired(View view)
{
AlertDialog.Builder builder = new AlerdDialog.Builder(this);
TextView newMessage = new TextView(this);
newMessage.setText(" User Name is Required to be between 7 and 20 caracters long.");
newMesage.setGravity(Gravity.CENTER_HORIZONTAL);
builder.setView(newMessage);
TextView title = new TextView(this);
title.setText("!! NOTICE !!");
title.setGravity(Gravity.CENTER);
title.setTextSize(28);
title.setTextColor(Color.RED);
builder.setCustomTitle(title);
builder.setPositiveButton("Ok", new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
}
});
builder.show();
}