Code example for LinkedList

Methods: clear

0
    public void setOnClickListener(OnMessageClickListener listener) {
        mClickListener = listener;
    } 
 
    public void clear() { 
        mMessages.clear();
        mHideRunnable.run();
    } 
 
    private final Runnable mHideRunnable = new Runnable() {
        @Override 
        public void run() { 
            mContainer.startAnimation(mFadeOutAnimation); 
        } 
    }; 
 
    public void onRestoreInstanceState(Bundle state) {
        Message currentMessage = state.getParcelable(STATE_CURRENT_MESSAGE);
        if (currentMessage != null) {
            show(currentMessage, true);
            Parcelable[] messages = state.getParcelableArray(STATE_MESSAGES);