Code example for LinkedList

Methods: poll

0
            public void onAnimationStart(Animation animation) {
            } 
 
            @Override 
            public void onAnimationEnd(Animation animation) {
                Message nextMessage = mMessages.poll();
 
                if (nextMessage != null) {
                    show(nextMessage);
                } else { 
                    mCurrentMessage = null;
                    mContainer.setVisibility(View.GONE);
                    mShowing = false;
                } 
            } 
 
            @Override 
            public void onAnimationRepeat(Animation animation) {
            } 
        });