listview

How to get subtext in ListView in Android

Which property sets the subtext as highlighted here in a ListView. ...

Custom Listview Adapter, adding a static footer, and understanding R.id.list

There is something I'm just not getting, and I'm looking for assistance in understanding what is happening here. I have a custom list adapter (that just extends BaseAdapter) that I have successfully been using to generate and display a list. Now I want to add a static footer to the bottom of my list. After looking at a number of resourc...

Android: Draw custom border around listview?

Hi, I've got a ListActivity with a ListView in it. I need to draw a repeating image around the border ("on top of it (I guess after the listview is renderered)) How can I hook in my own drawing code for this? ...

Use AsyncTask to add items to list view individually.

I am trying to add ListView items one by one. So if I have say -- 60 items -- the application would add the views to the list view one at a time -- thus showing the user that the application is loading more things. This is my code: try { JSONArray j = getTaggsJSON(); Log.v(TAG, String.valueOf(j.length())); a =...

Please let me know its an functionality behaviour or not

Hi all, I am having an listview filled with the items, by default the 0th item will be selected. If I try to navigate the list using mobile keypad its not gaining focus, instead i need to use my mobile select key for focus. In this process my mobile left soft key gets change do “Done” I don’t know why this “Done” menu is appearing in my...

How to remove icon space after null SmallImageList property of ListView

The problem is, once the SmallImageList is set to imgList1, it never "releases" the icon spacing, even when the SmallImageList is set to null. The item is always indented the same whether there is an icon or not. any solution? ...

IronPython - Adding items very fast to a GUI ListView object

Hello, I'm using IronPython 2.6, Sharpdevelop 3.2 for GUI building and compiling, Pydev on Eclipse for writing the code and debugging. I recently had some trouble using IronPython and ListView objects. In my usecase I wanted to add ListViewItems i created in a thread very fast to an GUI ListView object. First problem I ran into was ...

How to make a listview in excel selectable but not editable in office 2007

I have a userform that allows the user to select customers from a combobox; when a customer is selected, the customer's offices (office name, city, state, address) populate a listview in Report mode. I would like the user to then be able to select (click on) a row in the listview, which triggers code that populates the office-related co...

android access listview row from another row

Suppose I have a listview with 3 rows. If the user clicks a button in row 1, it expands a menu (it's just a linear layout that's shown/hidden). If they then click on an item in row 2, I'd like to be able to collapse the menu in row 1. Is this possible? If so, how? ...

Refreshing a listview

I have a listview that's populated by rows that get their data from a web server. It all works totally fine except I want to have a refresh button to re-download the data. I'm getting the data through an asynctask (getting the data in doinbackground) and then setting the listadapter in onpostexecute. All I do to run the asynctask which s...

Android ListView that does not scroll?

I'm trying to make a layout that is something similar to how the android market is...where say under comments there is what appears to be a ListView but it does not scroll (the whole page scroll but not the comments). I'm not sure if its even a ListView but I want something that looks like the list view (ie. have those divider bars and w...

How to programatically add a binding converter to a WPF ListView?

Hi, I am having a lot of trouble finding a good example of how to programatically create, fill and style a ListView. Every example I find tends to use a lot of XAML markup and a minimum amount of C# to switch which bit of markup is being run. This is impossible for me as I do not know the composition of the columns, nor the intended sty...

List-view groups with Qt?

Hello, We have ListView.Groups in .NET. Is there an equivalent in Qt (without using Windows APIs)? I am unable to find anything that indicates support for this in the documentation for Qt. Example in Windows Vista/7: http://i50.tinypic.com/zumgyg.jpg Thanks in advance! ...

ItemDataBound 'e.item.dataitem("key")' with ListView Control

With the ASP.NET Repeater control, I am used to being able to access my data item values in the ItemDataBound Event Handler by doing: e.item.dataitem("column_name") However, it seems with the ListView control this is not possible. How can I access the data item values? ...

Adding a viewGroup to a ListView?

Hi everyone. Doing some R&D for my company. We are trying to have a listView that contains an imageview, and two edit boxes for each entry in the listview. <?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="wrap...

C# ListView First Column Too Large

I have this: lvPalette.Columns.Add("Code", -2, HorizontalAlignment.Center); lvPalette.Columns.Add("Attendu", -2, HorizontalAlignment.Center); lvPalette.Columns.Add("Chargé", -2, HorizontalAlignment.Center); lvPalette.Columns.Add("Validé", -2, HorizontalAlignment.Center); lvPalette.Columns.Add("Description", -2, HorizontalAlignment.Cente...

How to implement custom view with variable fields?

I have a ListView that displays a set of notes, each with varying ammounts of data (i.e. some have a due date, others don't). Currently, each view in the list is a RelativeLayout containing a TextView for each field, plus two Button and a CheckBox. I then simply hide the unused fields by setting visible false on each one. This has wor...

Programatically selecting items in a WPF ListView

How can I set the selected items in a WPF ListView programatically? Basically, I have a List<SomeEntity> and a ListView that is bound to another List<SomeEntity>. I need to mark the items that exist on the first list as selected. ...

Update asp.net listview with LINQ, programmatically

I'm trying to find a good code sample to update a database entry in my listview control. I suppose I would need to extract the ID from somewhere (some label control?). I am using LINQtoSQL to talk with the database. protected void lvTargets_ItemUpdating(object sender, ListViewUpdateEventArgs e) { InventoryDataContext...

Applying TextDecoration to an WPF ListViewItem

I can see how to apply a text decoration to a GridViewColumn. <GridViewColumn Header="Tool" > <GridViewColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding Path=Entity.ToolId}" TextDecorations="{Binding Path=TextDecoration}" /> </DataTemplate> </GridViewColumn.CellTemplate> </GridViewColumn> But if ...