material/src/main/java/com/rey/material/dialog/SimpleDialog.java
public SimpleDialog message(CharSequence message) {
        if (mScrollView == null)
            initScrollView();

        if (mMessage == null)
            initMessageView();

        if (mScrollView.getChildAt(0) != mMessage) {
            mScrollView.removeAllViews();
            mScrollView.addView(mMessage);
        }

        mMessage.setText(message);
        if (!TextUtils.isEmpty(message)) {
            mMode = MODE_MESSAGE;
            super.contentView(mScrollView);
        }
        return this;
    }
/**
     * Set a message text to this SimpleDialog.
     *
     * @return The SimpleDialog for chaining methods.
     */
Set a message text to this SimpleDialog.
@return The SimpleDialog for chaining methods.
Set a message text to this SimpleDialog . @return The SimpleDialog for chaining methods .
public SimpleDialog message(CharSequence message) {
        if (mScrollView == null)
            initScrollView();
        if (mMessage == null)
            initMessageView();
        if (mScrollView.getChildAt(0) != mMessage) {
            mScrollView.removeAllViews();
            mScrollView.addView(mMessage);
        }
        mMessage.setText(message);
        if (!TextUtils.isEmpty(message)) {
            mMode = MODE_MESSAGE;
            super.contentView(mScrollView);
        }
        return this;
    }
public SimpleDialog message ( CharSequence message ) { if ( mScrollView == null ) initScrollView ( ) ; if ( mMessage == null ) initMessageView ( ) ; if ( mScrollView . getChildAt ( 0 ) != mMessage ) { mScrollView . removeAllViews ( ) ; mScrollView . addView ( mMessage ) ; } mMessage . setText ( message ) ; if ( ! TextUtils . isEmpty ( message ) ) { mMode = MODE_MESSAGE ; super . contentView ( mScrollView ) ; } return this ; }
Set a message text to this SimpleDialog.
Set a message text to this SimpleDialog .