All Questions
Tagged with visibility view
63
questions
1
vote
0
answers
129
views
Android CustomView behave abnormal
I am creating an application, in which a camera is showing with an option on screen to hide and show grids on the screen. I created this grid by CustomView and it was working fine. but when I hide the ...
0
votes
2
answers
170
views
setVisibilty() wont work first time
I have a layout called a controller in it i have a couple buttons and such
the problem is in my onTouch function i want to show it on one click and hide it on another. Now this works after 2 touches. ...
0
votes
1
answer
436
views
Admob view set to GONE keeps receiving clicks
Please note : Currently not using any XML for Layout! And I don't want to change that.
I have an Admob banner inflating in my game at a certain point. I used this tutorial. It's working fine.
Now, ...
0
votes
1
answer
732
views
View.Invisible - images stay on the screen
I trying to set visibility of my imageview , button and textview. But they still there when I run the program.
I tried the View.GONE but that just remove all the textview, imageview and button. But I ...
1
vote
3
answers
6k
views
Android - How to close or hide a view and bring it back
I have three views in my app and I would like to be able to hide them and bring them back selectively. I have tried using the following triggered by a button click event:
if(SurfaceView().isShown()==...
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. ...
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 ...
1
vote
1
answer
319
views
NPE on setting visibility
Some users of out application are complaining about a nullpointerexception, which seems to occur only to them (HTC Desire, newest Android, 2.3?) but is not reproducable on other devices. I'm a bit ...
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) ...
1
vote
4
answers
6k
views
Android - How do I set View.GONE outside the UI thread?
I want to make a view disappear (to be gone) when the user pushes a button.
I can make it inside the onCreate() method (main UI thread) by doing:
findViewById(R.id.llLoadingGallery).setVisibility(...
0
votes
1
answer
2k
views
Android - problem with RelativeLayout children with GONE visibility
Here the sample code:
public class CustomImageVIew extends LinearLayout {
private Image mImage = null;
private ImageView mImageView;
private ProgressBar mProgressBar;
...
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 ...
0
votes
1
answer
391
views
Last place to set visibility of a child view
I am using Android APi 3.
I built a container control that contains two controls: another container (layout) and a ListView.
In the main container control, I overrode onLayout function to change ...
1
vote
1
answer
92
views
How do I use jQuery to determine when a div is out of view to the right?
I have a div that displays near a control when it's focused on. Initially, the div was on the left of the control, and life was easy. A simple if left < 0 { left = 0; } would keep the div on the ...
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 ...