private void init(@Nullable AttributeSet attrs, int defStyleAttr) {
        // Get the mention span config from custom attributes
        mentionSpanConfig = parseMentionSpanConfigFromAttributes(attrs, defStyleAttr);

        // Must set movement method in order for MentionSpans to be clickable
        setMovementMethod(MentionsMovementMethod.getInstance());

        // Use MentionsEditable instead of default Editable
        setEditableFactory(MentionsEditableFactory.getInstance());

        // Start watching itself for text changes
        addTextChangedListener(mInternalTextWatcher);

        // Use default MentionSpanFactory initially
        mentionSpanFactory = new MentionSpanFactory();
    }
private void init(@Nullable AttributeSet attrs, int defStyleAttr) {
        
        mentionSpanConfig = parseMentionSpanConfigFromAttributes(attrs, defStyleAttr);

        
        setMovementMethod(MentionsMovementMethod.getInstance());

        
        setEditableFactory(MentionsEditableFactory.getInstance());

        
        addTextChangedListener(mInternalTextWatcher);

        
        mentionSpanFactory = new MentionSpanFactory();
    }
private void init ( @ Nullable AttributeSet attrs , int defStyleAttr ) { // Get the mention span config from custom attributes mentionSpanConfig = parseMentionSpanConfigFromAttributes ( attrs , defStyleAttr ) ; // Must set movement method in order for MentionSpans to be clickable setMovementMethod ( MentionsMovementMethod . getInstance ( ) ) ; // Use MentionsEditable instead of default Editable setEditableFactory ( MentionsEditableFactory . getInstance ( ) ) ; // Start watching itself for text changes addTextChangedListener ( mInternalTextWatcher ) ; // Use default MentionSpanFactory initially mentionSpanFactory = new MentionSpanFactory ( ) ; }
Initialization method called by all constructors.
Initialization method called by all constructors .