Code example for ListView

Methods: getAdaptersetSelection

0
        } else if (isFirstRun) { 
            mListView.post( 
                new Runnable() { 
                    @Override 
                    public void run() { 
                        mListView.setSelection(mListView.getAdapter().getCount() - 1);
                    } 
                } 
            ); 
        } 
    } 
     
    public void prePostMode() { 
       	mButtonSend.setEnabled(false);
        mButtonSend.setText(R.string.label_sending);
    } 
     
    public void postPostMode() { 
       	mButtonSend.setEnabled(true);
        mButtonSend.setText(R.string.label_send);
        reload();