All Questions
23
questions
0
votes
1
answer
84
views
android Xml layout, visibility gone resize my parent layout
i have an issue with my xml layout
i have a switch which is supposed to hide / activate the visibility of one my layout
but when i hide my layout, somehow my root layout width is modified
here is my ...
0
votes
0
answers
163
views
Empty view not showing for Listview
in my android app I have the following layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" ...
0
votes
1
answer
231
views
Visibility of Editext Not Working in my dialogue in android
Edittext Visibility not working in dialogue in my code here is my xml.
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:...
0
votes
1
answer
2k
views
Changing visibility of a view from GONE to VISIBLE causes lag and slow
I'm getting stuck at this problem.
I have an activity like attached image.
by default, in the toolbar, display only layout1, then when user click on layout1, layout2 appear/gone. I'm using layout1....
0
votes
0
answers
49
views
Layout and Toast not displaying
My MainActivity layout consists of 4 embedded LinearLayouts, all declared Visibility:GONE in the XML.
The first layout contains just a TextView. I set this layout to VISIBLE, and then try to display ...
0
votes
2
answers
1k
views
Checkbox doesn't check first time after visibility change from GONE to VISIBLE
I have a CheckBox in my XML layout and its visibility set to GONE. Here is my layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/...
1
vote
1
answer
823
views
Android View doesn't become VISIBLE
I'm trying to implement controls for my music player.
Here is my XML:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-...
-3
votes
5
answers
122
views
Android visibility issue with Button?
I´m using a Button and CheckBox in my code. I want when the button is clicked to make the checkboxes visible, but when I click on this button, then this error is coming in logcat: ...
1
vote
1
answer
1k
views
Animate element from Gone to Visible (rather than from Invisible)
I want to fade in an element, but in a way that it is hidden (GONE) into visible, moving away the elements in the way. The animation I am currently using is the AlphaAnimation
Animation fadeIn = new ...
0
votes
4
answers
2k
views
how can i change another item in the list view when an item is clicked?
title explains it yet i would like to explain more;
I have a list view which all items have orange background. To say it simple: when one item is clicked it turns its background to blue. When another ...
0
votes
2
answers
376
views
Hide/unhide layout in list item
I have a layout for list item, which consists of two LinearLayouts. What I want to achieve is: when item is clicked, second LinearLayout should become visible/gone, depending on the current visibility....
1
vote
3
answers
446
views
Android : Having trouble using visibility on xml layout file
I having a trouble using visibility in one of my controls.
I can set the control in the xml file saying and it work ok. but if i have a string.xml with value of visibility = gone and pass that value ...
1
vote
1
answer
765
views
Visibility changed programmatically does not match with weights
When I change the visibility, layout remains the same and is not resized as expected.
Here is my XML:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
...
5
votes
2
answers
18k
views
RelativeLayout refresh after view.setVisibility(View.GONE) and view.setVisibility(View.VISIBLE)
Please look at the following image to understand the problem:
As you can see, there is a RelativeLayout which holds a custom View and a LinearLayout.
Between them, there is also another View, which ...
0
votes
2
answers
131
views
How to handle the hiding from LinearLayouts?
I have a LinearLayout in a ListView and when I click a Button i want to show or hide anything in the LinearLayout.
row = inflater.inflate(R.layout.info_top_rows_layout, parent, false);
...