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
answer1621
viewsHow to customize a listview (scrolling)?
Given an Activity that has an Adapter to fill a contact list: If possible wanted to get the following result as in the image below: When scrolling up and down, show the initial letter of the element…
-
1
votes1
answer494
viewsDisplay an Image via URL
I have an image on the link http://187.45.142.241:8080/umamaoNovo/images/u184Tulips.jpg I wonder if it takes any function to display quick post need to display images in a Listview.…
-
1
votes1
answer201
viewsMake Listview background color invisible when using scrollbar
In my application has a listview and when I roll the scroll bar the background turns white , wanted to make invisible , no color leave only the color that is already at the bottom of the…
-
1
votes1
answer88
viewsCreate id for a new Listview?
I have the following problem, I already have a listview and I want to create another, but is giving the following error: <ListView android:id="@android:id/listView" <----- ***Error: No…
-
1
votes2
answers16877
viewsHow to pass data from one Activity to another
I am creating an app for pizzerias in my city and would like to know if it is possible to send data of a Listactivity that contains pizza names for another Listactivity named favorites, so that…
-
1
votes1
answer4475
viewsEdit item within Listview
Hello. I am working on a code that loads items inside the Listview through a Adapter. Within each item (item_list.xml), I inserted two buttons being one to delete the item and another to edit. The…
-
1
votes0
answers1773
viewsProblem loading an android app news feed?
Well, I’m having trouble with an app that shows a news listing, on some smartphones where the list was supposed to appear with the news the screen is blank, I searched on the internet and found that…
-
1
votes1
answer393
viewsHow to keep listview item loaded
I have this listview main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent"…
-
1
votes1
answer863
viewsLoad listview lines from an Opendialog
I need to load items from a text file into a Listview using Opendialog, how to precede? Is there any property LoadFromFile?
-
1
votes1
answer601
viewsDisable checkbox checked in listview
I added in my ListView the checkbox his pattern "Listview Checkboxes", when he is checked I need to disable the same so that it can no longer be "check", I tried to make the checkbox be as Enable…
-
1
votes1
answer63
viewsTextview does not update text inside an Arrayadapter
I am trying to update a text in a Textview inside the Adapter. The text is visually not being displayed even using notifyDataSetChanged(). I use other visual ways as for example enable disable…
-
1
votes0
answers188
viewsArraylist<Hashmap<String, String>> in a Base Class
I have the following Arraylist: ArrayList<HashMap<String, String>> menuItens = new ArrayList<HashMap<String, String>>(); for (int i = 0; i < 6; i++){…
-
1
votes1
answer415
viewsInserting Textview into a Listview
I have a problem. I need to insert a textview inside a listview. Follows the basic method class MyKickAssAdapter extends BaseAdapter { LayoutInflater mInflater = LayoutInflater.from(getContext());…
-
1
votes1
answer757
viewsImage in listview with Sqllite / Drawable
I have an app that does a corporate phone search on a Sqllite database. It’s working normally, but I need to get some image into some of these companies. The database field would be only the image…
-
1
votes0
answers147
viewsListview loses state of lines during scroll
I own a ListView and I use the following layout for Adapter: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/llContainer"…
-
1
votes1
answer652
viewsListview displays only one line, why?
I have a Listview in a layout with more items, and it only displays one line. If I do the same scheme in a code that the layout has only Listview it works perfectly, if anyone has any idea why I…
-
1
votes3
answers101
viewsIs it possible to put Abels in Listview?
I have several ListView's that I use for browsing, and put as content id's. So, a list that should present country names, is showing the country id. Is there any way to keep those id's list but…
-
1
votes1
answer466
viewsHow to change color a Listview item based on the "onActivityResult" response?
lv = new ListView(this); adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, android.R.id.text1, vetorNomes); v.setAdapter(adapter); I have a list of names, when I…
-
1
votes0
answers87
viewsCreating an infinite Listview?
I’m trying to create an infinite Listview to go looking for information on my web service from 10 to 10. For this I am trying to use this example:…
-
1
votes3
answers97
viewsHow to make "Adapter.getItemPosition" take only part of the String and hide the other part when presenting Listview?
I have a listview that returns two strings for each row. The code and the name of a country, I would not like to present the code but I need it for when the user clicks the line take the code and do…
-
1
votes0
answers63
viewsListview, error while scrolling
I created a custom listview and added 20 items, when I open the emulator, I can only "scroll down" to item 15, from there, the emulator stops working. Any suggestions? E/Inputeventreceiver:…
-
1
votes2
answers724
viewsHow to change the color of a Listview item while it is being pressed?
By default, when you click on an item, it changes color at the time of the click, but I changed my listview and this click is not working. Does anyone know how to implement it if it is some ready…
-
1
votes1
answer124
viewsSharedpreferences within each Listview item
Let’s get to the point: I have two items in my ListView: Item 1 Item 2 Inside each item has a calculator that stores the result. Whereas: Item 1 = 0 Item 2 = 0 In the calculator that is in item 1, I…
-
1
votes1
answer1138
viewsRemove item from Listview
Well I have a list, in which there are some items that the user himself creates. With this I am also wanting to give the user an option to remove the items not to get accumulated, so I searched and…
-
1
votes2
answers125
viewsHow to receive two data in a listview but present only one and use the other in the click?
I have a listview where I list people’s names and when I click on a person I use the adapter.getitem(position) who takes the person’s name, however, I needed to get the person’s id and not the name.…
-
1
votes1
answer287
viewsError while trying to fill a listview
I’m trying to fill my listview like this historicos=banco.getAllH(); ArrayAdapter<HistoricoObjeto> itens = new ArrayAdapter<HistoricoObjeto>(this, android.R.layout.simple_list_item_1,…
-
1
votes0
answers100
viewsHow to maintain the position of a Listview when an item is changed?
How to maintain my position ListView, containing a EditText, when the value of this EditText is amended? Call from the class that fetches the data in the database: /* Instancia da classe…
-
1
votes0
answers99
viewsListview inside a Cardview
I have a question, I need to make a layout similar to that of the prototype: This layout is dynamic, the item that is in the first line (parent) can have several items of the following lines…
-
1
votes1
answer642
viewsHow to display a json return in a listview
I’m trying to return a json that result from a select made in php (web service) to my application. The select is here: mysql_connect('localhost','root','ugauga'); mysql_select_db('noise') or die…
-
1
votes2
answers1486
viewsConvert a bitmap image to a URL and set in Imageview
Well I would like to know how to set a URL in an Imageview variable, I do not know if I was clear? private final DisplayImageOptions options; public NoticiasAdapter(Activity activity, List objects)…
-
1
votes0
answers30
viewsI can’t create a listview in google maps API for Android
I’m creating an Android app with Google Maps API that allows me to map accessibility problems of the streets of Rio de Janeiro. My program today allows the user to perform N map demarcations, look…
-
1
votes0
answers275
viewsHow do I view downloaded images through the URL in a Listview?
The code I have so far is as follows:: import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; import…
-
1
votes2
answers92
views"Refresh" from Fragment co listview
I have a Fragment that, clicked on a RadioButton, a route is calculated, after this route calculation, a ListView with the results. By clicking on the other option of this radiobuttom, the routes…
-
1
votes3
answers534
viewsHow to access view components that are inside a Listview Xamarin Forms
I need to access the properties of the components created on View to set some values (example height and width), but are within a ListView, with that, in the .cs I can’t give This.Component even…
-
1
votes1
answer894
viewsTake the id of the textview that is inserted in the listview and put in the bd
I have a layout with 2 lists, one complements the other, category and subcategory I would like, when inserting a subcategory by clicking add feed the database with the id of the category that is on…
-
1
votes1
answer351
viewsAndroid Listview customized in a Fragment
I have an app layout was made in tabs and in one of them I would like to implement the ListViewcustomized, but I could not because the JAVA class tab extends the class fragment and to make the list…
-
1
votes1
answer225
viewsUse Itemcommand in C# of a listview
I’m working with a ListView in which it presents the items in a disorderly list and as links. Under the ListView has the "CREATE" button to insert a new item into ListView. I managed to get that…
-
1
votes1
answer199
viewsHow do I get the listview style effect?
I have a layout and in it I want to display the data in this ListView but I need it to have a white background with no stripes and no click enabled when it’s touched. I can do it this way??…
-
1
votes1
answer63
viewsgetView is not being called but getCount has items in Listview
I’m having a problem with a Listview that isn’t loading the values. That’s my situation: I have an application that at a certain point opens a Tabbar with 2 Fragments and inside one of these…
-
1
votes0
answers31
viewsHow do I access a pdf file stored in R.raw on android SDK?
I think some information is missing to make the pdf file appear in my app. I used the following line of code within the Oncreate method: PDFView novo = (PDFView)findViewById(R.id.pdfView);…
-
1
votes1
answer225
viewsHow do I limit the number of lines in a listview
I have a listview that is adapted with a cursoradapter ...it selects everything from the database and adapt in my listview .... but I wanted to limit the amount of lines that appear on my listview…
-
1
votes3
answers303
viewsWhen I roll my listview I miss checkboxes marked
This is a code from my Adapter, in it I have a textview and 4 chekboxes. The problem is that I believe I have to save the status of my checkboxes, not to lose the data from it, because when I roll…
-
1
votes0
answers129
viewsView Image List View
I have a screen, which through a List View, display a photo per register listed. <td class="col-md-1 text-center" style="vertical-align: middle"> <asp:Image runat="server" ImageUrl='<%#…
-
1
votes1
answer41
viewsHow do I set a list of images in the listview -> imageview from the page url?
The problem is that whenever you have a new image on the specific page I have to update the application with the new URL of the image set on the page.
-
1
votes1
answer691
viewsListview is catching up
I’ve been ListView layout.xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"…
-
1
votes0
answers218
viewsListview does not return firebase data
I’m trying to popular a listview, but I didn’t succeed. I even tried to follow what happened by the android monitor, and I realized that it is "populating" the listview with null data, as seen in…
-
1
votes1
answer164
viewsDragging Listview item
Would anyone happen to know how to drag a Listview item one way or the other? Preferably a way that serves Cross-Platform Android/IOS
-
1
votes1
answer40
viewsHow to change Toolbar while clicking along a Listview
I’m a beginner in Android programming and would like to ask a question. I have a Listview that is connected to a Sqlite database. My question is: how could I make so that when the user took a long…
-
1
votes1
answer541
viewsList grid and list view with bootstrap 4
I wonder if I can do that effect that click on the icon above and the thumbnail switch mode list to Mogo grid with bootstrap 4 I’m searching the internet some ready example but only bootstrap 3 find…
-
1
votes0
answers64
viewsGet a value from the column of a Listview Asp c# by clicking on the link a
I want to get and move to another page a value from the listview column. The Listview fields: ID: 01; Name: Daniel; Field: field; <%# Eval("campo").ToString() == "nada consta" ? "nada consta" :…