listview Questions

22

Solved

I am replacing my ListView with RecyclerView, list showing ok, but I would like to know how to get clicked item and its position, similar to the method OnItemClickListener.onItemClick(AdapterView p...
Hooknose asked 3/2, 2015 at 10:32

6

Solved

It is my first time here and I am struggling to solve this issue. I have this piece of code: try { progressBar1.Maximum = lista.Items.Count; lista.BeginUpdate(); for (int i = 0; lista.Items.Co...
Heeley asked 31/5, 2013 at 15:53

5

Solved

Regarding Listbox to ListView migration. Hello. I have a Listbox I add entries like this to: 1;content Where 1 is always an int and content is always a string. I can access each one seperately....
Leonard asked 14/7, 2012 at 9:14

2

I have a listview builder widget inside another list view. Inner listview listener is not firing when scrolling position reaches to its end. initState() { super.initState(); _scrollController.ad...
Viperish asked 26/6, 2020 at 12:9

3

Solved

Trying to populate an textview(s) from an array. I managed to get the desired effect via XML via the code below <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://...
Overlook asked 29/1, 2017 at 22:15

3

Solved

I have a ListView. I updated its adapter, and call notifydatasetchanged(). I want to wait until the list finishes drawing and then call getLastVisiblePosition() on the list to check the last item. ...
Volcano asked 20/3, 2015 at 18:37

5

I want to implement SearchView with multiple fragments present in a viewPager. All fragemnts contains lists and I want to filter those lists and create a new ListView which has categorization of re...
Hellenhellene asked 24/9, 2015 at 14:17

6

Solved

I've found loads of different ways of accomplishing this but I'm not sure what's the best for my scenario. This is my Java code for the listview: ListView lv; lv = (ListView) findViewById(R.id.fa...
Ricketts asked 19/9, 2013 at 14:4

4

I need to access the scrollviewer of a listview from the codebehind. here is the definition of my listview <ListView Grid.Row="1" ItemsSource="{Binding Path=SpecList, UpdateSourceTrigger=Proper...
Unmeaning asked 27/3, 2017 at 17:57

3

Solved

I have a QList of custom structs and i'm using custom model class (subclass of QAbstractListModel) to display those structs in 1-dimensional QListView. I have overriden the methodsrowCount, flags a...
Breathless asked 29/6, 2019 at 16:23

5

I'm looking to display a large dataset via a list view in GTK# and performance is an issue here. I'm currently using a TreeView backed with a ListStore, but adding all my data to the ListStore take...
Looming asked 2/7, 2010 at 8:41

6

Solved

Is it possible to let a ListView only be scrollable with the ScrollController and not with the touchscreen?
Trenatrenail asked 22/5, 2018 at 23:28

4

Solved

iv'e tried using a for loop to filter out the null and nan values but still the nan value is added to the listview. this is just a part where the calculation is done. double rs1 = (qz1 * c11) + (a...
Raft asked 19/1, 2014 at 7:1

4

Solved

public class ListView extends ListActivity { static String item; public void onCreate(Bundle icicle) { super.onCreate(icicle); ArrayAdapter<String> adapter = new ArrayAdapter<String&g...
Dinner asked 28/10, 2012 at 14:49

4

Solved

I'm a newbie to Fragments and custom ListView adapters. Can anyone give me a hand please? I've got my Fragment where I have my ListView public class RecordingListFragment extends Fragment impleme...
Beffrey asked 26/11, 2014 at 11:11

5

Solved

I'm trying to filter my ListView which is populated with this ArrayAdapter: package me.alxandr.android.mymir.adapters; import java.util.ArrayList; import java.util.Collection; import java.util.Co...
Pd asked 27/4, 2010 at 1:35

18

How can I change background color of ListView items on a per-item basis. When I use android:backgroundColor in the ListView item layout I can achieve this, however the list selector is no longer vi...
Hephzipa asked 7/2, 2010 at 18:26

3

I'm trying to center an item within a horizontal listView when selected. My current strategy is to first measure the item and scroll to the x coordinates of the referenced item within the view. ...

1

Solved

I've searched high and low and I'm beginning to think this isn't possible, but I have a custom ListView which is in an inflated layout and put onto a popup window. The lines are made from a layout ...
Kery asked 20/2, 2021 at 0:29

4

Solved

I tried to do the Write Your First Flutter App, part 2 flutter app page 5 I now have a question for this application. I want to remove an entry from that List onLongPress like this: onLongP...
Psychologist asked 13/3, 2019 at 13:25

3

Solved

I have a ListView with different layouts for different items. Some items are separators. Some items are different because they hold different kinds of data, etc. I want to implement ViewHolders to...
Portingale asked 18/8, 2010 at 16:51

4

Is there any way to hide certain item in ListView? import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Window 2.2 ApplicationWindow { title: qsTr("Hello World") width: 640 height: 48...
Pattison asked 8/9, 2015 at 9:38

5

Solved

Is there a way to detect if the scrollbar from the ScrollViewer in a ListView has reached the bottom of the virtual scroll space? I would like to detect this to fetch more items from the server to ...
Vitellus asked 19/8, 2009 at 17:22

4

Solved

I'm using WPF and .NET 4.0. Recently in one of my programs I switched from using ListView with GridView to DataGrid. I want to be able to select and highlight the whole row like I was able to do i...
Elemi asked 1/4, 2011 at 21:0

3

Solved

I have a ListView containing only buttons. What I want to do is pretty simple, I want to have the index of the button that has been clicked. The count of the list varies from 0 to 100, so when the ...
Propagable asked 5/12, 2011 at 11:4

© 2022 - 2024 — McMap. All rights reserved.