listview

Listview Control problem

I have a Listview control "lstStudents" and i have added checkboxes inside the List viewControl.I need to add a Select All check box which results in checking all the checkboxes inside the ListView i use the following code but it doesn't work. private void chkAll_CheckedChanged(object sender, EventArgs e) { foreach (Contro...

javascript onclick to select item with asp.net ListView control

I'm trying to implement a onclick event to select an item in a asp:ListViewControl. <ItemTemplate> <tr runat="server" id="MemberRow" onclick='<%#ClientScript.GetPostBackClientHyperlink(LvMembers, string.Format("Select${0}", Container.DataItemIndex)) %>'> <td> <asp:Literal runat="server" ID="LtlMember...

AsyncTask preformance issue on many AsyncTasks spawning.

Hi, I'm about to create a lazy image loader for images both from device and from the web for a ListView. I'm thinking of what to use and how, on one hand i can use a thread that pools my request (always running, and i can attach a view and an adapter and it will handle the image loading for me), cache my allready loaded images and checks...

Android ListView with delete button

I am trying to bind a list view to a List. This works ok when I create an activity that extends ListActivity and I have a text view in my layout file (i.e. the activity is binding to the default listview in the activity). However, what I would like to do is have a ListView that contains an image button (to further perform the deeltion ...

ListView selection highlights multiple items in the list when scrolling

I have a custom adapter for a list in my ListActivity in my Android app. I'm dynamically setting the background color of the current item that was clicked because I want to set the marquee of the TextView in the custom list item. This is how I'm doing this: @Override protected void onListItemClick(ListView l, View v, int position, long ...

How to make a 2-dimension image gallery with both horizontal and vertical scrolling?

Hi, I'm new to Android and I want to make an image gallery where each column is a category, and users can scroll both vertically and horizontally. I found a useful post about how to display list of images here. I'm wondering if it's possible to nest lists of image inside of a gallery view? ...

Orientation specific failure in ListView.layoutChildren -- exception ArrayIndexOutofBoundsException

Hello. I am a very green android developer and need some help with a strange program crash. Often the program will run just fine. There is an equal chance it will fail (see stack at the end). I can watch the program run through the getView function and everything seems in order (i.e. all the information is there as expected and passes...

inflating 2 different layouts at a listAdapter on Android

I have a listview and i inflate the first position with a layout and every other position i do another inflation with another layout. I can do that by checking every time in getView, but as you can imagine this is not very efficient. Can you share me your thoughts to get that result by having this pattern? (This don't get me the correc...

Android: Employing ImageButton with ListView

I’ve delved into the Android documentation that is somewhat nebulous regarding my question. Is it possible to overlay an ImageButton over a ListView employing a SimpleExpandableListAdapter? If so, pointing me in the right direction (code example or technical specs) would be most appreciative. Additional clarification: I’m designing/...

Good UI Design: How to handle empty ListView?

My app connects to the net and populates a ListView. Sometimes nothing will be returned. What is the best way to notify the user the list is empty? Some of my own suggestions: Show "No Results" in the first ListItem Show a new view that says "No Results" ...

Lazy-loading images in ListView on Android

I implemented the lazy-loading images in my ListView. I use a AsyncTask to download the image from the internet and bind it to the ImageView in the UIThread. It's working except that when I scroll the ListView vary fast, the downloaded images sometimes are binded into the wrong items in the list. I guess the problem is from the reuse o...

How to access the bound DataSource item in the ASP.NET ListView's DataBound event?

Hello everybody! I know the question has already been posted here but we didn't get to an real solution. I have bound my ListView to an SqlDataSource and I want to write some text in a control present in the view created in the LayoutTemplate depending on some properties of the rows returned. Obviously, I'm using the ItemDataBound eve...

How to access ListView subitem by Key?

I am trying to access data from list view using columnheader name but I get errors LVProduct.FocusedItem.SubItems("Name").Text So, how do you use the function with string parameters? I don't want to use index it is too confusing ...

How to show empty view when ListView is empty?

Here is my layout. For some reason the empty view (TextView in this case) always appears, even when the List is not empty. I thought the ListView would automatically detect when to show the empty view. How can I hook up the empty view properly? <RelativeLayout android:id="@+id/LinearLayoutAR" android:layout_height="fill_pa...

WPF - Build a string of pressed keys using KeyDown in ListView

I have a listview with a dozen of rows binded to xml. I'd like to have a possibility to locate and position the cursor to a certain record. For example: I have a with these ID, Name, Value: 1, Johny, Cash, USA 2, Jean-Michel, Jarre, France 3, Jeanette, , USA When I would type "Je", the SelectedRow would be positioned to ID 2. When I w...

How to make state-based model change in QML

Hi, I'm trying to make a QML-based dictionary application. It fetches the word definition via an XML RESTful API and displays them in a ListView. I have it working in this rudimentary mode. But now I'm trying to implement two states for the ListView: standard view with the definitions and a "did you mean" type suggestions list for when t...

Numbering items in a paginated ListView

I'm having a hard time coming up with a good way to number the items in my paginated ListView. The solution I was using prior to adding pagination worked fine, but now the numbering doesn't persist between pages. If the first page is 1-10, the next page will also be 1-10 and so on. Obviously, it should be 1-10, 11-21, etc. Is there an e...

How to change size of ListView rows

I have 2 ways of displaying ListView data. I have a class for each type of row. I do not create the rows in an xml layout. (Each row is derived from View and does custom drawing). When I switch from 1 type of row to another how do I get the ListView to layout properly with the correct row heights, and refresh? Is View.forceLayout() ...

How can I change the CommonsWare cwac thumbnailAdapter to cache to the SD Card?

I am using Mark Murphy's ThumbnailAdapter in a project to cache and display images from the web in a list view. It works well, except that it caches to internal memory. I can't figure out how to modify it to cache to external memory. Any advice? cwac-thumbnail: http://github.com/commonsguy/cwac-thumbnail ...

how to display a list in android

I have a String countries[]. now when i click a button then on the onClick event this abc array is filled.suppose it is filled with the name of 10 countries.These 10 countries should be visible as a list so that i can choose any 1 country among the list. but i am not able to show them as a list. My programme crashes if i use the follow...