private void scrollToBottom() { if (adapter.getCount() > 0) { mListView.smoothScrollToPosition(adapter.getCount()); } }