Skip to main content

All Questions

Tagged with
0 votes
2 answers
123 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 ...
brutal11's user avatar
1 vote
1 answer
337 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 ...
skafle's user avatar
  • 935
0 votes
2 answers
575 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 ...
And's user avatar
  • 45
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 ...
Manpreet Narang's user avatar
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() ....
jk multi's user avatar
0 votes
1 answer
841 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 ...
jack_the_beast's user avatar
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, ...
Coleen's user avatar
  • 124
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. ...
tomerpacific's user avatar
  • 5,774
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 ...
Bonatti's user avatar
  • 2,770
1 vote
1 answer
429 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 ...
Son Nguyen's user avatar
  • 1,504
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 ...
Roy Hen Engel's user avatar
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 ...
Turkhan Badalov's user avatar
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 ...
Rob's user avatar
  • 2,303
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 ...
Roman Dev's user avatar
  • 103
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> ...
kalu's user avatar
  • 169

15 30 50 per page