I have checked my edittext is visible or invisible in android.
Now i have to check the condition is.,
EditText editText = (EditText)findViewById(R.id.editText1);
editText.getVisibility();
this will provide the edittext is VISIBLE, INVISIBLE, or GONE.
if(editText.getVisibility() == View.VISIBLE){
//.. your actions are performed here
}
Refer This. You can find some interesting details about VISIBLE ,GONE and INVISIBLE