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.

Answers


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


Need Your Help

iOS WatchKit / Swift - Lazy Loading images in WKInterfaceTable rows

ios swift watchkit user-experience apple-watch

In my Apple Watch app, I have a table with about 25 rows, and each one has a few bits of text and an image that needs to be loaded from the internet. Similar to an Instagram-style feed, but these are

git subtree push --squash does not squash

git push git-push git-subtree squash

I am using git subtree to organize my git repositories. Let's say I have a main repository called repo and a library called lib.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.