listview

How to change colors for ListView, alternating row color?

I have a couple of list views, one uses TextViews laid out with xml, the other uses a custom class derived from View. The default halloween color scheme is pretty ugly. How can I change the background and selection colors for the list elements. Ideally, I'd like to be able to do this in code not xml, to handle the custom view. Thanks...

Android ListView with SQLite

Hi I'd like to refresh the Listview items. These items are populated from SQLite database. My code is below public class Weeve extends Activity { private String[] lv_arr; protected ListView CView; private DBAdapter mDbHelper; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mDbH...

C# - Kinetic scrolling with ListBox or ListView?

I am doing a simple application for touch screen devices, and I would like to implement today's fashion: kinetic scrolling. Is it possible to do, and if yes, how? PS: Kinetic scrolling: A scrolling mechanism where you don't use a scrollbar to scroll the content, but you touch the list itself, and pull and push it. The "physics engine" t...

Android listing design problem with cursors

Hi. I have a following situation in my android app. I have an app that fetches messages from inbox, sent items and drafts based on search keywords. I use to accomplish this by fetching cursors for each manually based on selection by user and then populating them in a custom data holder object. Filter those results based on given keywo...

[C#] how to get ICONs of files and folders to insert to treeView and listView like windows explorer ?

i use a treeView and a listView to display file and folders like Windows Explorer. Can anyone help me, how to get ICONs of files and folders to insert them before folders name or files name in treeView and listView? Thanks in advance! ...

c# ListView focus on second column

I have a ListView with several columns, let's say column A,B,C,D in that order, sorted by column A. In long lists I could press a letter on my keyboard and scroll down to the first item in column A that begins with the letter pressed. A new column has been inserted at the beginning, yet I still want to be able to press a letter on my...

pass parameters to listview controls

I have file uploader inside UpdateItemTemplate of ListView and there's a TextBox1 control, I want to update its Text property with the address of uploaded image. So I've got the problem with assigning data to TextBox1.Text. I tried to assign image_address.Text property through some other control (e.g Label4.Text in my code) which is outs...

Custom filtering in Android using ArrayAdapter

I'm trying to filter my ListView which is populated with this ArrayAdapter: package me.alxandr.android.mymir.adapters; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.Set; import me.alxandr.android.mymir.R; import me.alxandr.an...

How to delete a Item in a ASP.NET listview and persist the datasource?

I have a collection of objects I bind to a Listview like this: if (!IsPostBack) { List<Equipment> persons = new List<Equipment> {new Equipment{ItemName = "Sworn", ItemCount = 7, ItemCost = 255}, new Equipment{ItemName = "Civ", ItemCount = 3, ItemCost = 80}...

Custom color for the section box displayed on a ListView with fast scrolling enabled in Android

I have an adapter that implements the SectionIndexer interface in order to display the box that indicate the letter of the section when the user scroll my listview (like when you scroll a contact list). It works well but i need to customize the background and the text color of this box. Any advice? ...

Overlap problem with Android ListView selector

I am trying to style my ListView with two 9-patch background images (16px * 9px), one dark image for default state and another green image for selected and pressed state. It works except for just one problem that when I select or press one list item, it seems that the selected item overlap the next one a little bit as I can see some pi...

How to add Focuschange Listner to listview in android

Hi, I am having a listview in one of my activity.How to set foucs change listner.I tried with following block of code I am not getting result. product_search_list = (ListView) findViewById(R.id.productlist); product_search_list.setOnFocusChangeListener(onproductchangelistener); private OnFocusChangeListener onproductchangelistener =...

c#Listview:How to create Columns without header

I have Listview on WinForm I need to have two columns but without headers, How do i do that? ...

[WPF]: Styling a scrollbar, but the ListView scrollbar is not affected by the style

I am styling a scrollbar in a resourceDictionary without giving it a key value: <Style TargetType="{x:Type ScrollBar}"> ... </Style> Bur for some reason only a component of the type Scrollbar are affected by the style. Not the ListView component's scrollbar! I would Think that all scrollbars would have the same style since I am...

Is there any way to sync the scrollbars in a JavaFX 1.2 ListView?

I have multiple listviews sidebyside. I have a way to make sure the "selectedIndex" is the same on all of them, but is there a way to make it so the scrollbar's are ALWAYS synchronized? It seems that the scrollbars WILL be synced as long as the user uses the ARROW KEYS when navigating down the listview, however, if the user HOLDS DOWN ...

How to set tooltip for a ListviewItem

I have ListView and few columns of fixed size the text lenghth i fill in the column may exceed the fixed length of column so when user rests the mouse on that ListviewItem, a tooltip should be shown expanding the item I tried ListViewItem iListView = new ListViewItem("add"); iListView.ToolTipText = "Add Expanded"; ...

ReorderListView in WPF

I love the controls from the Bag-Of-Tricks. I am interested in modifying the ReorderListBox control to get a ReorderListView control. However, simply changing the base class from ListBox to ListView is not working. When I try to add a ReorderListView to XAML like this: <lib:ReorderListView Grid.Row="1"> <ReorderListView.View...

setOnItemClickListener not responding for Custom ListView

hi, I wrote a custom Adapter for a listview ,but when i tried implement click event for list item ,i found that it was not responding ,I will be glad if someone suggest me a solution. public class TourList extends ListActivity { .... setContentView(R.layout.tourlist); ..... getListView().setOnItemClickListener(new OnItemClickListen...

Android RelativeLayout fill_parent unexpected behavior in a ListView with varying row heights

I'm currently working on a small update to a project and I'm having an issue with Relative_Layout and fill_parent in a list view. I'm trying to insert a divider between two sections in each row, much like the divider in the call log of the default dialer. I checked out the Android source code to see how they did it, but I encountered a p...

Getting Json data into a list view

Hi, I have been searching for a way to get the json data from a URl (for example: http://search.twitter.com/trends.json) and display it in a listview. Couldnt get a perfect example to get it done. Can anyone plz help me out by getting the solution and providing a good example of how to do it... ...