Code example for TextView

Methods: setEnabledsetText

0
     */ 
    private void insertCompleted(String message) {
        // Hide the progress bar. 
        mProgressBar.setVisibility(View.GONE);
        // Re-enable the add button. 
        mNumberTextView.setEnabled(true);
        mAddButton.setEnabled(true);
        mNumberTextView.setText("");
        Toast.makeText(this, message, Toast.LENGTH_LONG).show();
    } 
 
 
    /** 
     * Creates a {@link ContentValues} object containing values corresponding to the given cursor. 
     * 
     * @param cursor the cursor from which to get the values 
     * @return a newly created content values object 
     */ 
    private ContentValues createContentValuesFromCursor(Cursor cursor) {
        ContentValues values = new ContentValues();
        for (int column = 0; column < cursor.getColumnCount();