I change the visibility from EditText from invisible to visible using setvisibility(View.INVISIBLE) and setvisibility(View.VISIBLE) . But I also want to know if there is any method provided in android for checking the visibility of an EditText ie is EditText visible or any of this type.
EditText
setvisibility(View.INVISIBLE)
setvisibility(View.VISIBLE)
Thanks in advance.
You can get this by calling the isShown() method on EditText .
isShown()
Try using this method:
isShown ();
you can also try ...
if(edittextname.getVisibility() == View.VISIBLE) { }
or
if(edittextname.getVisibility() == View.INVISIBLE) { }
Source: https://habr.com/ru/post/902844/More articles:How to add special characters like &> to an XML file using JavaScript - javascriptXML Safe URLEncoding? - xmlHow to add style tag on web page from external javascript (js) file - javascriptRemoving SVN username and password from Eclipse does not work on Windows 7 - eclipseMySQL-Unable to go to row 0 at MySQL result index - databaseFailed to reach breakpoint in ndk-gdb in Android - androidDefining a region code for a DVD in OS X in C WITHOUT requiring a DVD to be in the drive - macosAndroid Facebook SDK - How to request Facebook notifications - androidgit tool comparable to bzr qlog - gitHow to define an override method in Java bytecode? - javaAll Articles