All Questions
Tagged with visibility view
63
questions
84
votes
9
answers
26k
views
android View with View.GONE still receives onTouch and onClick
This is confusing me:
As far as I have read, a view with setVisibility(View.GONE); should not receive any more touch- or click events.
My layout has two parts, which will be visible or gone so that ...
27
votes
5
answers
8k
views
Objects visibility
I've done a lot of search but can't find the difference between tools:visibility = "visible" and android:visibility = "visible" ? Which situation I must use tools or android?
25
votes
9
answers
26k
views
What's the best way to check if the view is visible on the window?
What's the best way to check if the view is visible on the window?
I have a CustomView which is part of my SDK and anybody can add CustomView to their layouts. My CustomView is taking some actions ...
22
votes
2
answers
32k
views
Determine if a view is on screen - Android
I'm a little bit stuck with this one - first and foremost, the following link has been useful however I've come up with a bit of an issue with visibility:
The link: Check view visibility
I have a ...
11
votes
3
answers
22k
views
setvisibility(view.visible) not working after setvisibility(view.gone)
I saw some post about this and I understood the problem. But how can go around it? I have ListView with item that can be expanded but once the view is gone it cannot be visible again, unless it has a ...
8
votes
3
answers
4k
views
Android - Calling GONE and then VISIBLE makes the view to be shown in the wrong place
I have two views, A and B, and the view A is above the view B (both are linear layouts).
When I, programmatically, set the view A to be GONE, it disappears and the view that was right below it (B) ...
7
votes
3
answers
13k
views
Android visibility issue with checkbox
I´m using a checkbox in my code that when its checked it makes a textview and a editText visibles, but if I uncheck de checkbox they continue being visible instead of dissapear.
Here is the code:
...
7
votes
2
answers
6k
views
How to make a LayerDrawable (layer-list item) invisible on Android?
I have defined a layer-list with a couple of items on an xml file.
The items are displayed o.k.
I want every five second or so one of the layers to become invisible.
It works o.k. for a simple ...
7
votes
5
answers
10k
views
Adding a view dynamically not showing view
I am using following code to inflate a view in my layout under its child LinearLayout:
LayoutInflater vi = (LayoutInflater)getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
...
5
votes
3
answers
4k
views
Android - Why is the TextView shown as having a height?
I've got an odd problem here. Basically I have a TextView with no default set text. I would've expected it to have a height of 0 since it hsas no content but there seems to be a gap between the ...
5
votes
1
answer
4k
views
how to make a view to appear gradually, not suddenly
I need to make a certain view to appear/ disappear gradually, step by step and not suddenly. If I use MyView.setvisibility(View.GONE) or MyView.setvisibility(View.VISIBLE) everything happens suddenly. ...
4
votes
4
answers
7k
views
Android Visibility from GONE to VISIBLE doesn't work first time
Hello I have a problem with an animation I try to make.
I use this library AndroidViewAnimations.
Here is my layout xml code:
<Button
android:id="@+id/buttonDetails"
style="...
4
votes
2
answers
1k
views
Android textview blinking after changing its visibility using animation [duplicate]
I have some views in the constraint layout. I used animation to reveal and hide the view. When the view is GONE, it blinks for a second and become visible and then gone.
view.animate()
....
3
votes
0
answers
1k
views
Android tab activity View visibility change event
What is the event dispatched to a View when its visibility changes?
I have a custom View that is attached to a tab. When my custom View becomes invisible because the user switches to other tabs, I ...
2
votes
2
answers
3k
views
Toggle View Visibility
I have found lots of questions about View visibility. I already know the difference between .GONE and .INVISIBLE. What I don't know is how to make a proper toggle to make them .VISIBLE/.GONE whenever ...