All Questions
52
questions
0
votes
2
answers
124
views
Dynamically added Views not visible
I am trying to add TextViews to a LinearLayout wrapped in a ScrollView during runtime, but the visibility of the TextViews will eventually not display on screen even though their visibility flags are ...
1
vote
1
answer
338
views
Identify first visible view inside viewgroup
I have several TextViews inside ConstraintLayout. The visibility of those TextViews are set at runtime based upon the data availability.
I need to bold the text of the first visible TextView.
I have ...
0
votes
2
answers
578
views
Android - check if a view is visible to the user
Say I have View A and View B as sibling views in my Android activity.
View B hides View A (for example, view B has a black background hiding view A)
They both have the exact same dimensions filling up ...
0
votes
2
answers
63
views
Visibility to Gone in Android
I am working on dynamic view. I am everything like generating Image view's id ,constraints with loop and setting all in code. I want one Pause and Start button. If I click on pause everything should ...
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()
....
0
votes
1
answer
842
views
Custom visibility xml params
I want to create a new xml parameter for one of my custom views to handle the visibility of something within it. I can do it other ways of course, but I would like to do it in a way that I can use ...
0
votes
1
answer
464
views
Make visible single View in RelativeLayout
I have a RelativeLayout which contains a LinearLayout containing 2 buttons. I would like to make those buttons visible without making the whole RelativeLayout or LinearLayout visible. While debugging, ...
0
votes
1
answer
631
views
OS version 4.4 (KitKat) and 5 (Lollipop) onVisibilityChanged Listener Not Firing
I have looked online for an answer to this, but have not found the root cause of this issue.
I have an application with a view, that listens in on onVisibilityChanged and onWindowVisibilityChanged. ...
0
votes
1
answer
108
views
Android View is not respecting Bundle state, being recreated disregarding Bundle information
View is not using automatically generated Bundle information.
Searching Stack Overflow yielded no results about it. View is not custom, has unique name id. Is not a duplicated of:
findViewById not ...
1
vote
1
answer
431
views
How to know when a view is visible on the screen?
How to know when a view is actually visible on screen?
View.getVisibility is not accurate enough for my case. It gets set to true before the view is completely rendered.
Specifically, I'm using a ...
0
votes
0
answers
361
views
Android zoom in animation from visibility start state of View.GONE
I have a RelativeLayout containing an ImageView and progress bar.
The starting state on the RelativeLayout is View.Gone.
Using an animation library (tried several so the problem isn't the libs),
I'm ...
2
votes
2
answers
294
views
Setvisibility doesn't work on Buttons
I have a bunch of buttons aligned in a TableLayout in different rows. So when I go through them in a loop and call btn.setVisibility(View.INVISIBLE) some of them get hidden, but others don't. And it ...
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 ...
1
vote
1
answer
94
views
Android - Button visibility not changing
this is probably a dummy question but I've searching for at least an hour and I didn't find any solution.
I'm working with Google Maps and I'm setting a button visibility to VISIBLE when the user ...
1
vote
0
answers
859
views
View.setVisibility(View.Gone) doesn't work anymore
I have a problem. view.setVisibility(View.GONE) doesn't work for me anymore. I will show you what I'm working on.
I globally declared this outside of OnCreate() :
final ArrayList<View> ...