Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check visibility status of EditText in android?

I am changing EditText visibility from invisible to visible by using setvisibility(View.INVISIBLE) and setvisibility(View.VISIBLE). But i also want to know is there any method provided in android to check EditText's visibility i.e is EditText is visible or any of that kind.

Thanks in advance.

like image 911
Maverick Avatar asked Dec 01 '11 13:12

Maverick


1 Answers

You should be able to retrieve that by calling the method isShown() on your EditText.

like image 160
kaspermoerch Avatar answered Oct 19 '22 07:10

kaspermoerch