listview

How do I set a background image for each item of ListView in Android?

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="?android:attr/listPreferredItemHeight" android:padding="6dip"> <ImageView android:id="@+id/icon" android:layout_width="wrap_content" ...

Complex ListView example with complex data and complex layout of each row?

Im pulling a list of product objects from a database call and I want to build a ListView of the data in my activity with a non-scrolling header and footer. Each row will consist of a product thumbnail, some data and a button arranged horizontally. I understand that using the ListView I can inflate each row using a separate layout. Most ...

Making a list view like the favorite tab on native dialer in android

Hello all, I am making an android application that shows a list with users, I would like to add the image,name,status,and a button in every row of the list, just like in the androids 1.6 native caller-> favorites tab.Until know I have managed to add the image and name using an ListActivity but when I try to add the button the list become...

Any advice on how to speed up this in Android?

In one Activity, I am doing this: Every minute, I update the GPS location to the cloud. Then, after the location is updated, I download a list of 10 people and their icons...and update them in the list. (each icon is 80x80 and about 2Kb) This is done every minute, over and over. My problem is: It seems to be a little slow? Sometime...

WPF ListView Selecting Multiple List View Items

Hi, I am figuring out a way to Select Multiple items in list view and deleting them on a certain action. What i can't figure out is, how should I have these multiple items selected? I would think there is a list that i would need to add them all into, but what's the best way to approach this situation, do you have any ideas? Thanks! -Ke...

Add table column names automatically in an ASP ListView?

I have an ASP ListView which I am using to display some pivoted information (across years) in a table. Currently I have the ListView templates defined as: <LayoutTemplate> <table id="listViewTable" class="tableData"> <tr class="rowHeader"> <td style="text-align: left;">Rank / Equivalent Rank</td> <td>2004</td> ...

C# ListView item selection problem after deleting an item.

Using Visual Studio 2008, .Net 3.5 I have a ListView loaded with a bunch of items. I have a right-click popup for removing an item. After removal of an item, I redraw the list view by re-accessing my primary data, and reset the selected item. However, the selected item does not show as selected. An idea of the code: public ListView m_...

C# ListView column names corrupted after vertical and horizontal scroll.

Visual Studio 2008, .Net 3.5 I am populating a ListView with 100+ items, about 10 columns each. I find that after some horizontal and vertical scrolling my column headers get corrupted with snippets of data from the items. For example, a ListView with a column "Animals" with items that have "Dog", "Cat", "Pig", "Horse" in that column, ...

Problem with selection rectange

Hi.. i m trying to make Customized listview in QT for symbian OS. i am facing some problem, i am able to draw everything like icon,text etc.. where ever i wish but the problem is, it is not getting selected by default.. i hope u got it. to do selection i need to draw the rectangle manually.. it could be a problem if them get changed o...

Can I display links in a ListView's detail mode?

I'm displaying a set of search results in a ListView. The first column holds the search term, and the second shows the number of matches. There are tens of thousands of rows, so the ListView is in virtual mode. I'd like to change this so that the second column shows the matches as hyperlinks, in the same way as a LinkLabel shows links...

How can I allow a user to re-sort items in a list?

I have an Android app where users can add items to a list, and I'd like them to be able to re-order the items in the list however they want (as opposed to just offering them different sort orders). It's easy enough to add a position setting for the items (they come from the DB) but what kind of UI elements are available for the user to i...

ASP.net Treeview/Listview combination or alternative: Tutorials? Help?

I need to create an ASP.net page that has a control on the page that has a five-level TreeView on the left side of the page, and accounting balances on the right side the coincide with each breakdown in the tree. Top level is company, next is group, next is program, etc... and the balances break down accordingly. I've seen that there ar...

WPF ListView setting SelectedItem

I've tried to search for an answer to this but I'm not having any luck. Basically I have a listview that is bound to a collection returned from a view model. I bind the selected item of the list view to a property in my listview in order to perform validation to ensure that an item is selected. The problem is that sometimes I want to ...

How to control the scroll position of a ListBox in a MVVM WPF app.

I have got a big ListBox with vertical scrolling enabled, my MVVM has New and Edit ICommands. I am adding new item to the end of the collection but I want the scrollbar also to auto position to the End when I call my MVVM-AddCommand. I am also making an item editable(By calling EditCommand with a particular row item) from some other part...

Improve ListView efficiency when loading images from SD into the ListView

I am using a custom adapter for my ListView as per the efficient adapter sample by Romain Guy. In the getView() method of my adapter I am assigning an ImageView a jpg image stored on SD using the following code : File f=new File(MovieThumbs.get(position)); if(f.length() > 0) { holder.thumb.setImageBitmap(BitmapFactory.decodeFile(M...

[C#] Read XML and add it to a listView with multi columns

hi all, how can i add subItems into my listView with 3 columns? it only adds items to the first column //Read XML private void button3_Click(object sender, EventArgs e) { System.Xml.XmlDocument loadDoc = new System.Xml.XmlDocument(); loadDoc.Load(Application.StartupPath + "\\Computers.xml"); foreach ...

Show listView.Items in a ComboBox

hi all, how can show the listView.Items on Form2 in a ComboBox on Form1 and i want to use all data (subitems) from the selected Item how can i do that? please make it easy to understand :) thank you in advance ...

How to make a ListView public in .NET winforms?

hi all, how can I make a ListView public? so I can access it from my first form thank you in advance best regards ...

Delphi 7: Select certain items of a TList

In Delphi I have an own class which is based on TList. It is TPetList. Every instance of TPetList can have some items of the class TPet. The instance of TPetList is displayed in a TListView component using a for loop. TPet is based on TObject and has the following fields: city age breed Now I have a list of checkboxes where the user...

A problem in c# using Threads and ListView.

I have a text filter where in the TextChanged event I launch a listview populate code this way: ThreadPool.QueueUserWorkItem(new WaitCallback(populate)); Then in the populate method I have code like this listView1.BeginUpdate(); listView1.Clear(); // rest of the code listView1.EndUpdate(); but the listView1.BeginUpdate() call giv...