listview

findviewbyid() returns null - in a custom CursorAdapter bindview()

package edu.ohio.android.bmm.activity; import android.content.Context; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CursorAdapter; import a...

C# - Center form based on listview coordinates?

I have a form that contains two listview controls. When I click on each listview another smaller form will appear. How do I get the smaller form to center on the calling listview control? I think it has something to with the SetBounds but I am not sure. ...

ListView to ListView binding with converter on items

I have two listview's, one of which accepts Drag/Drops of files, to list the file names. What I want to do is to have the second listview create a custom object, based on the filename of the item in the first list view. I have the second list views ItemSource bound to the first, and whenever I drag a file into the first, it will show in...

Android: Changing background color and/or text size in realtime.

Hey Everyone, I have several ListActivties set up in my Android Application. What I am trying to do is set it up so the user can select the background color, the font size, and the font color through a PreferenceActivity. I have gotten everything figured out regarding the Preference activity but I can not figure out how to grab the Lis...

Display a ListView on a Home Widget with AppWidgetProvider

Hi all, I would like to create a Home Widget containing a ListView, but I don't know if this is possible and if it is, how to do it. I was using a ListActivity and it was pretty simple, but can't figure out a way to do it using AppWidgetProvider. Thanks for your help ...

Highlight the first row in a ListView and a ListBox Control

I am attempting to show both a ListView and ListBox on a Windows Form (C#). The difficulty I am having is in having the first row for both the ListView and ListBox highlighted when the application opens. Could someone please steer me in the right direction so that the first row of both the ListView and ListBox are highlighted when the ...

SQLite and populating list view, android

I am populating a text and list view from a SQLite database. The data is populating from the cursor correctly (I see the list filling with text rows), but I'm not able to see the actual text in the rows - all I see are empty rows. For the life of me, I can't figure out what I'm not able to see the data in the text rows. Here is a link t...

Android - How to tell is someone has pressed a SPINNER but not changed the visible item in it.

I have a spinner, which mostly works. If a user selects one of the items in it, the 'onItemSelected' routine catches it just fine. But if a user clicks the same spinner, but does not change from the already visible item that it's currently displaying, the 'onItemSelected' routine just ignores it, and the logs show:- WARN/InputManagerSe...

ListView items not clickable with HorizontalScrollView inside

I have quite a complicated ListView. Each item looks something like this: > LinearLayout (vertical) > LinearLayout (horizontal) > include (horizontal LinearLayout with two TextViews) > include (ditto) > include (ditto) > TextView > HorizontalScrollView (this guy is my problem) > LinearLayout (horizontal) In my ac...

C# Virtual Mode List View Click 1 Selects More Than One Items

I have a list view with virtual mode set to true and other things. It doing ok. But 1) Say there are 25 items and 15 of them are visible, that is to see the rest of 10 items need to scroll down. 2) Before scrolling swap two items, say myItems[0], it must be visible & myItems[20], it must be not visible scroll required. 3) Now select t...

Scroll bar not maintaining its position in ListView (ASP.net)

Hi I have a listview inside a DIV which shows the scroll bars. At one time, let's say, 10 rows can be seen. I scroll down and click Edit on 25 row. To my surprise, the scroll goes to the first row (although if I go back to 25th row, the row is in edit mode) My issue, how I can make sure that the scroll bar maintains its position to 25th...

How to get the value of a Listview item which is clicked in android?

I have this below code access the ListView item value into string and display it in alert? ListView shot = getListView(); shot.setOnItemClickListener(this); public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,long arg3) { String S = arg1.getContext().toString(); AlertDialog.Builder alertbox = new AlertDialog.Build...

custom Filter Android won't show me the results

Hi, I have been implementing a class which class extends ArrayAdapter and implements Filterable. The filtering part (in the performFiltering method()) seems to go ok, it fills the FilterResults object just as expected. But then I think I'm not doing it right on how to publish the results, atm I have : protected void publishResults(CharS...

How to make WPF Listview works same as Photoshop layer

As we can see in Photoshop layer window (or other image editting tool also), it has several features: groups with folder-like header (collapse/expandable) ungroupped item (no header) sort "manually" by dragging. In case of No 1, I made groupped item with expander control. (ref) In case of No 3, Sort manually can be solved with this...

android customize list view prepends results

I am using list view using "ArrayAdapter" to display number of items while user is looking at results when user click on load button i want results to load and prepends(add in the beginning) ...

Is it possible to make a TListView search by the caption of a different column in Delphi?

Hi, When you set the Caption of a TListItem it seems to always set the Text for the first column in the row. When you start typing in the ListView it will search & select the closest match based on the caption of the first column. I have a situation where I need the caption of the first row to be empty, but still need the search functi...

Listview's first item is always selected

I'm using a custom view to display items in a listview. For some reason every time the list is populated; the first item is shown as selected (ie; orange highlight). I've tried everything I can think about to solve it; any ideas? ...

ListView not firing OnItemCommand (nor ItemInserting) after preventing postback

Hi there, I have a ListView inside a FormView that, for some strange reason, doesn't fire neither the ItemInsert nor the ItemCommand event. I'm populating the ListView with a generic list. I bind the list to the ListView on the OnPreRenderComplete. <asp:ListView runat="server" ID="lvReferences" DataKeyNames="idReference" OnItemInse...

How to make a EditText work correctly in a ListView?

Hallo all, I have a ListView, which contains an EditText in each of it's row. I also have an Array.The length of the Array==the Nr of the rows in the ListView. I want to store the user input (the text in the EditText) to the Arrray. E.g, if i type some text in the EditText in the first row of the ListView, i want the text to be stored...

Use android.R.layout.simple_list_item_1 with a light theme

I have learned that when using android:entries with a ListView, it uses android.R.layout.simple_list_item_1 as the layout for a list item and android.R.id.text1 as the ID of the TextView inside that layout. Please, correct me if I'm wrong. Knowing this, I wanted to create my own adapter but use the same layout resources, in order to pro...