listview

Android adding footer to ListView addFooterView() ?

I have a ListView activity that needs a footer to the list of items so that you can click it and it would load more items into the list. The list is backed my an SimpleAdapter backed by a map of strings and before the adapter is set i do this inorder to add the footer: mInflater.inflate(R.layout.list_load_more_row, null); TextView foot...

How to set group headers in listview not selectable (c#)?

Hi i need some help for my listview element, I want to use listview with groups. But i want to make the group headers not selectable, i want to use them as seperator? How can i do this? ty ...

Listview ItemSelectionChanged fires twice?

I have a Winforms App in C# with a ListView control. This ListView shows a list of TO-DO items and I am using the 'ItemSelectionChanged' event to handle updates. The problem is that the 'ItemSelectionChanged' event fires twice each time I try to make an update. The ItemSelectionChanged event refreshs the form to represent the update...

Binding a List<string> to a Listview in asp.net 3.5

How do I bind a List to a in ASP.NET 3.5 <asp:ListView ID="lvDiagnosisCodes" runat="server"> <LayoutTemplate> <ul> <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder> </ul> </LayoutTemplate> <ItemTemplate> <li> ...

Prevent ListView from reordering items

I have a ListView that is backed by a CursorAdapter. The cursor passed into the adapter is a MergeCursor. It is a MergeCursor because I have two tables, type1 and type2. I want to list all of the elements from type1 and type2 in a single ListView with all of the elements from type1 first, and all of the elements from type2 last. In a...

Getting the ListView ItemCheck to stop!

Following some SO advice I have tried the following on the ItemCheck event of a ListView control: private void lstTasks_ItemCheck(object sender, ItemCheckEventArgs e) { ...some code return; } The idea being that that return; will cancel the event ...but does running some code before the blank return; negate the de...

item of listView obtain focus and click events

hello,i have a lisyView,every item(every row ) have a imageView and a textView,when i scroll the listView,the whole item gets the focus,but for every item , frist i want to imageView gets focus,then textViews get focus,so that i can handle the click events of imageView,so my questtion is how to get the focus of imageView . ...

How to draw horizontal line in ListView?

Is there any better way to draw a black horizontal line than defining layout with fixed height and black background? ...

Android: ListView using two cursoradapters?

I have some code which executes two queries against a database and returns two cursor objects. Is there any way that I can combine these two cursors so that all the ListView gets the data from both? ...

Android Context menu from listsview

I am new to android development, and not very good at programming in general but, I am working on a tab layout that has a listview per tab. Each tab has it's own java file. I am currently trying to add a context menu that when clicked (not long clicked) on an item in my listview, will bring up a menu so I can choose an option. Right no...

Information disappears on button click.

I have a ListView that has a FileUpload control and a button in each ListViewItem. I have an OnClick event on my button where i try and pull information from the FileUpload control, but when I try to access the control all of the values that were set are gone (FileName etc). What do I need to do differently here to access the informat...

Horizontal ListView in Android?

Hi Folks, Is there any Possible to make the ListView horizontally? I done this Using Gallery view. But the Selected item comes to the center of the Screen Automatically. I want to avoid it. the selected item at the same spot i have clicked. How to Rectify this Problem? My Idea is to set the ListView with Horizontal Scroll. Share Your Id...

android zoomable listview

is there any way to make a listview zoomable? or at least make the content able to be zoomed in on? ...

Where should data changing event in listview be handled?

I have a ListView that is filled from my adapter with my custom views. Each view has two buttons, one that starts another activity to edit the contents of that list item and one to delete that item. My question is where should my ClickEvent handlers for those buttons be? Should I put them right in my custom view code since I have all ...

How can I set the XAML for the first WPF RadioButton in a ListView control to be checked by default?

I have a WPF ListView control containing a number of RadioButton controls using data binding. I'd like the first RadioButton in the group to be checked by default, preferably set in the XAML rather than programmatically, but haven't managed to achieve this. My XAML for the control is: <ListView ItemsSource="{Binding OptionsSor...

Android - create Layout like the iphone weather app

Hi I am trying to do a layout similar to the one used in iphone for the weather app: http://www.spirituality.org.za/uploaded_images/MTN-South-Africa-iPhone-Weather-app-719447.jpg This layout scrolls left/right very smoothly, and only loads the weather as you scroll. HorizontalScrollView cant be used because it loads everything in memo...

Disallow ListView to have zero selected items

My project is .NET/WinForms. I have a list view which is always filled with items. I would like it to have selection always. However, if I click on an empty area below list view items, it looses selection. The list has multiple selection = true and hide selection = false. ...

Android unsorted List

I have created a listActivity with my own ListAdapter. The problem is that the list is viewed in order once launched. But When I scroll down, or go back from another activity, the listView is completely out of order. I thought the problem was in ArrayList but no, the list is sorted and i'm sure of it because when I loop over all element...

Styling added rows to ArrayAdapter ListView Android

Hello, I have a ListView that I want to use with an ArrayAdapter to add different styled rows. The rows are created on different states in my application, and depending on the different states the rows should be styled(like colors and stuff). Here is some pseudo-code: on creation: mArrayAdapter = new ArrayAdapter(this, R.layout.messa...

Android TabHost containing ListView with ViewFlipper

Hi, I'm currently writing an application which builds the UI dynamially from the server;i.e a template file is loaded and from it Tabs containing ListViews are created. When a user selects an item in the list, another view is to be shown, with the possibility of a back button. It makes good sense to use the ViewFlipper I'm guessing. The ...