listview

How do I attach an id to a ListViewItem?

In my latest project, I have a ListView that is bound to an ObservableCollection. This ObservableCollection contains a number of objects of my class SongData: public class SongData { public int Id { get; set; } public string Title { get; set; } public string Artist { get; set; } } These objects are filled with data derived...

Listview with headers. SeparatedListAdapter using database data crash.

I am trying to create a listview with headers based on a number of predefined categories. I am using Jess Sharkey's separating lists with headers as a basis. The classes and xml are identical except for SimpleAdapter. The difference is my data is coming from a local sqlite database. The code crashes when I switch out of the view. Any ide...

ListsView Binding with auto update.

Heya Guys. I have a application im working on that uses the Jabber Libraries to connect to a jabber Server and receive contacts etc. I have buit all login system and interface for the chat but now im working on how to Bind the data for the contacts to the ListView I have a function that is called when a contact comes online such, See ...

android expandable list selector

How do you set the listSelector for an expandable list? I have set: listSelector="@android:drawable/list_selector_background" but this only seems to affect the group section rows, not the child rows underneath those. ...

ListView displays data in debug build but not release build

I have a project on a Windows 7 machine in Visual Studio 2010 that contains a WPF ListView using a DataTemplate and it is showing strange behavior. I can run the project in Debug or build a Debug executable and launch it outside VS and the ListView will be populated with data. If I build in release mode the data is returned but does not ...

How to change an item in a databound ListView from another class?

I have a ListView set up to view a number of records from a database, and therefore it is bound to an ObservableCollection of SongData: public class SongData { Id { get; set; } Title { get; set; } Artist { get; set; } } Now, I have an EventHandler set up with an EventSetter in order to display a new Window with some sort o...

Android how to make View highlight when clicked?

I have a linear layout in which each row is inflated programatically and I want the rows to behave like the ListView when clicked on. That is, I want the row to highlight in the exact same way/colour that the default ListView does. How would I go about doing this? ...

Android changing tableLayout from code doesn't work

I got a strange problem with replacing a table row from code. My XML code looks like this: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TableLayout xmlns:android="http://schemas.androi...

How can I sort rows across two ListView controls in VB6?

I have two ListViews side by side in a VB6 project both holding data from the same source. I have each ListView sorting it's own values when the column headers are clicked, but how can I make it sort the data from both ListViews and move rows between the two listviews as needed? ...

How to share menu-items between the listview and its items?

Hi everyone, I have a listview and want to have 2 context menus for it: 1) when right-click on an item (called Menu 1) and 2) when right-click on elsewhere spaces except the items (called Menu 2). There are sub set of menu-items shared between the two - let's call this CommonMenu. My test application is store here. My problem is: when t...

Adapter & Theme.Dialog & refreshing content [SOLVED]

Hi guys, Theres Activity A with a ListView using SimpleCursorAdapter and for each row, theres a ImageView that should be displayed, according to a column result number in SQLite. Then theres Activity B which is a Activity with the Theme.Dialog. When i open up the Activity B (via startActivityForResult) i have some items, selecting one i...

Is there a wxpython list widget that displays alternating row colours even when the list is empty?

Is there a wxpython list widget that displays alternating row colours even when empty the list is empty? or Is there even one that will display a background colour(other than white) when it is empty? ...

WPF listview drag without deselect

I have a listview object containing files in the program. The default listview behavior allows me to do all the select operations on the list (click+shift to select a block, click+ctrl for individually selecting members of a group of items, and click to select a single item). I want to begin dragging these items with a click and hold o...

Trying to get value out of text view in list view click event in android

I have a click event hooked up to my listview as shown. int[] GenusListIDs = { R.id.txt_ID, R.id.txt_Genus, R.id.txt_Count }; SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.genusitem, cursor_genuslist, service.GenusListColumns, GenusListIDs); ListView list_Genus = (ListView)findViewById(R.id.list_G...

android listview nullpointer.exception

Hi guys, Im trying to display this listview, but I keep getting a: 07-17 21:14:22.233: ERROR/AndroidRuntime(349): java.lang.NullPointerException I think I know what the problem is but I dont know how to fix it. I have a String array which I will be using to be displayed in my list parser topicparser = new parser(); final Strin...

How can I retrieve a imageview in a ListView that is not being selected?

I set my listview as follows and can change the icon that I am clicking to pause. However I cannot figure how to select an icon to change back to play that was clicked earlier. public View getView(int position, View convertView, ViewGroup parent) { final int posi = position; View row=convertView; if (row==null) ...

When pressing Back the previous Listview has gone is empty

At first, I have a listview in layout1 to list the members' name which stored in a sqlite file. When I click one of the names, it goes to layout2 to show the detil imformation. But when I click a button I designed to back to layout1, layout1 will be empty and dark. Listview has gone. How can I keep the layout1 alive ?? ...

What is the recommended UI design for removing items from a list.

This may sound a little strange, but I'm making a game for the Android phone, but I don't own one myself. I'm in a bit of a loss in designing my UI and need some suggestions from Anroid phone owners. The general idea is to have a screen where a user can start a board from the beginning or load a previous save game. I'm trying to minimi...

Android Camera, internal Listoption?

Hey guys! When you are taking a picture on an and device, you can send it. There are apps, which are pushing their actions into these send-list (Like Twidroid, which adds a listitem called "Send Tweet" in that menu). So, how is it possible to add such a menu point into that menu? For my app, I want to make it possible to take pictures f...

Android - Switching between Multiple Views in a ViewFlipper

I have an application using ListView inside Tabs, and i'd like to switch to a separate View(data collection widget) on clicking an item in the List. I'm adding each List's row's children to a ViewFlipper and the items are added at runtime so there is no definite number of views. As such, i would want to navigate/switch to a particular Vi...