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
-
1
votes1
answer200
viewsListview in another Activity
I have a Listview in my activity main when I click a button, it adds data to my Listview, so far everything is correct. How do I show this listview in another activity? I show other data (EditText)…
-
1
votes1
answer132
viewsHow to create a button for each Listview item that accesses a song
I wanted every item of the ListView played a song by clicking the button referring to each item, but when I click the button, it even plays, only q only the first song, the other songs in the list…
-
1
votes1
answer67
viewsAdd admob after a Listview in a Relativelayout
Goodnight! I’m trying to add an admob to the end of a Listview in a Relativelayout and the banner doesn’t appear at all! I’ve tried several different ways in the layout to see if Listview wasn’t…
-
1
votes0
answers490
viewsList data from an API on android
Hello, I’m trying to list data from a web API, as I’ve never listed this way I’m finding problems to understand the solution of the listing, the API Url returns some values I want to list them in…
-
1
votes1
answer132
viewsHow to initialize the components of a layout in the onCreate of a Fragment?
I created a Fragment to show a list of items, but I need to initialize two components a listview and a Progressbar on onCreate but I don’t have the reference of the layout file they are. How do I…
-
1
votes3
answers370
viewsListview with different layouts per line, according to filtered value
I have a unique table in BD, which contains the records with fields like: tipo, data, hora, cliente, historico According to the value of tipo, the field cliente is or is not mandatory, that is to…
-
1
votes1
answer128
viewsMy BD search placed in a listview (Arrayadapter) returns the object address and not the content
I made an APP that saves the date and a series of numbers (8 numbers) in the Android database. I created an object ( with date and numbers), but when I search all objects inside the database and put…
-
1
votes0
answers180
viewsDifficulty listing Sqlite result in Listview Android
I’m creating an application to train mobile development, I’m doing for Android in Visual Studio, using Xamarin. I’m having difficulty listing a result of Sqlite. I created two Activity, one to…
-
1
votes2
answers1398
viewsHow to change the background color of a Listview list item in Delphi 10
In Delphi 10 with Firemonkey, at runtime I need that when clicking on a list item of a Tlistview, the background color of this item be changed and remain so even if I click on another item. Then,…
-
1
votes1
answer42
viewsListview is showing nothing
I have the class answer public class Resposta { private String Nome; private boolean Certo_Errado; public Resposta(String nome, boolean certo_Errado) { Nome = nome; Certo_Errado = certo_Errado; }…
-
1
votes1
answer133
viewsHow to know which is the last item selected from a listview?
Hi, I have a ListView using the simple_list_item_multiple_choice, filled with a ArrayString of all Brazilian states. I need to fill the following SQL command with all the states selected by the user…
-
1
votes1
answer58
viewsListview Item Xamarin Forms being opened 2 times Custom Controls
When displaying my list and clicking on an item, it opens 2 times the same item page. public class DeliveryViewModel : BaseViewModel { public ObservableCollection<Delivery> Delivery_Col { get;…
-
1
votes1
answer62
viewsLinkbutton with Eval Listview Asp.net
I want to do this <%# Eval("campo1").ToString() == "nada consta" ? "nada consta" : Eval("campo1")%> within the linkButton <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl=…
-
1
votes1
answer304
viewsDisplay FIREBASE image in a LISTVIEW
I would like to know how to recover an image in firebase and put in a listview, I saw here some similar questions, followed the answers that are in them but none worked. I saw that a boy said he…
-
1
votes3
answers514
viewsListview Event Error ( Listview1updateobjects ), to show or hide item. ( Delphi firemonkey )
If anyone can help me, I’m having a problem in a method of a ListView, the method is the TForm13.ListView1UpdateObjects in it I do the following procedure: I check the value of an item to decide…
-
1
votes1
answer49
viewsDatabase and Listview do not work
I’m trying to create an app that records data and displays it in a Listview, and then gradually sophisticate the app, but when it comes to saving the data in the database, it doesn’t save. In Debug…
-
1
votes1
answer26
viewsError in GDI+ when selecting active frame
I have a problem when I try to split multi-page TIFF files. As I divide the files, I save each page in a temporary folder and save a JPG from that TIFF to use it as a thumbnail of the image in…
-
1
votes1
answer528
viewsHow to correctly fill a Listview with <List> C#
I have a method public List <Veiculos> selectListVeiculos() { try { using (MySqlConnection conn = new MySqlConnection(_conexaoMySQL)) { using (MySqlCommand command = new MySqlCommand("Select…
-
1
votes1
answer80
viewsListview returns only one Cursor item
Good afternoon guys, I have a problem with my project. I have a Listview that receives information from Cursor and then sends it to the Adapter, but it is only pulling a record from my database, you…
-
1
votes1
answer368
viewsUpdate Listview with notifyDataSetChanged()
Good afternoon guys, I’m not getting the use notifyDataSetChanged() to update my Listview. My application takes the data entered in the database and lists in the registration page, soon after, if…
-
1
votes1
answer50
viewsSearching Listview using Edittext and Cursor
Good morning guys, I would need to ask a question. I have an application where I have a ListView that pulls the information from the database, and would like to make a search field in which I am…
-
1
votes1
answer379
viewsError filling Listview in a thread (Delphi)
In a mobile project I have a code snippet that fills a Listview with data from a Dataset (I’m not using Livebindings). Up to a certain point everything was working fine until I decided to add an…
-
1
votes0
answers38
viewsError while removing Listview item - Android
Well, I am working on a system that puts some items in a list, in sequence, using a Dialogfragment with the list of added items I would give the option to remove these items, the problem is there. I…
-
0
votes1
answer891
viewsHow to change the focus of Edittext on a Listview?
I have a ListView with a single EditText. I used the following function to capture Enter, but how to use requestFocus() to select the next EditText? public class FriendslistAdapter extends…
-
0
votes1
answer246
viewsHow to change a list view from a Combo on VB6
I made a form with a ListView and a ComboBox, my problem is that according to what is selected in ComboBox I have to change the data from ListView. For example: I have the ListView LETTERS (which is…
-
0
votes0
answers755
viewsRemove Duplicate Items Listview C#
I would like to remove items that have the same title, as shown in the image, but would like to do after the items are listed in the listview. I couldn’t do anything because the "title" may be the…
listviewasked 10 years, 5 months ago Fernando Neves 117 -
0
votes2
answers797
viewsRecover Data from a List View
I have a Listvew, and in this, I have two buttons (delete and cancel) my list consists of the following items: ID(Textview), First Name(Textview), Last Name(Textview), and the buttons cited above.…
-
0
votes1
answer421
viewsERROR findViewById Listview Fragment
Hello, I have a problem that I can not solve, I created a list view but when "calling" in Java (has an arrow below) results in error when testing the application, this is the error: 08-04…
-
0
votes1
answer425
viewsChange object of a listview
I have a listview populated by an object, but I wanted to know if there is a way to change the object, I managed to change the view corresponding to that Object, and not to listView entire.…
-
0
votes2
answers675
viewsHow to modify and save the new modified listview item?
I would like to know how to save multiple positions from a listview. As an example, let the user bookmark certain list items. I don’t know what would be useful to get an efficient response, so I…
-
0
votes1
answer151
viewsEnable click on Listview
When I insert a ImageButton in the layout of my ListView, it is no longer possible to click on ListView, ie, the click is disabled. Is there any way to enable the click ListView when you have a…
-
0
votes1
answer565
viewsGet click id on the previous Fragment listview
I have a Fragment that loads a listview. This listview is populated with a hashmap getting the values from the bd. When I click on item 1,2,3... of the list, it opens a Fragmentb(details). How do I…
-
0
votes1
answer136
viewsDelete an element from my Listview
I need to delete an element of my Listview and I’m in trouble my code is this Host = new String[] { "Host1 ", "Host2", "Host3"}; Descricao = new String[] { "Estado do Host", "Estado do Host", "Host"…
-
0
votes0
answers33
viewsHow to put longclick menu?
Like to know, how to put those edit and delete options when we run Longclick from listview. If it is possible to at least inform me the name or give an example, I thank you.
-
0
votes0
answers567
viewsDrag list item to the side
I was going through my phone and I saw a feature that I would like to use in my apps , when I enter contacts there I pick up a contact and drag it to the left picks up an event to send sms and when…
-
0
votes2
answers353
viewsListview does not display loaded BD data
I have a query screen, where she should display the items already registered. It just doesn’t show. At first, I thought it was because the information wasn’t being recorded in the comic book, but…
-
0
votes1
answer55
viewsLeave listview item by filling the entire screen
It has to leave an item of a Listview taking the whole screen of the cell phone?
-
0
votes1
answer669
viewsAndroid - Listview with image via url, how to add one?
I’ve done several searches on how to add an image to an android listview item, I’m doing everything via JSON and by Asynctask but I’m having a hard time adding this image, someone has an example or…
-
0
votes1
answer2177
viewsRefresh Listview
When I click on my Listview, I open a dialog with 3 buttons (Edit, Delete and Return). By clicking delete, I would like to have Listview updated. At what point I must do this? public class…
-
0
votes0
answers119
viewsListview does not appear in the options
In my Eclipse, when I add a Listview, I see an empty space where it should be, it is as if it were a button, but empty and it is not possible to put it on the App screen. Maybe some file is…
-
0
votes1
answer321
viewsChange the color of the List View item if it is disabled - Android
I have a normal listview that lists the names of my users. And I would like disabled users to have the grey background of the list item. How to do this? public class Usuario { private String nome;…
-
0
votes1
answer384
viewsListview android , marks items wrong
I have a list where I mark the items as follows :view.setBackgroundResource(R.drawable.active_row), Every time I click it needs to set the color. When I click again, it arrow the dark line. So far…
-
0
votes3
answers396
viewsListview items losing color when using the scroll bar
I’m using baseAdapter: @Override public View getView(int posicao, View convertview, ViewGroup parent) { View view = convertview; ViewHolder holder = null; if (view == null) { holder = new…
-
0
votes0
answers88
viewsListview search with custom itemView
I have a listView which has two text fields (nome and local) which are removed from an object Empresa. The examples spread on the Internet only show search in listViews normal with only one string.…
-
0
votes1
answer59
viewsProblem in the organization of the data of a Listview - Basedapter
I’m having a little problem organizing the personal data of an external Mysql database. Like, I created a Infopeoplesdapter class inheriting from Basedapter where I pick up name, address,…
-
0
votes1
answer500
viewsReturn Bluetooth devices on Android
Hello, After a lot of research and study I managed to finish a class that returns me the paired and connected bluetooth devices near an Android. The problem I’m encountering is time to update my…
-
0
votes1
answer685
viewsHow to List more than one bank line in a Listview using JDBC?
How to list more than 1 database data using JDBC on a Listview on Android? I have in a user 13 lines, and would like to recover the 13 and not just 1. Below the code I use: import android.os.Bundle;…
-
0
votes1
answer1135
viewsListview with checkbox, select all and none button
I have a listview with check box I’m looking to put a checkbox on top of the list. So when I select it, I want to select everything from the list and when I click to take the selection I want to…
-
0
votes0
answers150
viewsListview for Arraylist
I have a Listview, one EditText and a Buttom. When I click on the button I want it to play what it has on ListView in a ArrayList, so that I can enter what was written in the EditText in the…
-
0
votes0
answers699
views