Most voted "android-adapter" questions
Adapter on Android is an object that bridges the gap between an Adapterview(e.g., Listview) and the data set it shows. Provides access to items and is responsible for creating a View for each of them.
Learn more…122 questions
Sort by count of
-
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
votes0
answers92
viewsReading an editText - Android Studio
I have a app where a json is read and returned in a list all items in this json. I’m using the ADAPTER to do this, I put a EditText on the screen, this editText is replicated to every json read…
-
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
answer726
viewsPopular Spinner
In my application I have a method returns a list of customers. How do I popular a Spinner only with the names of customers contained in the List?
-
0
votes1
answer124
viewsList Adapter duplicating positions in Listview
I have a class called "Adapterlistplayers" that extends the class Basedapter and in it I inflate a layout that contains a Checkbox and an Imageview. Class Adapterlistplayers public class…
-
0
votes0
answers259
viewsProblem with animation loading more items in recyclerview
I am applying an animation in displaying items in my recyclerview, however when I load more items, the last item in my recyclerview is animated again in a strange way. Here are the snippets of my…
android animation android-adapter android-recyclerviewasked 7 years, 11 months ago ThiagoFerreiraS 1 -
0
votes1
answer180
viewsSearch Data in a Listview with Arrayadapter
I have a listview with Jsontask to search in my database is everything OK. In this listview I have several fields, Plate, Brand, Model, Year. etc. I saw some examples on the net but it is for simple…
-
0
votes1
answer185
viewsListview update does not work
Hello, Can help? On the search screen is returning the data from the previous research plus the new research performed. Listview does not update only with new search return results. I’ve used the…
-
0
votes2
answers488
viewsDelay in loading Recyclerview
It is normal to take 3 seconds to load a recyclerview with data of 16 thousand records in sqlite? Is there any way to optimize the load? Code here…
-
0
votes0
answers213
viewsList Adapter does not update after removing
The situation is as follows: I have a SeparatedListAdapter and with it I create 3 sections for my listview. Inside the sections, add 3 Adapters and 3 ArrayLists. The problem is that in each of the…
-
0
votes0
answers374
viewsChange item color - Recyclerview and Firebase
I need to change the color of a Linearlayout, as a query to Firebase. Bank structure: USUARIOS - ID_USUARIO ---AGENDAMENTOS -----nome: João -----lastview_usuario: "1506816888384"…
-
0
votes1
answer174
viewsHow to add an item to a listview when a button-click event occurs?
Guys, I want to create a list of tournaments. Where each item will be added at the click of a create tournament button, following the pattern: tournament 1, tournament 2, tournament 3 ...
-
0
votes1
answer185
viewsExpandablelistview - change background color of header title group
I need to change the background color of my Expandablelistview header group to a green color. Anyone have any ideas? Expandablelistadapter public class ExpandableListAdapter extends…
android android-layout android-fragment android-activity android-adapterasked 6 years, 8 months ago Wallace Baldenebre 114 -
0
votes0
answers42
viewsError adding Pageviewadapter to Google Maps Android API
It has three (3) buttons and a (1) tab with two (2) buttons on the map, like this that I add the code to create the Pageadapters I get error and I don’t know how to solve. ERROR: 03-15 03:50:23.990…
-
0
votes1
answer62
viewsList returning null values
I am doing an item listing, in this listing I bring the following information id, idPostagem, description, nounUsuario and photoUsuario. Soon after setting the values, I checked them and I am all…
-
0
votes0
answers26
viewsClick on the Recycleview Item
I have a project and use the Navigation Drawer As layout, and inflate all fragmentos, well there was the need to have RecycleView, in it I get the result done by a select, only I also need it to be…
android android-studio android-layout android-fragment android-adapterasked 5 years, 6 months ago Ari Melo 131 -
0
votes2
answers73
viewsLine limit in Recycleview
I have a RecycleView which returns many lines, configure the layout_height for a specific size, more than one cell phone to another the amount of line increases or decreases, I would like to adjust…
android android-studio android-layout android-activity android-adapterasked 5 years, 6 months ago Ari Melo 131 -
0
votes0
answers21
viewsBring values from a Text file to a Listview in Android Studio
I have a file . txt on my phone with the following layout: 123;ManoelEntulhos;Simples;AAA-1111; 456;MateusEntulhos;Comum;BBB-2222; And I want to show him in my Listview this way: 123 ManoelEntulhos…
-
0
votes0
answers11
viewsDo not use onItemClick
I would like to use the onLongItemClick method . addOnItemTouchListener, but only him. I don’t want to use onItemClick because it disturbs another way I use to click on the list item (through…
-
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
votes3
answers604
viewsRecyclerview adapter: problem when changing the color of a button
I’m using RecyclerView and putting together a list of buttons. I can change the color of button according to a if, if the condition is true it changes, but when you go up and down the list, you end…
-
0
votes0
answers132
viewsAndroid recyclerView - create fields dynamically
How do I create fields dynamically in a RecyClerView? I’m trying to insert a RadioButton I can’t do it manually. All the examples I found, shows that you have to first create an XML layout in order…
-
0
votes1
answer93
viewsHow do I make a recyclerview of mine appear on a tab instead of fixed on main?
I created a recyclerview on main which is ok, tbm I created 2 tabs which are ok. But when I change between tabs the Recycler view is fixed on the screen instead of just appearing in tab1. A friend…
-
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
votes1
answer471
viewsListview does not load all items
I’m using Listview in my project, it was duplicating the values, until I put the ELSE of this condition: if(convertView == null)... else... After this it stopped duplicating, but also stopped…
-
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
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
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
answers131
viewsProblem with Recyclerview
I have the following problem, I have a screen where I display a list using a Recyclerview, until then it works well, then when I use the view Scroll it creates "spaces" blank in the list ... private…
-
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
votes1
answer242
viewsI am trying to add a Listview inside a Viewpager Ragment and returns me the following error. Any suggestions?
3-22 17:00:33.850 24857-24857/br.edu.br E/Androidruntime: FATAL EXCEPTION: main Process: br.edu.Unilab.intercampi, PID: 24857 java.lang.Nullpointerexception at…
-
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
answers23
viewsHow to consume data online in an Adapter
With this Adapter code below I created a gallery that works without problem, but instead of consuming the images of Drawable I want you to consume the images that are on the web. Does anyone know…
-
0
votes1
answer49
viewsEN (Spinner) Firebase Exception: Found Conflicting getters for name: getAdapter
I am making an application where I choose a number in the spinner and write that number in Firebase. this giving the following error: details about the spinner and how I’m recording in firebase…
firebase android-adapter spinners getters-setters realtime-databaseasked 7 years, 7 months ago Garcez 31 -
0
votes1
answer528
viewsHow to click items from a list in Android Studio?
For now my code is like this ? how do I implement the click of the list items the click would open a new screen ListView lista_teste = (ListView)findViewById(R.id.lista_teste); String[] dados = new…
-
0
votes2
answers49
viewsChange the color of a list according to a certain variable
I’m trying to get my schedule list to have each line with different colors for each category that was defined, this list is filled by data recovered from firebase that goes to the model class,…
-
0
votes2
answers925
viewsRecyclerview does not show data
I have a problem that, I try to show the data of a Recyclerview that I take the data on the web (until then ok), I receive the data and when I set the Adapter in Recyclerview nothing happens, follow…
-
0
votes1
answer88
viewsError Search View in Custom Adapter
Hello, I’m having a hell of a doubt how to put a search view on a custom Adapter.. I’ve been trying for days and I can’t. This following code that I am using is giving error when starting, I…
-
0
votes1
answer210
viewsUse Searchview to search for a populated model class with firebase
Good night ! I am stuck in a problem, in this I have a list of items I receive from firebase, in this list I have visibly 3 attributes of the model class (idAtivity, title and time), thus, I would…
-
0
votes1
answer414
viewsHow to search Searchview actionbar for Recycleview data using Kotlin?
Follows code below: class MainActivity : AppCompatActivity(), SearchView.OnQueryTextListener { var list = ArrayList<Shop>() var adapter = ShopAdapter(this, list) var imageModelArrayList:…
-
0
votes0
answers68
viewstwo listview on the same screen but only one appears after execution, helps
I’m trying to make a screen for an app, where I want to put a text, a listview and then one more text and another listview. I made the codes, but at the time of execution only appear the two texts…
-
0
votes1
answer50
viewsLoop loop in Listview
Can someone help me? In a listview where the data comes from an internet database I can’t let it be automatic so that all values coming are included, the only way is to add one by one, but when as…
-
0
votes1
answer317
viewsUpdate recyclerview from another fragment, in the same viewpager
I have a viewpager that contains 3 fragments, one for transactions performed,one for transactions canceled and one for open transactions. Each fragment has a recyclerview for displaying transactions…
-
0
votes1
answer235
viewsOnclick on android not working
Buenas pessoal, ok? I’m using a Recyclerview to popular my list on Android and for such have an Adapter and a view Holder. Follow Adapter source code with Viewholder public class MoviesAdapter…
-
0
votes1
answer48
viewsError when including Listview
I’m bringing the results of Mysql on Android with Textview this way: public class ListarDados extends AppCompatActivity { public static TextView data; @Override protected void onCreate(Bundle…
-
0
votes1
answer71
viewsRecyclerview Android
I wanted to make imageButton appear if item.getImprimir() == true. It seems to work ok but if scrolling Recyclerview down starts to appear problems, it starts to appear right where…
java android android-adapter android-recyclerviewasked 6 years, 9 months ago Anderson Scherdovski 85 -
0
votes1
answer162
viewsHow to migrate to the new version of Realm
Hello, I have a simple app from my news site, I found it on Github some time ago and edited it. However it stopped working on some devices (Android 5.1 up) when it was the fix found that with the…
-
0
votes1
answer134
viewsRecyclerview with JSON analysis
My PHP code generates the following JSON: { "resposta":[ { "cd_servico":"1", "ds_servico":"NOME SERVICO", "ITEMS":[ { "ds_descricao1":"DESCRICAO SERVICO", "ds_descricao2":"DESCRICAO 2",…
-
0
votes1
answer79
viewsExpandablelistview: Change header title by clicking an item in the list
I need to get the name of the items in the Expandablelistview list, and settar header according to his position, but he’s only getting the last one. Below is my code: Mainactivity public class…
android android-layout android-activity android-adapterasked 6 years, 9 months ago Wallace Baldenebre 114 -
0
votes1
answer623
viewsDelete recyclerView item from Adapter
I’m trying to apply a feature by clicking on an icon inside a Recyclerview list. By clicking on the icon, I record the acceptance of the condition, if not accepted, the "whole item" should be…