listview

Android ListView TextSize

my listview.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:myapp="http://schemas.android.com/apk/res/zaid.quotes.dlama"&gt; <ListView android:i...

How to get on which ListView has been a ContextItem selected?

I have an activity with three listviews, each having three different cursors, but all have the same ContextMenu show/resolve code and when the selection event fires, I want to get the ListView to refresh it. I can't use menuInfo.targetView, as that holds the LinearLayout for the ListView row, and not the ListView. in this method publ...

Disallow button press feedback in non-sortable WPF ListView header

For a WPF ListView bound to an simple list that has no need or support for sorting, how you do make it so that the user doesn't get button press feedback when he clicks on a header? By default, clicking the middle of a column header feels like a button press for which nothing happens. An example of the look and feel I'm trying to achiev...

ListView - Index and Position Behavior upon restart()

I am using a ListView with an ArrayAdapter that holds objects. When I select an item, I am capturing the position and index of the selected item. If I scroll down prior to selection, the position and index represent the location of the item in the list. Selecting that items takes me to another activity. When I use the back button to retu...

Winforms - How to allow user to increase font size of listview with hidden controls?

I am creating an winform application that will run on a tablet PC. One form for this app will have a listview control. I would like to allow the user to change the font size based on preference (ie did they remember their glasses today). A few ways that I can think of would be a numeric-up-down or +/- button controls. Both of these...

View Stub(Pagination) and Lazy loading of Images in android

Hi friends, In android mobile we have an default application Market, under submenu there is functionality called all applications. In this, first it shows only ten records in which it will display defalut image and text, then in back ground it will update images. When we scroll down (i.e., end of list) and it shows loading and then it l...

C# .NET: if ((e.State & ListViewItemStates.Selected) != 0) <- What does it mean ??

In standard MSN code, there's a line on a ListView - Ownerdraw - DrawItem : if ((e.State & ListViewItemStates.Selected) != 0) { //Draw the selected background } Apparently it does a bitwise comparison for the state ?? Why bitwise ? The following doesn't work: if (e.State == ListViewItemStates.Selected) { //Doesn't work ?? } ...

Why my button can trigger the UI to scroll and my TimerTask inside the activity can't?

Long Story Short: a method of my activity updates and scrolls the ListView through an ArrayAdapter like it should, but a method of an internal TimerTask for polling messages (which are displayed in the ListView) updates the ListView, but don't scroll it. Why? Long Story: I have a chat activity with this layout: <?xml version="1.0" enc...

Winforms - How to alternate the color of rows in a ListView control?

Using C# Winforms (3.5). Is it possible to set the row colors to automatically alternate in a listview? Or do I need to manually set the row color each time a new row is added to the listview? Based on a MSDN article the manual method would look like this: //alternate row color if (i % 2 == 0) { lvi.BackColor = Color.LightBlue; }...

Hiding ListViewItem based on a filter

I want to hide some items based on a text filter in a ListView (WinForms). Basically the listview loads the items from a text file, and I don't want it to be read and/or written when the user searches the list. The search is done in a combobox's KeyDown event, but there is no "Visible" property of the ListViewItem. Is there any easy way...

.NET Setting TileSize.Width gives either scrollbar or blank space

When you set listView1.TileSize.Width = ListView.Width You get a horizontal scrollbar because the item is too wide. This happens until you subtract 4 pixels. When you do listView1.TileSize.Width = ListView.Width -4 you get a 5 pixel blank space, because the item is too narrow ??? What's going on here ? Is this some kind of evil ...

How to call notifyDataSetChanged() from a generic Adapter

An OnItemClickListener for a ListView has the following method: @Override public void onItemClick(AdapterView<?> parent, View v, int position, long id) I'd like to have the adapter behind the ListView refresh, and I believe this is done through the use of: BaseAdapter.notifyDataSetChanged() How do I use the parent parameter in the ...

c# windows forms link button to listview

Hi, I am using c# windows forms. I have multiple buttons linked to a listview which when a button is pressed, a new item is added to the listview. The column headers in the listview are 'Name' and 'Amount'. When a different button is pressed, a different item is added to the listview. The thing i need help with is as follows: When the s...

Best way to handle multiple getView calls from inside an Adapter

I have a ListView with custom ArrayAdapter. Each of the row in this ListView has an icon and some text. These icons are downloaded in background,cached and then using a callback, substituted in their respective ImageViews. The logic to get a thumbnail from cache or download is triggered every time getView() runs. Now, according to Romai...

is it possible to create listview inside dialog?

dear friends, i have created a custom dialog class public class NewPost extends Dialog { // functionality } now my requirement is to create listview inside it. i know we can create textboxes,buttons,dropdown list inside it. but in order to create list view we should inherit our class from listActivity class what you suggest is it ...

Why does my listview keep drawing in LargeIcon View ??

I have a inherited Listview which standard has to be in Tile Mode. When using this control, the DrawItem gives e.bounds which are clearly bounds of largeIcon view ?? When debugging to check the view it is actually set to, it says it's in Tile view ?? Yet e.DrawText draws LargeIcon view ?? ......... Edit: ................. This seems on...

How to implement an ListView containing images with style

So I have been working with an app where I need to show the thumbnails as clean and use the space in a good way. Style A is my work until now. What I want to accomplish is something like style B. no titles and use the space in a good way. I need help with this. there was no tutorial on the net. Is ListView able to do such a thing? or ...

textbox, combobox in WPF listview.

hello everyone, I am porting an application from foxpro to C#.Net. This is a wine shop billing software. Its billing interface screenshot link is here http://picasaweb.google.com/raj.kishor09/RAJK?feat=directlink But my client wants similar interface on WPF too. I think listview can help me in this regard but don't know how to implement...

.Net ListView and System's Icon Size

I have a ListView using the LargeIcon View mode with some 64x64 thumbnails. The problem is that the padding between ListViewItems is somehow based on the system's Icon size value (Display Properties > Appearance > Advanced > Icon). The default for XP seems to be 32 and the ListView and its thumbnails look fine, but with higher Icon size...

WPF. How do I create many LIstViews with the same look.

I've defined a listview in my recent project and realized that I will be using more listviews looking exactly the same and having the same solumns. Since I'm new to WPF am I curious of teh best way to do this. Is it to create a usercontrol? Use styles? I've tried to use styles but it didnt work the way I was hoping. I tried to set the "V...