Most voted "listview" questions
Listview is a graphical screen control or widget provided by user interface libraries on most modern operating systems. Use the tag for any language that makes use of this control even if it has some variation. Unless the problem is specific to some implementation.
Learn more…415 questions
Sort by count of
- 
		17 votes3 answers506 viewsHow to instantiate a Gridview or a Listview for the same Activity?In my app I am presenting a list of items. I would like in certain situations to be presented with a ListView and others like GridView. Situations are: Smartphone(Portrait) - ListView… 
- 
		13 votes2 answers1894 viewsHow to align strings to use in a listview?In my Android project I need to create a table with a listview but the data always comes misaligned. I place each record of my database in a position of a string array to use it in listview. The… 
- 
		13 votes2 answers3271 viewsWhat is the difference between Listview and Recyclerview?What difference between ListView and RecyclerView on Android? From which Api to RecyclerView is available? It is valid to use the RecyclerView and not the ListView?… 
- 
		12 votes2 answers235 viewsHow to avoid an Illegalstateexception: The content of the Adapter has changed but Listview Did not receive a notification?I have a Activity that displays a ListView, to which a Adapter "backed by" a ArrayList global. If I add an element to that ArrayList, ideal is to do it in the main thread and immediately call… 
- 
		11 votes2 answers2958 viewsWhat are Loaders? How to implement a Loader to load from the database without content Provider and how to implement a custom Loader?On the Internet, at least in my research, I found little material on Loader in Portuguese. That is why I record here this question, to have documented answers to the android programming community as… 
- 
		8 votes2 answers190 viewsWhat is Listviewanimations and how to use it?I wanted to understand what the ListViewAnimations is (a component, a Framework?) and how it works. 
- 
		8 votes0 answers437 viewsHow to change the color of the item in a listviewI have a listview which is adapted with a SimpleCursorAdapter and that within the listview has two textview, one with a number and one with a name. I wanted to do so... the listview shows in… 
- 
		7 votes2 answers4442 viewsHow to delete a specific Listview item?I would like to ask a question: I have one ListView, in which his Adapter is clarified in the same Activity and the content of Adapter (as strings) are in another class, in another package. How do I… 
- 
		7 votes2 answers2252 viewsSelecting a value from a Listview row/column populated by LINQ to SQLThrough the double click event I need to pull a value from a row/column in a Listvview populated by LINQ to SQL. For example, when the user needs to select a value from a row/column of this… 
- 
		6 votes1 answer117 viewsProblem with the datakeynames property of the listview componentI get the following error when running the application: Message=Databinding: 'Gesthos.Models.Documents.Fluxoapprovacaodocumento' does not contain a Property with the name 'Sector.Code'. Error… 
- 
		6 votes1 answer350 viewsCan you create an Expandablelistview with the Swipe effect?I have a ListView which is composed of 3 ListView's chained. The first is a list of Year of release, which has a list of genres that in turn stores a list of movies. I wanted to have the option to… 
- 
		5 votes1 answer1387 viewsDisplay a message when Listview is emptyI have a Listadapter that extends a Basedapter that works perfectly. When it is empty I wanted a message to appear any. Where to implement this validation? 
- 
		5 votes1 answer1101 viewsHow to make a Listview with components next to the text on each line?Several current Androids systems have menus like the one in the example below: Notice that anywhere I touch my finger in the blue area under "Access my location" it turns on or off the switch and… 
- 
		5 votes1 answer335 viewsSlide item to increment TextviewIs there any component that when sliding an item of a ListView, it increases a TextView in the item itself? As in the image below: Sliding to the right, increments according to the value that… 
- 
		5 votes1 answer201 viewsGoing back to the top of the screen when writing in the fieldI have the following error: I have a list and a field, every time I edit any text Edit from the list, it loses focus and goes to the top of the screen, notice the gif that at each letter of the word… 
- 
		5 votes3 answers583 viewsHow to recover a product id by clicking on listview opening another ActivityI am making an application for product consultation using a Webservice. I do a search in WS and bring the product information I need. Then I pass this information to a Adapter create a ListView and… 
- 
		5 votes1 answer68 viewsCapture the index data in the databaseI was able to feed my listview with Sqlite data, however, I now want to capture the data (in the database) that each line of listview matches. For example: Line 10 displays Code. 1 and Name: Felipe… 
- 
		4 votes1 answer218 viewsHow to set position of a cursor in the Onchanged of a Customview in a Listview?I’m wearing a customview calling for android-spinnerwheel. I inserted her into a listview connected to a CursorAdapter. If I use the OnitemClickListener from Listview, the cursor goes to the… 
- 
		4 votes1 answer1016 viewsHow to keep the selected item color fixedAdding the Istener to the Listview through the method setOnItemClickListener, every time you click on one of your items, it momentarily changes color. Is there any way to keep this color fixed on… 
- 
		4 votes1 answer294 viewsVery slow listview on scroll barI have a problem I don’t know how to solve, I have a ListView customized with images and the scroll bar keeps crashing, even with the list loaded. It slows down the list to scroll. Adapter: public… 
- 
		4 votes1 answer135 viewsCheck click position on a ListviewI have a screen that has a ListView inside it, I need to identify which line was clicked to direct to the correct location. How can I do this? 
- 
		4 votes1 answer271 viewsEdittext issues in a listviewI’m trying to get my listview retain the values placed on EditText, but every time I give one scroll I lose the data or it multiplies to other fields. Can anyone help? Follow below mine adapter:… 
- 
		4 votes1 answer552 viewsHow to use a custom Adapter on android ListfragmentHello folks I’m having problems with using a Adapter customized and display this Adapter in a Listfragment. My Custom Adapter public class UsuariosAdapter extends BaseAdapter { Context ctx; List… java android listview android-fragment android-adapterasked 10 years, 3 months ago ThiagoDeveloper 55
- 
		4 votes1 answer376 viewsHow to ignore the accents in Listview on Android?I was making an app for me kind of joking around and I came across a problem, the ListView Android Studio does not ignore the accents of Portuguese. Could someone post a code to fix this? Like do… 
- 
		4 votes1 answer419 viewsChange data from a specific position in ListviewI would like to know how I can change data from a certain Listview position. Here I upload from the database to Listview: public void carregarEmails(Cliente cliente) { ArrayList<Email>… 
- 
		4 votes1 answer49 viewsExpandablelist CustomizableI’m new to Android, but with an ambitious project. I’m trying to make a ExpandableList customized, with two TextViews on the items and the one on the left needs to have the background changed as per… 
- 
		3 votes2 answers2488 viewsUpdating values in a ListviewI add the values that are within 3 arrays in the hashMap to insert into the listview: ArrayList<HashMap<String, String>> lista = new ArrayList<HashMap<String,String>>();… 
- 
		3 votes1 answer178 viewsHow to make a Listview update a title at the top, as I scroll the same?I don’t know how to explain very well what I want without pictures, but I need to learn how to make a Listview that changes title as you go down... It’s basically like in HTML when you do long pages… 
- 
		3 votes1 answer92 viewsManipulating buttons on list itemsGuys I’m having a problem on my list. In my list is equal to the image below: Arrows should consider the number of goals of the corresponding textView, but this is not the case. Regardless of the… 
- 
		3 votes1 answer726 viewsHow to click on a Listview item and open an Activity reference to the item I clicked on?I have a listview that has as content a list with country names recorded in the bank (Sqlite). I needed to click for example on Item Brazil, and open another Listview with the states of Brazil, I’ve… 
- 
		3 votes1 answer97 viewsHow to display in Listview a single query data that returns two data?I have a query that returns a person’s name and surname. With the result of this query, I enter the information within a ListView and displays the name and surname. How do I display only the name?… 
- 
		3 votes2 answers96 viewsError generating custom ListviewHello, I’m trying to accomplish the implementation of a ListView custom on Android, but I’m not getting it. It’s something simple, I’ve done other times, but I can’t see where I’m wrong.… 
- 
		3 votes1 answer718 viewsHow to convert an Array of Bytes to a Direct Image in Listview?I populated THE Datasource of Listview with a collection. The collection contains a field with ArrayBytes. I need to convert to the image appear in control. But the conversion has to be direct in… 
- 
		3 votes1 answer81 viewsHow to sync two Tlistviews?I’m working on a App for Android using the Delphi XE8 and I need to synchronize two Listviews so that when the user downloads one, the other download together. How do I do it in Delphi?… 
- 
		3 votes1 answer323 viewsSet maximum height for Alert DialogMy dialog has a list, and when this list has many entries, the dialog cuts the buttons in the middle, as in the image : How do I set a maximum height not to get cut this way? Dialog code public void… 
- 
		3 votes1 answer250 viewsFirst element in listview does not appearI have a listview that lists through an Adapter. The list is updated after a Sqlite search. The problem is that it only appears from the second element of my table.... someone could help me?… 
- 
		3 votes1 answer349 viewsHow Popular a Listview, and her Popular another Listview by Primary Key?I have two Listviews that I need popular using LINQ to SQL (C#, WPF project) from a search field. When typing in the field(textbox) the Keydown event will popular the first Listview (1), as the… 
- 
		3 votes1 answer50 viewsOpen new screen with clicked user optionsI have a listview and in it I put all the users of the bank, I use a adapterView to get the position and the id, but I do not know how I will open a new screen for the advanced options for each… 
- 
		3 votes2 answers802 viewsCommand button does not work within Listview Xamarin Forms MVVMI’m trying to create a button with the event Command within a Listview on MVVM, but is not falling in the event ViewModel. How do I get this button Command access your method on ViewModel ? And… 
- 
		3 votes2 answers162 viewsHow to make an object in Listview have an absolute position?I have a listview with several items, I also have right up a searchView to perform a filter on these items, being they "clickable", starting another Activity. The problem is that the numbering of… 
- 
		2 votes3 answers2371 viewsCreate a button in a ListviewI am making an application and at the end of the data inserts the user will view a summary with a listView. So far so good, but I want to create, right down after the listview, a finish button, but… 
- 
		2 votes2 answers1293 viewsHide Subitems from a Listview?Is there any way to hide subitems and their data from a listview? I tried to start the code with something like this: for I := 0 to Form1.LV1.Items.Count-1 do begin if Form1.LV1.Items[I].SubItems[5]… 
- 
		2 votes1 answer741 viewsManipulating Listview C#I have a Listview that displays the data on the screen and has several rows and columns. For example: Cl1 | Cl2 | Cl3 L1 aa | bb | cc L2 ab | bc | cd L3 ac | bd | ce I wonder, if you have any c#… 
- 
		2 votes1 answer853 viewsPopular a Listview with ArrayadapterI need a popular ListView. I have a class that represents the Entity Cliete, a class that is responsible for the database database and finally a class ClienteDAO, that the data of the entity remains… 
- 
		2 votes1 answer506 viewsWrite Listview in SQL Database using Entity Framework and C#I am developing a sales desktop application using C# and Entity Framework and I am having doubts about recording the items entered in ListView in the SQL database. How to save inserted items to… 
- 
		2 votes1 answer269 viewsListing internal memory files in ListviewI intend to create a app that by clicking on "Lists" create a list using ListView based on files found in a particular internal memory folder(path). 
- 
		2 votes0 answers2379 viewsIntel XDK project + Bootstrap framework + listview without scrollI’m developing an app on Intel XDK (1995 version) where the layout is basically a footer with a grouped button inside it. The chosen framework is the Boostrap. Below the image of the app running in… 
- 
		2 votes1 answer258 viewsListview CustomizadoGuys, I have a listview that loads data from a database. These data are numbers themselves, and I would like to be able to differentiate them. Like... if the number is zero, I’d like it to be a… 
- 
		2 votes1 answer215 viewsHow to block an item from a listview?I have a list of Textview in a Listview, and by clicking on one of the Textview I have access to a Fragment. How do I stop, when I’m in one Fragment, the Textview responsible for opening it is… 
- 
		2 votes1 answer218 viewsAndroid ListviewHow can I get a Listview to assemble the items as follows: When you have only one item it occupies the entire screen, if you have two divide 50% of the screen size between the items and so on...…