Code example for ListFragment

Methods: onDestroy

0
        chat.stop();
    } 
 
    @Override 
    public void onDestroy() { 
        super.onDestroy(); 
        chat.shutdown();
    } 
 
    public void showError() { 
        Animation animation = loadAnimation(R.anim.slide_in_down);
        errorView.setVisibility(View.VISIBLE);
        errorView.startAnimation(animation);
    } 
 
    public void hideError() { 
        errorView.setVisibility(View.GONE);
    } 
 
    public void showProgress() { 
        showViewAnimated(progressView);