typewriterview/src/main/java/in/codeshuffle/typewriterview/TypeWriterView.java
public void animateText(String text) {
        if (!animating) {
            animating = true;
            mText = text;
            mPrintingText = text;
            mIndex = 0;
            playMusic();
            setText("");
            mHandler.removeCallbacks(mCharacterAdder);
            //typing start
            if (mTypeWriterListener != null)
                mTypeWriterListener.onTypingStart(mPrintingText);
            mHandler.postDelayed(mCharacterAdder, mDelay);
        } else {
            //CAUTION: Already typing something..
            Toast.makeText(mContext, "Typewriter busy typing: " + mText, Toast.LENGTH_SHORT).show();
        }
    }
/**
     * Call this function to display
     *
     * @param text attribute
     */
Call this function to display
@param text attribute
Call this function to display @param text attribute
public void animateText(String text) {
        if (!animating) {
            animating = true;
            mText = text;
            mPrintingText = text;
            mIndex = 0;
            playMusic();
            setText("");
            mHandler.removeCallbacks(mCharacterAdder);
            if (mTypeWriterListener != null)
                mTypeWriterListener.onTypingStart(mPrintingText);
            mHandler.postDelayed(mCharacterAdder, mDelay);
        } else {
            Toast.makeText(mContext, "Typewriter busy typing: " + mText, Toast.LENGTH_SHORT).show();
        }
    }
public void animateText ( String text ) { if ( ! animating ) { animating = true ; mText = text ; mPrintingText = text ; mIndex = 0 ; playMusic ( ) ; setText ( "" ) ; mHandler . removeCallbacks ( mCharacterAdder ) ; if ( mTypeWriterListener != null ) mTypeWriterListener . onTypingStart ( mPrintingText ) ; mHandler . postDelayed ( mCharacterAdder , mDelay ) ; } else { Toast . makeText ( mContext , "Typewriter busy typing: " + mText , Toast . LENGTH_SHORT ) . show ( ) ; } }
Call this function to display
 @param text attribute
Call this function to display @param text attribute
//typing start //CAUTION: Already typing something..