Skip to main content

All Questions

Tagged with
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 ...
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 ...
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 ...
0 votes
2 answers
73 views

Swift macOS : view is not loaded and IBOulets are nil in View Controller

I'm writting a simple VAT calculator I would like change the aspect of TextFields, focused one as white background and the others have grey background. Event sending for Textfields seems to be when ...
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 ...
0 votes
0 answers
671 views

(VSCode): Hide views when file type exists in workspace

I am developing a VSCode extension and would only like a viewContainer to be visible if the workspace has a file with a given extension. It seems if all views in a viewContainer are hidden, it will be ...
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() ....
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); ...
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 ...
0 votes
1 answer
684 views

titanium alloy set view visibility

i have a question on what the object.visible property in titanium alloy actually means. in the profile.js controller file of the app there is a check if the user is logged in (state = null) and ...
2 votes
3 answers
5k views

Android View.isShown() is returning false when the View is showing

I have a TextView named tvCallToActionBanner that is shown depending on certain events. This method below controls whether said TextView gets shown. This method gets called in the Activity's onResume()...
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 ...
0 votes
0 answers
34 views

How to Change my Visibility on ViewGroup if any value in my ViewGroup Kotlin Language?

I want to change Groupview.visibility = View.VISIBLE to be GroupView.visibility = View.GONE. How should the code be? this is my Activity.kt if (viewModel.inputPosTableArea1.value != "") { ...
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. ...

15 30 50 per page
1
2 3 4 5