Skip to main content

Questions tagged [visibility]

Visibility is an attribute of an object. It may refer to the concept of having something visible (or not) on the graphical interface, or a symbol visibility in linkage. This tag should not be used in place of the more specific tags [memory-visibility] or [class-visibility].

visibility
8693 votes
67 answers
3.2m views

How do I check if an element is hidden in jQuery?

How do I toggle the visibility of an element using .hide(), .show(), or .toggle()? How do I test if an element is visible or hidden?
Philip Morton's user avatar
1394 votes
21 answers
759k views

What is the difference between visibility:hidden and display:none?

The CSS rules visibility:hidden and display:none both result in the element not being visible. Are these synonyms?
Chris Noe's user avatar
  • 36.9k
560 votes
45 answers
312k views

How to check visibility of software keyboard in Android?

I need to do a very simple thing - find out if the software keyboard is shown. Is this possible in Android?
fhucho's user avatar
  • 34.4k
399 votes
6 answers
660k views

Equivalent of jQuery .hide() to set visibility: hidden

In jQuery, there are .hide() and .show() methods which sets the CSS display: none setting. Is there an equivalent function which would set the visibility: hidden setting? I know I can use .css() ...
Tomas's user avatar
  • 58.8k
327 votes
4 answers
164k views

Difference between Visibility.Collapsed and Visibility.Hidden

What are differences between Visibility.Collapsed and Visibility.Hidden in WPF?
Sauron's user avatar
  • 16.8k
192 votes
12 answers
197k views

DataTrigger where value is NOT null?

I know that I can make a setter that checks to see if a value is NULL and do something. Example: <TextBlock> <TextBlock.Style> <Style> <Style.Triggers> <...
Timothy Khouri's user avatar
171 votes
18 answers
124k views

How do I invert BooleanToVisibilityConverter?

I'm using a BooleanToVisibilityConverter in WPF to bind the Visibility property of a control to a Boolean. This works fine, but I'd like one of the controls to hide if the boolean is true, and show if ...
user avatar
162 votes
3 answers
56k views

What is the difference between the hidden attribute (HTML5) and the display:none rule (CSS)?

HTML5 has a new global attribute, hidden, which can be used to hide content. <article hidden> <h2>Article #1</h2> <p>Lorem ipsum ...</p> </article> CSS has ...
james.garriss's user avatar
145 votes
9 answers
618k views

How to make a DIV visible and invisible with JavaScript?

Can you do something like function showDiv() { [DIV].visible = true; //or something }
user avatar
142 votes
4 answers
53k views

Hide/show element with a boolean

I tend to have a lot of these in my code if(shouldElementBeVisible) $element.show() else $element.hide() Is there any more elegant way packaged with javascript, jquery, or underscore? ...
Akhil F's user avatar
  • 7,692
135 votes
6 answers
38k views

Default visibility of class methods in PHP

I looked at the manual, but I can't seem to find the answer. What is the default visibility in PHP for methods without a visibility declaration? Does PHP have a package visibility like in Java? ...
Yada's user avatar
  • 30.9k
132 votes
15 answers
139k views

How do I check if an element is really visible with JavaScript? [duplicate]

In JavaScript, how would you check if an element is actually visible? I don't just mean checking the visibility and display attributes. I mean, checking that the element is not visibility: hidden or ...
Macha's user avatar
  • 14.6k
119 votes
8 answers
115k views

Animate visibility modes, GONE and VISIBLE

So im trying to animate when i set the visibility of a linearlayout with other widgets, from GONE to VISIBLE and the opposite.Im using togglebuttons to show and hide. Here's an image to show what i ...
Maxrunner's user avatar
  • 1,965
119 votes
5 answers
40k views

Package protected alternative in Kotlin

In Java, we have the package protected (default) modifier for classes, which allows us to have many classes in a single package but exposes only a few and keeps the logic encapsulated. With Kotlin ...
vach's user avatar
  • 11.1k
107 votes
4 answers
74k views

Private constructor in Kotlin

In Java it's possible to hide a class' main constructor by making it private and then accessing it via a public static method inside that class: public final class Foo { /* Public static method */...
Marvin's user avatar
  • 1,900

15 30 50 per page
1
2 3 4 5
213