listviewitem

How to Drag drop Listview item to another Listview

蹲街弑〆低调 提交于 2019-11-27 02:49:52
问题 Hi I'm Raynast I'm a newbie for Android Programming Now I have a little problem from my project about Listview Drag and Drop I decide layout to Three Listview query from database _________________________ |list_1 |list_2 |list_3 | |_______|_______|_______| |_______|_______|_______| || ||| ||| || ||item1|||item5|||item8|| ||_____|||_____|||_____|| |_______|_______|_______| || ||| ||| || ||item2|||item6|||item9|| ||_____|||_____|||_____|| |_______|_______| | || ||| || | ||item3|||item7|| | ||__

ListViewItem won't stretch to the width of a ListView

江枫思渺然 提交于 2019-11-26 21:34:39
I'm currently designing a windows 8 store app using XAML but I have a minor sizing issue. I have a ListView with a DataTemple. The code for my ListView & DataTemplate are below: <ListView x:Name="listPageItems" Grid.Row="1" SelectionMode="Extended" IsSwipeEnabled="False" ItemsSource="{Binding Mode=OneWay, Source={StaticResource items}}" ItemTemplate="{StaticResource NavigationItemTemplate}" ScrollViewer.VerticalScrollBarVisibility="Visible"> </ListView> <DataTemplate x:Key="NavigationItemTemplate"> <Grid Height="75"> <Grid.RowDefinitions> <RowDefinition Height="1.6*" /> <RowDefinition Height="

How to change color of ListView items on focus and on click

↘锁芯ラ 提交于 2019-11-26 20:04:01
i have a list View in my app (this is the xml layout): <?xml version="1.0" encoding="utf-8"?> <ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/arrayList" android:layout_width="fill_parent" android:layout_height="fill_parent" android:textFilterEnabled="true" android:scrollbars="vertical" android:drawSelectorOnTop="true"> </ListView> Each item of my list View is composed of two TextView: <?xml version="1.0" encoding="utf-8"?> <TableLayout android:layout_width="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/row

Programmatically Select Item in Asp.Net ListView

时光毁灭记忆、已成空白 提交于 2019-11-26 20:03:45
问题 After doing a quick search I can't find the answer to this seemingly simple thing to do. How do I Manually Select An Item in an Asp.Net ListView? I have a SelectedItemTemplate, but I don't want to use an asp:button or asp:LinkButton to select an item. I want it to be done from a URL. Like a QueryString, for example. The way I imagine would be on ItemDataBound, check a condition and then set it to selected if true, but how do I do this? For example: protected void lv_ItemDataBound(object

Android: How to hide a ListView Item

喜欢而已 提交于 2019-11-26 19:59:28
问题 How can you hide an item in a ListView or at least set its height to zero? I have tried setting the visibility of the View to GONE but it still maintains the item's space (height). 回答1: Ressurecting an old question, but I just had this issue where I wanted to hide list items temporarily based upon criteria outside of the list data. What I ended up doing was creating a "null item" layout in xml and returned that based upon my criteria instead of the convert view in getView()... instead of

Get ListView items from other windows

末鹿安然 提交于 2019-11-26 17:14:18
问题 I'm doing some project on c#. I need to get i item from ListView window, handle of it I got by doing something like this IntPtr par_hWnd = API.FindWindow(null, "Form1"); IntPtr child1 = API.FindWindowEx(par_hWnd, (IntPtr)0, null, null); API is my static class with lots of dllimports from "user32.dll" I am able to get count of items in this ListView: IntPtr count = API.SendMessage(child1, API.LVM_GETITEMCOUNT, 0, 0); Now i need to get the text of item, but the result somehow must be placed in

Listview error: “Your content must have a ListView whose id attribute is &#39;android.R.id.list&#39;”

戏子无情 提交于 2019-11-26 14:46:48
问题 I am getting an error in my logcat saying "Your content must have a ListView whose id attribute is 'android.R.id.list'". My code compiles and runs but force closes when I start my listview activity. I've checked on many similar questions, it seems to be a common problem but I am still unable to fix my code. The Declaration: private ListView lv; Context mContext; List mList; String[] testcontacts; MessageView aa = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate

Buggy ListView makes me sad

北城余情 提交于 2019-11-26 12:13:49
问题 I have a ListView where I\'ve defined the layout of each item in a separate XML file. In this file I\'ve included a RatingBar and an EditText . I\'ve programmatically created 7-8 items in this ListView . When I scroll through them, it seems to be quite buggy. Here are some examples: If I set focus to the EditText in the first row and then scroll down the ListView , random EditTexts from other rows will have focus. It seems to be that the next EditText after the focused one disappears receives

ListViewItem won&#39;t stretch to the width of a ListView

╄→尐↘猪︶ㄣ 提交于 2019-11-26 08:01:36
问题 I\'m currently designing a windows 8 store app using XAML but I have a minor sizing issue. I have a ListView with a DataTemple. The code for my ListView & DataTemplate are below: <ListView x:Name=\"listPageItems\" Grid.Row=\"1\" SelectionMode=\"Extended\" IsSwipeEnabled=\"False\" ItemsSource=\"{Binding Mode=OneWay, Source={StaticResource items}}\" ItemTemplate=\"{StaticResource NavigationItemTemplate}\" ScrollViewer.VerticalScrollBarVisibility=\"Visible\"> </ListView> <DataTemplate x:Key=\

How to change color of ListView items on focus and on click

≡放荡痞女 提交于 2019-11-26 07:29:28
问题 i have a list View in my app (this is the xml layout): <?xml version=\"1.0\" encoding=\"utf-8\"?> <ListView xmlns:android=\"http://schemas.android.com/apk/res/android\" android:id=\"@+id/arrayList\" android:layout_width=\"fill_parent\" android:layout_height=\"fill_parent\" android:textFilterEnabled=\"true\" android:scrollbars=\"vertical\" android:drawSelectorOnTop=\"true\"> </ListView> Each item of my list View is composed of two TextView: <?xml version=\"1.0\" encoding=\"utf-8\"?>