listview

How to display every other string within View getView()?

I've made a customAdapter that accepts an ArrayList. The ArrayList contains a title and then a link. For example: [Title1, http://mylink1.com/, Title2, -http://mylink2.com/-, Title3, -http://mylink3.com/- ...] ** I've put hypens there because of the "Stackoverflow" Spam filter. I'm wanting to display the title and then have the on c...

Why is this gap showing up in my ListView?

I have a C# WinForm application where I am using a ListView to show what files have been uploaded to my database. I use the same code each time, calling LoadFileAttachments() when the form loads, and again any time I refresh the list, or add or remove additional attachments from the database. (This part works great) Where I am having an...

Making a view in a listview invisible android

I have a listview that's using a custom adapter. I want to dynamically show/remove items from the listview. I've tried everything inside the getView() method in my view adapter. I've tried doing setVisiblity(View.GONE) on the view I'm returning. And it infact doesn't draw the view, but it allocates space for the view and it's just a blan...

Is it possible to nest a listview inside another one?

Using a C# 3.5 Winforms - Is it possible to nest one listview inside another? The idea is to a list of lists - The higher level list would be groupings and the lower level list would be the details. UPDATE: Nesting does not appear to be possible. However using a FlowLayoutPanel I can add many listview controls into it and the panel...

Problem Moving an Image directory

I have a small application that saves images from a digital camera into disk. I generate a small bitmap preview of each folder and that is blocking me from moving the images. I tried to clear the controls containing the open images: imageList2.Dispose(); listView1.Items.Clear(); listView1.Clear(); listView1.Dispose(); nodeDirInfo.Mov...

ListActivity with Cursor

Does anyone know of a simple example that uses the CursorAdapter? Here's what I'm doing now and it's crashing with a RuntimeException. I'm sure it something simple I'm missing given that I'm a newbie and can't find any simple examples of a ListView that uses a Cursor. Thanks, ... public final class MyListActivity extends ListAct...

WPF ListView column selection

I have a ListView. When I select a row I want that only one cell was selected not the whole row. How can I get this? Here is my styles and templates. <ListView x:Name="List" ItemsSource="{Binding }" ItemContainerStyle="{DynamicResource ListItemStyle}"> <ListView.View> ...

Android relative layout placement problems

I have been having problems creating a relative layout in XML for a list item to be used for a series of items in a ListView. I have tried for hours and am tearing my hair out trying to get it to look how I want but cannot get everything to appear in the correct spot and not overlap or mis-align. I can get the first image and next two te...

android listview empty message with header

Is there any way to display the empty message and the listview header at the same time? It seems that when i set the empty view and the list is empty, the header will not be displayed. thx Ben ...

Is it possible to align the BackgroundImage of a ListView?

I am assigning an image (star icon) as a background image to my listview in a C# winforms application. listview1.BackgroundImage = Image.FromFile("star.png"); Is it possible to align the image so that it appears somewhere other than the top left-hand corner? ...

In Android, displaying ProgressBar in a ListView

Hi, I'd be very thankful if someone would give me a hint on how to display a static ProgressBar (or any widget that displays a percentage in a bar format) within a ListView in an Android app. Here's my code: startManagingCursor(c); String[] from = { "category", "amountPercentage" }; int[] to = { R.id.second_line, R.id.third_line_bar };...

Android GalleryView that contains scrollable views, e.g. ListView

Hi, I managed to implement a GalleryView, create a custom Adapter that returns a ListView for each item of the gallery but now the the problem: I while I can scroll the listview vertially, I can no longer scroll the GalleryView horizontally. What I am aiming at is a UI similar to the Google Weather/News application. While you can cl...

Why won't my listview display?

I am trying to show a list of files using an ArrayAdapter into a ListView. As best as I can tell, the following should work but it is just leaving the ListView empty. I am not using a ListActivity. Java setContentView(R.layout.files); findViewById(R.id.folder_use).setOnClickListener(this); ListView view = (ListView)findViewById(R.id.fi...

How can I define a GridView for a WPF ListView so that the ListView items are distributed over more than one column?

I have a data-bound ListView in WPF with the ListView items being rendered as RadioButtons. I want to use a GridView to display these in a grid. I can find numerous examples for using a GridView where the data is to be displayed in columns (with different item properties in each column) but I want an entire child item in each cell not ...

.NET Listview Refresh

I have the following code, which basically takes values from a database and populates a listview. using (IDataReader reader = cmd.ExecuteReader()) { lvwMyList.Items.Clear(); while (reader.Read()) { ListViewItem lvi = lvwMyList.Items.Add(reader["Value1"].ToString()); lvi.SubItems.Add(reader...

Change a specific row in a ArrayAdapter ListView Android

Hi. I am trying to change the color on a specific row depending on different states. This is the code i have at the moment. public View getView(int position, View convertView, ViewGroup parent) { View row=convertView; if (row==null) { LayoutInflater inflater=getLayou...

Finding ListView item from row index in Javascript

If I know the DisplayIndex of the ListView item I want to find, how can I find it in javascript? As a reference, here is how I can do it if I know the index of the item in a GridView: // get the gridview element var gridView = $get('<%= this.GridView1.ClientID %>'); //Get the selected row var curSelRow = gridView.rows[parseInt(rowIdx)...

How to Refresh a ListItem in WPF ListView ,CollectionViewSource in MVVM

I have an ObservableCollection assigned to People and have a PersonViewModel and a PeopleViewModel _people= GetAll().ToList(); List<Person> allPeople = (from person in _people select new PersonViewModel(person)).ToList(); AllPeople = new ObservableCollection<WorkOrderListItemViewModel>(allOrders); AllPeopleCo...

How to make filtered ListView to reflect changes of item field which is used in filter criteria?

I am trying to make a ListView filtered, and I found it easy to achieve it. Both of those 2 methods do it perfectly: private void ToggleHiddenReleases(bool show) { ListCollectionView view; view = (ListCollectionView)CollectionViewSource.GetDefaultView(ListBoxAll.ItemsSource); if (!show) view.Filter = (mr => !((ModelRelease)m...

Android Clickable ListView - creating a dynamic MultiRow ListView

Following the snippet link text on androidsnippets.org, Creating a Multi-Row/Multi-Column ListView is pretty straight forward. The question is, how do you create a Multi-Row ListView, with different Views/Items for each row, based on the ArrayAdapter/Data populating the List? ...