I'm trying to get a reference to a TextView in the AlertDialog with this code:
AlertDialog.Builder logoutBuilder = new AlertDialog.Builder(getActivity());
TextView alertTextView = (TextView) logoutBuilder.findViewById(android.R.id.message);
alertTextView.setTextSize(40);
But I'm getting a compiler error at findViewById:
Cannot cast from AlertDialog.Builder to Dialog
The method findViewById(int) is undefined for the type AlertDialog.Builder