clear all EditText on a Form - Android User Interface

Android examples for User Interface:EditText

Description

clear all EditText on a Form

Demo Code


//package com.java2s;

import android.widget.EditText;

public class Main {
    public static void clearForm(EditText... editTexts) {
        for (EditText editText : editTexts) {
            editText.setText("");
        }//w ww.  j  a va2s.c om
    }
}

Related Tutorials