0

I want to show the stacktrace in a dialog. Here is the dialog:

  AlertDialog dialog = new AlertDialog.Builder(this)
                    .setTitle(title)
                    .setCancelable(false)
                    .setMessage("Occur exception, please click me")
                    .show();
            TextView textView = (TextView)dialog.findViewById(android.R.id.message);
            textView.setTextSize(30);

It's working, but I want to change the title textsize and title textColor. I tried:

TextView titleView = (TextView)dialog.findViewById(android.R.id.title);
titleView.setTextSize(40);

It did not work. Perhaps, it is impossible to change title color and text size?

Nathan S. Watson-Haigh
  • 4,873
  • 2
  • 16
  • 18
chohyunwook
  • 361
  • 1
  • 2
  • 15

0 Answers0