listviewitem

ListView - Item Template styling - Cross browser differences

不羁的心 提交于 2019-12-12 03:45:00
问题 This is a follow up on my previous question (ListView - ItemTemplate table styling). I am still trying to make the ItemTemplate look like this: ______________________________________________ | |___________Title_____________| | Image |____________Name_____________| | |______Value_____|____Value___| |_______________|______Value_____|____Value___| It works perfectly in Chrome and Opera but there are problems in the other browsers. Firefox: ______________________________________________ | _______

ListView with background image and custom cell colors

做~自己de王妃 提交于 2019-12-12 02:59:21
问题 I have a listview that uses custom cell colors, but when I set a background image in the listview, the custom cell colors will not appear anymore. I tried to remove the background image temporarily (when assembling the list) and restore it after applying cell colors. This results in no custom colors but shows the background. I would like to combine these 2 listview properties if possible. My code for setting/removing background image: list.BackgroundImage = Properties.Resources.bgalpha; list

Android ListView with different colors

醉酒当歌 提交于 2019-12-12 02:02:34
问题 I am having a little problem using different colors in a ListView . I have tried several things but nothing seems to work private class GameRowAdapter extends ArrayAdapter { ArrayList objects; public GameRowAdapter(Context context, int textViewResourceId, ArrayList<RowModel> objects) { super(context, textViewResourceId, objects); this.objects = objects; } @Override public View getView(int position, View convertView, ViewGroup parent) { View row = convertView; RowModelViews model; if (row ==

how to check if the item [name & subItem's text] is already exists in another listView?

我与影子孤独终老i 提交于 2019-12-11 23:23:49
问题 i making a file transfer (server-client) application .. i have two listviewS to explore Local PC and Remote PC .. before send/receive the items.. i need to check if there's another file or folder has the same name at the destination path.. when i press on the button [send or receive] the item added to a list.. then when i press on button [Start Transfer] .. it starts. so the AddItems Method called when i press the button Receive or Send .. i get the SelectedItems from the source ListView ..

How can I find if a selection is inside the rubberband selection in a ListView?

让人想犯罪 __ 提交于 2019-12-11 15:32:57
问题 I am using the events ItemSelectionChanged and SelectedIndexChanged of the ListView class to answer this question. The code is below, and the only bug that seems to remain is that I use the 250ms timer also when the user uses rubberband selection, not only for single or double click selection. internal Form1() { InitializeComponent(); t.Tick += T_Tick; } internal bool santinela = false; internal void T_Tick(object sender, EventArgs e) { t.Stop(); if (!santinela) { bool newVal =

Show more than 3 item in a wearable listview without scrolling

China☆狼群 提交于 2019-12-11 12:50:11
问题 I want to create a wearable listview that can show more than 3 item simultaneously, but the wearable listview only shows 3 item, and i have to scroll down to see the other items. Is this a WearableListView specific thing? So my WearableListView looks like this: But i want to show more than 3 item without scrolling, because it has enough space. The listview container xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout

How to calculate the listview Item height at run time and set all items with same height in android?

别说谁变了你拦得住时间么 提交于 2019-12-11 12:17:02
问题 In my application i have a list view and i am inflating a web view into the list view. I am able to load data and images into the list view item. The problem is the list items are not of same height due to different contents. I want to make all list items having same height How to calculate the height of the list item that has the maximum data and set that height to rest of the list items in the list. How would i do that.. i have no clue on that.. Say if the 10th item has the maximum height i

How to get the items and subitems in a listview?

有些话、适合烂在心里 提交于 2019-12-11 10:44:34
问题 I want to get all items and subitems in my listview,but all I get is "TlistItem" Here's my code: procedure TFrameAnalyzer.AddEntry(opcode:word;data:Array of byte;direction:byte); begin MessageBox(0,PChar(sListView1.Items.Item[4].ToString),'',0); end; How do I get the name of the item as string and the name of it's 2 subitems? 回答1: You can't get the name of the item, because it has no name. It has a Caption though, and a SubItems property of type TStrings . All of this can easily be found in

Missing ListView.Columns in WPF

倾然丶 夕夏残阳落幕 提交于 2019-12-11 07:27:54
问题 I'm writing an application with a ListView in C# WPF. I was wondering if I was missing a reference of something, because I get this error all the time: 'System.Windows.Controls.ListView' does not contain a definition for 'Columns' and no extension method 'Columns' accepting a first argument of type 'System.Windows.Controls.ListView' could be found (are you missing a using directive or an assembly reference?)` It's not only with MyListview.Colums but also when I want to add a multi-column item

UWP change style of ListView DataTemplate in a MasterView

别等时光非礼了梦想. 提交于 2019-12-11 06:26:22
问题 This is the structure of the XAML: <controls:MasterDetailsView ItemsSource="{x:Bind Artists}"> <controls:MasterDetailsView.MasterHeader> // Some Code </controls:MasterDetailsView.MasterHeader> <controls:MasterDetailsView.ItemTemplate> // Some Code </controls:MasterDetailsView.ItemTemplate> <controls:MasterDetailsView.DetailsTemplate> <DataTemplate x:DataType="data:ArtistView"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions>