All Questions
Tagged with visibility listview
76
questions
1
vote
5
answers
6k
views
How to setVisibility in a listview by a button outside it?
I have a custom Listview with 1 Button on a row
I would like to add a button outside the Listview to set the visibility on button on all rows
How can i achieve this?
And i DONT wanna use ...
0
votes
1
answer
260
views
ListView is populated but displays no elements
I have googled and searched this site for answer but get nothing ;/
So, here is my problem i have listview which i try to populate with data from database but the list displays nothing. I realy stuck ...
1
vote
1
answer
1k
views
Android actionbar menu item
I have a item menu (sorting list) in my actionbar that I have to set its visibility to VISIBLE / GONE (depending on the list size -> empty or not).
So what I need is to check if listview is empty or ...
2
votes
1
answer
409
views
Hiding elements in a GridView (used as a ListView's view) completely?
I have a ListView and a button. Now, when I press the button I want to display only the elements that meet the required criteria. I'm using a converter on the visibility of the items, but if I return ...
3
votes
2
answers
3k
views
Change an icon in an Android ListView entry when pressed
I am currently trying to implement a ListView in Android that features rows with an icon and a describing text. When the user presses a row, the background color should change and the icon should be ...
0
votes
7
answers
1k
views
How to set the visibilty of button in a custom ListView?
I have a custom ListView with a button, so when I click on a button it should disappear and it is disappearing but when I scroll down and come back the button is again appearing and a different button ...
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);
...
11
votes
3
answers
22k
views
setvisibility(view.visible) not working after setvisibility(view.gone)
I saw some post about this and I understood the problem. But how can go around it? I have ListView with item that can be expanded but once the view is gone it cannot be visible again, unless it has a ...
1
vote
1
answer
1k
views
Getting references to views in ListView
I''m struggling a little with the hierarchy here. I'd like to get references to every ImageButton view with the id delete_img in my listView. The imagebutton is added via the XML in the row layout xml....
4
votes
1
answer
6k
views
Android: ListView tells me it's populated but not displaying items
So I've googled, and scoured SO for an answer to what I think is probably a ridiculous oversight, but here goes.
I have a ListView that I'm populating with an ArrayAdapter that I'm building out of a ...
2
votes
3
answers
3k
views
Changing the visibility of a textview in a listview
I have a listview which is build up of two textviews coming from a separate layout file. I use a BaseAdapter to build the list from a JSON file.
I would like the first textview (Caption) to be ...
1
vote
2
answers
935
views
listview with imageview and visibility
I'm making an application that parses text and images from the Internet and displays them in a ListView. This works fine.
In each of the rows of ListView, the ImageView has GONE visibility value.
I'...
1
vote
2
answers
390
views
OnListIemClick set visibility for each row
I am trying to show a list that when I pressed it in that position I would like to show an image that is gone and to change the typeface of that row. So first I have a xml file with a simple list and ...
0
votes
1
answer
882
views
List View - setting View.GONE upon menu selection doesn't hide immediately
TLDR:
I'm setting myListView.setVisibility(View.GONE);, but it's not dissappearing until later... do I need to let it know somehow that I've changed it's visibility? Or do I need to also hide it's ...
0
votes
3
answers
99
views
ListView Visible if multiple rows
How do I bind the ListViews visibility to a calculation? I want the Listviews to be visible ONLY if there are more than one record in the DataContexts Collection (IEnumerable)