private View inflateMessageView ( ) { if ( getRootView ( ) != null ) { inflateMessageContainer ( ) ; if ( customMessageView != null ) { messageContainer . addView ( customMessageView ) ; } else if ( customMessageViewId != - 1 ) { LayoutInflater layoutInflater = LayoutInflater . from ( getContext ( ) ) ; View view = layoutInflater . inflate ( customMessageViewId , messageContainer , false ) ; messageContainer . addView ( view ) ; } else { LayoutInflater layoutInflater = LayoutInflater . from ( getContext ( ) ) ; View view = layoutInflater . inflate ( R . layout . material_dialog_message , messageContainer , false ) ; messageContainer . addView ( view ) ; } View messageView = messageContainer . findViewById ( android . R . id . message ) ; messageTextView = messageView instanceof TextView ? ( TextView ) messageView : null ; return messageContainer ; } return null ; }
Inflates the view which is used to show the dialog s message . The view may either be the default one or a custom view if one has been set before .