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
-
0
votes1
answer169
viewsWhat does it mean to underline this section of the code?
I’m trying to use a searchview along with the listview of my project, but I’m not getting it, because where I’m going to set the lisview Adapter inside the onQueryTextChange method, it appears…
-
0
votes0
answers7
viewsHow to scroll the entire Android screen that contains an Imageview, Textview and Listview? And not just Listview
Hello, everybody I need to roll a screen that includes a listview. When filling the list and it becomes larger than the screen it is normal to scroll the screen. In my case, I want all the elements…
-
0
votes1
answer65
viewsHow to take another dice instead of the String that was clicked in Listview?
I have a list of countries of the type Listview, and when I click in Brazil I get the String "Brasil" with the "getItem(position)" but instead I would like to take another data, in the case the "BR"…
-
0
votes1
answer93
viewsListview is not updating, Android
Guys, I have the code below. I created a FloatingActionButton who takes pictures of all the items that are on ListView, but the method list.getChildAt(i). isEnable is returning nullpointer. Some…
-
0
votes1
answer68
viewsHelp with Scroll Android
Guys, I have a floating button in my view that prints all the items on my listview. What happens is that when I click on the floating button it takes a picture of the first 3 items and does not take…
-
0
votes2
answers766
viewsSearch randomly in listview through editext on android?
Hello, I’m very new in programming, actually enthusiastic, look at me I’m kind of editext search the letter or word in the text so that for example if in my string is written "Mr. Jose Ventura" and…
-
0
votes1
answer175
viewscustom listview repeating last inserted
to learn, I’m trying to create a custom listview, taking values from the bank, created this Metasacvivity where I call the list method public void listarMetas() { ArrayList<Meta> values = new…
-
0
votes1
answer109
views -
0
votes1
answer119
viewsHow to pick up values from a listview on another.xaml page
I have this class that fills the values in listview. public Lista() { this.InitializeComponent(); carregaLista(); } protected override void OnNavigatedTo(NavigationEventArgs e) { } public async void…
-
0
votes0
answers309
viewsRead sqlite table and insert content in listview
I’m trying to insert the contents of a table into sqlite within a listview. The table in Sqlite is already filled, the listview was being filled with result of webservice, which also works ok, but…
-
0
votes1
answer102
viewsError calling data from a list to a registration screen
From now on I appreciate the understanding of all because I am not very experienced.I am with an error when loading the customer data from a list I want that, when clicking on add customer, I come…
-
0
votes2
answers455
viewsgetView() method is not called in the Array Adapter
I am developing an android app and I am facing the following problem, I created an Adapter to fill my Listview but fills only the header and not be entering the getView() method to fill the items in…
-
0
votes1
answer338
viewsHow do I change the image of each item in my list ?
I want to change the image of each item on my list.. how do I do ? I appreciate the understanding that I don’t have much experience. Thank you. My code Below. import android.app.Activity; import…
-
0
votes1
answer98
viewsThe last Listview item is always deleted even by deleting an item in the middle of Arraylist
I own a Adapter any and by clicking on an delete icon, the item in my ArrayList is removed. The problem is that even by removing the desired item, the ListView is updated, always removing the last…
-
0
votes1
answer1055
viewsSearch View in a Listview
I am trying to implement a Search View in a List View of my project. I saw some tutorials but I could not implement any because there was always an error here and there by the peculiarities of each…
-
0
votes1
answer90
viewsListview lines disappear when scrolling
I’m wearing a listview and populate it with a cursoradapter. When scrolling up and down the lines disappear. If I start with 30 elements, as I scroll up and down I get less... until I get more or…
-
0
votes1
answer2312
viewsHow to sort listview according to a specific column
I have a listview that shows more or less the following: ID NOME IDADE 0 Luis 19 1 Julio 33 2 Marcio 27 The problem is that when the ID comes in at 10, the listview starts to put the 11, 12, 13...…
-
0
votes0
answers1116
viewsDelphi android optimize image loading
I have a question about uploading images to Delphi. My images have an average size of 47kb, when I display them on Listview application comes to practically lock by the time of the reply. The images…
-
0
votes1
answer94
viewsHow to create a file filter by dragging in C#
I am implementing the Drag files function to fill a Listbox with the file path. It works very well, but I would like to put a "filter" making it possible only to import txt. if it is not txt should…
-
0
votes2
answers379
viewsListview with an empty and editable column
People wanted to have empty and editable cells in a column of a Listview that pulls from the SQL Server Database information to my project. To pull the information I use LINQ and I can list all the…
-
0
votes1
answer92
viewsListbox is not adding Subitems
I used the following code: ListViewItem item1 = new ListViewItem("Coluna1"); item1.SubItems.Add("SubItem1a"); item1.SubItems.Add("SubItem1b"); item1.SubItems.Add("SubItem1c"); ListViewItem item2 =…
-
0
votes0
answers39
viewsAndroid Listview - item selection/unselection
I have an application that has a custom Listview. When you click on an item in this Listview, the background color changes to indicate that it is selected. In the same Activity I also have an…
-
0
votes1
answer339
viewsUse values passed from one Activity to another
Guys, I’m having a hard time with something. I created a list that shows contact names, but these contacts have more attributes, such as date and number. I made another screen for when the person…
-
0
votes0
answers175
viewsAndroid Listview does not display the first item
First thank you for trying to help, come on! I own a project made in Android Studio where it contains a custom Listview that I used along with my INTERNAL database. After the project has evolved, I…
-
0
votes0
answers40
viewsListview does not present first item on android
Hi, how are you? i have a problem using android listview, I realize that it shows only from the second item, and in case of only one item in the list it shows nothing. I’ll show you my codes…
-
0
votes0
answers158
viewsLearn which checkboxes are selected on Adapter and perform operations on Activity based on selected checks
Hello, I have a list (Listview) and when I select option 1 in my spinner it from Visible in the framelayout to show on the screen a checkbox to cadad list item with status 0p, I wanted to know which…
-
0
votes0
answers55
viewsHow to read dynamically created components inside a Listview
I created a list of questions that I received from an api, so I created these questions dynamically, I didn’t use.xml layout, it was all by programming. Now I would like to know how I can read the…
-
0
votes0
answers34
viewsError when selecting the second data/Listview information
I’m developing a applying and I am stuck in the following process. The application is called "INFORTGEI" and is for a computer store. When we run the application we can observe a form/main…
-
0
votes1
answer792
viewsSet Image to Button inside Listview Xamarin Forms
How to set another image for a Button that is inside a ListView by . Cs or in ViewModel ? I can’t access that Button no . Cs for being inside the ListView. In my Xaml, the button already has an…
-
0
votes1
answer252
viewsrecover item position in listview
when the person clicks on item A in the fragment categoria I would need to take it to an Activity. And when I click on item B take it to another Activity, so I can make the filters. Here the class…
-
0
votes3
answers99
viewsCustom Listview with Picasso
Good guys, I’ve done this topic~>Listview images and quantity - Android They gave me some tips and now I’m remaking him like they told me. I made a custom Adapter for listview. public class…
-
0
votes1
answer1326
viewsInsert more items into an Android Listview
I am a beginner in Java/Android programming, and would like a help with adding items to a Listview. The app receives the first 5 records from a Json (Url), and adds in Listview, so far, all right.…
-
0
votes2
answers536
viewsConcatenation of an arrayList into a listview?
I wonder if there’s a way to add "strings" to be exhibited in a listview so that I don’t have to be imposing conditions and more conditions and set again the "strings" already used: package…
-
0
votes1
answer51
viewsCommands below setAdapter being executed before getView()
I’m creating some Adapters in my app and I’ve come up with this question in a problem I’m having. I have a code like: public class ActivityCompra extends AppCompatActivity { Adapter a; @Override…
-
0
votes0
answers343
viewsList data in an Android Listview
I have a question when it comes to listing specific data from a table in a ListView. When I use a method to list, I can get all the records from the table, only I would like to filter this data by…
-
0
votes1
answer392
viewssetOnClickListener Adapter on a Listview line object
My app has a Listview, in which you receive information from a Json (URL), and each line has an Imageview that when you click, the line information will be added as "Favorite". For this, I created…
-
0
votes1
answer177
viewsHow to make a Binding data in a Listview in Xamarin.Android?
I’m trying to do fills a listview with the data from a table, but so far I didn’t understand how to make the Binding date on it. XML; <?xml version="1.0" encoding="utf-8"?> <RelativeLayout…
-
0
votes1
answer120
viewsHow to modify a Listview present in another Activity without using Intent?
I created a listview in the initial Activity of a project, and would like to know how to modify it from other activitys, without having to use the "Intent.". Activity01 (where the listview is):…
-
0
votes1
answer223
viewsOnly print the first element of Arraylist
My problem right now is to print the various elements that are inside an Arraylist I created. How my app works is as follows:: I use a Cursor, and I will fetch the table information from the…
-
0
votes1
answer40
viewsAndroid, Onitemclicklist with Listview variable
In this code I have a list that keeps updating and adds another line in listview, however, I need her position to be able to exclude her from the vector. It turns out that there is an error with the…
-
0
votes1
answer54
viewsListview does not respond with background effects when clicking on item
listview code <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"…
-
0
votes1
answer641
viewsAttempt to invoke virtual method android.database.sqlite.SQLiteDatabase.rawQuery(java.lang.String, java.lang.String[])' null Object Reference
Okay, I’m new to Android and I’m developing a somewhat complex application for a course completion. At the moment the problem is to display a listview with information from a local database…
-
0
votes1
answer79
viewsWhen filling Listview it becomes empty
This is a shopping cart screen, where the product purchased is added to a Listview using an Arraylistadapter. So far everything is working. However, each product contains a list of additional and/or…
-
0
votes2
answers53
viewsHow is it possible to condition or check an item in a listview?
How to condition or check an item in a listview? I have an Array with some names, I would like to identify the name clicked so I could make a condition, for example I clicked on "Andrew Murray",…
-
0
votes0
answers208
viewsListview Databind Xamarin Forms
I’m creating an app with Xamarin Forms. The app has a student profile screen where I need to display the Model phone list. It turns out that when I do listview Binding, all the other form bindings…
-
0
votes1
answer95
viewsHow to get data from this Json?
I need to get the name, Distance, photo and id, which are within "date" and also need to get the route_id that is inside "ride". This will be populated in a listview that contains these first data.…
-
0
votes0
answers217
viewsRepeated items with different amounts in a Listview
I have a Listview (lsvProduct) with some items that comes from a request and an Edittext of amount that the user can change (by default, I bring the value of 0). By adding this item, I send it to…
-
0
votes0
answers70
viewsReplacement for onGetView on the Holder
I’m having trouble with onGetView when I have a large list of items and change for example the amount of one of them, and roll the page it is setting this number for another item. I tried to do…
-
0
votes1
answer68
viewsMethod setEmptyView is not working on my listview
I am setting the setEmptyView method in my listview but when it is empty it does not show the desired view, and also does not give any error in the log. public class ListaNotificacoes extends…
-
0
votes0
answers67
viewsHow to maintain a radiobutton marking when scrolling a listview?
Good afternoon, I have an edited listview and inside it I own a radioGroup. I need that when scrolling the listview, the marking on the radioGroup does not lose its marking. Follows the xml.…