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
-
0
votes1
answer84
viewsInsert a counter into Listview
I am using a Cursoradapter to fill my listview, within each item of my listview there are two buttons, one to add and one to decrease the value, and a textView to display this value, I wanted to…
-
0
votes0
answers118
viewsPass parameters from one Adapter class to another Activity
I need the help of Voce, create a class called Itensadapter that creates a listview with the database data, until ai blz, now I need to capture this data in another Activity to enter the quantities…
java android android-studio android-activity android-adapterasked 6 years, 3 months ago Lioni Beats 1 -
0
votes1
answer116
viewsUpdate Facebook within Pageview with Tab
Galley, See if you can help me, I’ve had this problem for two days and I can’t fix it. My app got Pagaview, Tablayou, and 3 Fragment Ok? As picture below: In my third tab I have the following…
-
0
votes1
answer111
viewsRetrieve the context of a Class (Model)
I have a model and I want to use the "Sharedpreferences" inside it. To instantiate the SharedPreferences, i need context(context), as I do to recover that context? public class PostagemCurtida {…
-
0
votes1
answer56
viewsListview of Android slow
What may be causing slowness? Code of Adaptador: public class Adaptador extends BaseAdapter{ private static LayoutInflater inflater = null; Context contexto; String[][] datos; int[] datosImg; public…
-
0
votes1
answer32
viewsAsynctask and Adapter for Listview in conflict
I’m creating a chat app using socket and after developing all the layout I decided to enter the connection part... the problem is that when I receive messages the app closes and presents some…
-
0
votes1
answer36
viewsRecover snapshot inside a node
I need to retrieve all users within a user node, follow firebase structure: To recover these values I am making an addListenerForSingleValueEvent, follows code: private DatabaseReference…
-
0
votes1
answer30
viewsPass parameter in onItemClick
I’m having difficulty passing the parameter inside the repetition for in Android Studio. It lists the data coming from mysql, but I can’t pass the parameter to access the item. for (int i=0;…
java android android-studio android-activity android-adapterasked 5 years, 6 months ago Alexandre Gomes 45 -
0
votes1
answer139
viewsConfigure Cardview in Recyclerview
I have a RecyclerView and use with CardView, the problem is that in one version of android the visualization is different from the other. I would like the visualization of android 9.0 to be the same…
android android-studio android-layout android-fragment android-adapterasked 5 years, 4 months ago Ari Melo 131 -
0
votes1
answer71
viewsSetar Adapter inside a Thread
I’m trying to list in one RecyclerView in the fragment, but the return of the list is in a thread, I don’t know if I’m doing something wrong but it doesn’t show any record. No logcat returns no…
-
0
votes1
answer32
viewsDynamically change the pattern color of a text in a standard listViewAdapter?
I have the following code: String[] hours = new String[]{ "0:00 da madrugada", "0:30 da madrugada", "1:00 da madrugada", "1:30 da madrugada", "2:00 da madrugada", "2:30 da madrugada", "3:00 da…
-
0
votes0
answers6
viewsCustom spinner not correct image arrow
I have a custom spinner, I am correctly assigning the name, but the image is repeating in all items on the list. class Server(val context: Context, var servers: Array<ServerCode>) :…
-
0
votes1
answer26
viewsVoid method returns items to the list, but when I try to use this list, it is empty!
listaPedidoComprador.setLayoutManager(new LinearLayoutManager(this)); listaPedidoComprador.setHasFixedSize(true); adapterPedidoComprador = new AdapterPedidoComprador(itensCarrinho2);…
-
0
votes1
answer225
viewsUpdate Recyclerview does not update the item in the list
I have a simple recyclerView and Adapter below where I do the CRUD before saving in BD, and everything works except the update, where I update the item by Adapter but the view in the list does not…
-
0
votes0
answers10
viewsAndroid Viewholder Classcastexception
I implemented a message listing for a chat. The Sentry is receiving an exception that occurs in production, I have tried to simulate, but without success. Error ClassCastException java.lang.Integer…
-
0
votes1
answer11
viewssetOnFocusChangeListener problem with edittext without filling
someone could help me please. I am with a problem, I made a setonfocus in my app, for it calculate and show the result as soon as the user click outside the edittext, however if the user does not…
java android android-studio android-activity android-adapterasked 3 years, 8 months ago Jonathan Castro 1 -
0
votes0
answers22
viewsSearchview with Arraylist Android Studio
Good night, I’m a beginner and I’m having trouble creating a Searchview with Arraylist. I have tried several examples or manuals on the internet but without success, I still cannot understand how…
-
-1
votes1
answer68
viewsRecyclerview reuse of View
I’m Implementing a RecyclerView as follows: class ObjAdapter extends RecyclerView.Adapter<ObjetoHolder>{ private RealmResults<Objeto> objetos; private final SimpleDateFormat sdf = new…
android android-adapter android-recyclerviewasked 8 years, 4 months ago Thiago Luiz Domacoski 7,310 -
-1
votes1
answer91
viewsComparing text of items from a recyclerview
I wonder how to compare text of items of a recyclerView on android. And if the texts are the same, render the text of the entry below GONE. public void pegarTexto (){ TextView um = (TextView)…
-
-1
votes1
answer171
viewsRecyclerview does not show list data
I have a problem that when trying to list the data on RecyclerView it does not show the records, in Debug I check that the records are entered in the list 'ArrayList', follows the code. Method…
-
-1
votes1
answer28
viewshow to filter what will appear in Recyclerview
I want to filter what will appear in Recyclerview, is possible? There is a Calendarview and I want that when someone clicks on a day from the calendarview, it shows itemviews only from that date,…
android android-studio android-adapter android-recyclerview calendarasked 3 years, 5 months ago izadora 1 -
-2
votes1
answer30
viewsI need to call an Activity through a Fragment, I looked for some answers but they didn’t work
JAVA public class Contactofragment extends Fragment { Button btnMaps; TextView txtMaps; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {…