listview

Suitable background pngs for ListView items in Android

Hi, Can somebody post some suitable png files that would look good as background to ListView items? Or maybe some link for it? -Kiki ...

How am I interfering with context menu long-click handling?

My app used to use a standard ListView, and registerForContextMenu(getListView()) and everything worked just fine. I needed to change my app to accommodate nested lists so I replaced the ListView with ExpandableListView. I changed the Activity to ExpandableListActivity. I also changed my adapter to a tree adapter and implemented a custo...

Handling an embedded view inside a ListView?

I have a quite problematic UI layout to implement, and I'm not sure if it's even possible using standard UI widgets. It looks something like this: Picture 1 The green, lined thing is supposed to be a ListView, and the red rectangle is another View. This red View should be scrolled with the ListView, as if it's part of it. Some list-ele...

How to affect differences in row content when binding a dataset to a ListView in ASP.NET 3.5

I have added a ListView to a web form and this code works when the data columns in the bound dataset have values: <asp:ListView ID="picturesListView" runat="server" GroupPlaceholderID="groupsGoHere" ItemPlaceholderID="itemsGoHere" GroupItemCount="1" > <LayoutTemplate> <p id="pictureList">Picture List:</p> ...

Can I update a list view in one activity while im in another activity?

Hello. I currently have a tab layout with 2 tabs, one tab with a list view and one with the option make strings so I can add them in the list view. Both tabs have their own activity because this made the code much more structured, and I dont have to repeat my self later. Lets say im in the tab that offer me to create an string, and i p...

How to fill the screen with a List view except area for the Image View ?

I am developing an activity which has an Image View, a List View and an OK Button.As per the requirement I have the Image View on the Top Left corner of the screen, End button at the bottom of the screen. The List View will have all the description(comments) with respect to the image and should fill the rest of the screen. How to draw...

How to use a UserControl inside the EditTemplate of a ListVIew?

Here is the situation: I have a ListView showing just a list of concatenated strings obtained from different field of the objects of the datasource. A LinkButton (with CommandName="Edit") in each row Event handlers for OnItemDataBound and OnItemEditing A UserControl in EditTemplate. Now the problem is, I don't know how to use Bind e...

Add a GridView to a ListView in Android

I'm trying to create a ListView that will consist of to types of elements: Strings and a GridView. I.e. putting both Strings and a GridView inside one single ListView. The layout should look something like this: String Item 1.1 String Item 1.2 String Item 1.3 String Item 1.4 GridView Item 1 GridView Item 2 GridView Item 3 Gr...

jQuery selector and DataPager cannot coexist! (ASP .NET)

I am using a ASP .NET ListView with a MS SQL Database. I use the ListView to show the information and in the list view, there is an hyperlink which opens the editing window for the specific record in a jQuery Modal Dialog Box. <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1"> <LayoutTemplate> <div id=...

ListView separators using a CursorAdapter

I have a ListView which is populated using a CursorAdapter. I'd also like to have some separators in my ListView. I have accomplished this with an ArrayAdapter, but I'm not sure how to accomplish this with a CursorAdapter. Are there any strategies for doing so? Or am I out of luck? ...

Don't add items if it doesn't match the filter

Hello! This is my code: private class NameFilter extends Filter { @Override protected FilterResults performFiltering(CharSequence constraint) { constraint = constraint.toString().toLowerCase(); FilterResults result = new FilterResults(); if(constraint != null && constrain...

how to refresh a dynamic listview in ActivityInstrumentationTestCase2

I am testing an android activity that has a listview that dynamically changes. The problem is that the listview in my test app does not update when the one in the application changes. I've tried the various refresh methods but no lock. I need to verify the contents of the list as it changes ...

How can I set a ListView's selected item based on it's ID in a query string on page load?

Question basically crams it all in... I'm loading a page with a querystring (ID), and I need to use that ID to set the selected item of a ListView when the page loads. The ID is a DataKey on the ListView. Please help! I have no code of value to post--none of my attempts at this work. ...

Android - How can I make a horizontally-scrolling ListView?

Like many things in Android, you wouldn't think this would be such a hard problem but ohhh, by golly, would you be wrong. And, like many things in Android, the API doesn't even provide a reasonably extensible starting point. I'll be damned if I'm going to roll my own ListView, when all I want is to take the thing and turn it on its sid...

WPF ListView SelectedValue not being set

I've looked at a few solutions but nothing has worked yet for me. I'm using MVVM for this project and have a ListView that I can't set the SelectedItem property. If this is my (simplified) XAML. <ListView Name="uxPackageGroups" ItemsSource="{Binding Path=PackageGroups, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" BorderThicknes...

Error with custom rendering my list view..please help !

Hi, I am trying to render my listview containing names of doctors and few more details using a tablelayout component showing 4 textviews in each listview item. But I get an error while I am doing this..PLEASE HELP! I have a project deadline tomorrow. When I debug by code, the control goes till IconicAdapter() constructer, from there it ...

QML ListView multiselection

Hi folks! How can I select a few elements in the QML ListView and send its indices to C++ code? ...

SelectMethod in objectDatasource getting called multiple times with multiple datapagerfield

Hi all, Ok, so here is the setup. I am building a page that has a listview, a datapager, and 3 datapagerfield (2 x NextPreviousPagerField, 1 x NumericPagerField), and a objectdatasource to tide all of this together. It was all working fine until I put a breakpoint into the SelectMethod specified in the objectdatsource control. It see...

Add controls to empty cells in a Grid that's the ItemsPanelTemplate for a ListView

I have a WPF ListView, which has a Grid as an ItemsPanelTemplate. I display my items in the correct column and row based on a property of the item. But I would like to put some controls in the empty cells of my grid. This is a simplified version of my code and xaml: In the resources: <ItemsPanelTemplate x:Key="TheTemplate"> <Grid>...

From within android InstrumentationTestCase: Scrolling a listview to the next screen

I am writing my android JUnit tests in InstrumentationTestCase class. I need to scroll a list view to the next screen for several verifications. One of the scenarios where I need to scrool is given below. Say there are 25 entries and each screen can fit 10 entries. I need to iterate through the list and click the info button associated...