Skip to main content

All Questions

Tagged with
22 votes
8 answers
34k views

Android: How to hide a ListView Item

How can you hide an item in a ListView or at least set its height to zero? I have tried setting the visibility of the View to GONE but it still maintains the item's space (height).
Tawani's user avatar
  • 11.2k
19 votes
7 answers
40k views

C#/WPF: Make a GridViewColumn Visible=false?

Is there an option to hide a GridViewColumn somehow like this: <ListView.View> <GridView> <GridViewColumn Header="Test" IsVisible="{Binding Path=...
Joseph jun. Melettukunnel's user avatar
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 ...
Jesus Dimrix's user avatar
  • 4,548
7 votes
7 answers
12k views

Android set View.GONE does not "release" space in listview

I have a listview with some items that can be marked as "done". There is also a togglebutton that says "hide done items". However, when I do hide the items by setting setVisibility(View.GONE) there ...
Peter Berkenbosch's user avatar
7 votes
1 answer
76k views

String was not recognized as a valid Boolean when added to visible attribute

I'm trying to add a true or false Visible attribute to my listview itemtemplate table. What I did is that I have a hiddenfield that is set at page load so that I can make a specific column visible or ...
marchemike's user avatar
  • 3,257
6 votes
1 answer
7k views

Hiding ListViewItem instead of removing it?

The common way to NOT display a ListViewItem is to remove it. I my current project, this makes things too complicated compared to the possibility of just hiding the item. Is there any way to hide a ...
joe's user avatar
  • 8,614
5 votes
2 answers
5k views

Check Scrollbar Visibility

Is there a way to check if the Vertical Scroll Bar is visible on a certain ListView object? I got a Windows Forms with a listView on it, on the resize event i would like to catch if the listview has ...
Cloaky's user avatar
  • 1,115
4 votes
4 answers
5k views

WPF - Do not show Context menu when ListView is empty

I have a ContextMenu bind to ListView, but I don't want to be the menu shown when the ListView is empty. I tried direct binding to element, tried binding using FindAncestor, but none of these works ...
George Hx's user avatar
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 ...
Kimo's user avatar
  • 51
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 ...
gtRfnkN's user avatar
  • 489
3 votes
3 answers
4k views

Visibility GONE in ListView

I use a ListView to display TextViews. My app looks like this: When I click on a word it disappears: But the ListView still keeps the empty row. I want my app to look like this after click: Does ...
user2456977's user avatar
  • 3,870
3 votes
2 answers
2k views

How do you change the visibility of widgets inside individual listview rows from onlistitemclick in Android?

My ultimate goal is to change the source of the information in this tutorial from an array to a cursor. Here is a link to the full code. The gist of it is that you click a row in the list, and the ...
peetsnack's user avatar
  • 101
2 votes
2 answers
3k views

How can I determine if a VB.NET ListView is displaying vertical scrollbar to user

I feel like this should be something simple, but I can't seem to find out how to do this. I have a list view control, and I would just like to be able to determine if the vertical scroll bar is ...
slister's user avatar
  • 779
2 votes
3 answers
24k views

setting textview visibility to GONE when there is no text to show

i have a listview in which i have 2 textviews, one of these textview contains zero text by default, but can be changed by the user. the problem is that i need to do so when the textview is empty the ...
Emil's user avatar
  • 93
2 votes
2 answers
2k views

Android listview imageview in listitem gets hidden on scroll

I am having this weird problem when trying to dynamically set visibility and image drawable of imageview in list item. When it initially loads its shows up completely fine but when I scroll it up or ...
Parashar's user avatar

15 30 50 per page
1
2 3 4 5 6