Questions tagged as 'adapter'

1
answer

Return onClick value of an Adapter - Android Studio

Hi, I have a question about how to return a value to my Main activity In my Adapter when clicking on a carview if I get the value and I show it a Toast but now I want to return that value to my main activity ... any idea of how to do it! ??...
asked by 24.09.2018 / 03:49
0
answers

Use Recyclerview in fragments with data from a BD

I am new to programming, I have a project in which I have been trying for a long time to "inflate" a recyclerview in fragments with Sql data. I appreciate your help ... I will try to detail as best as possible: I work with an activity of a libra...
asked by 30.08.2018 / 04:00
1
answer

Problems with Spinner setOnItemSelectedListener

I have a Spinner with a custom adapter. When giving on a number the setOnItemSelectedListener does not answer me, I think the problem is the focus that goes to my custom adapter and I do not know how to deactivate that, if someone helps me by fa...
asked by 17.07.2018 / 22:51
0
answers

How to pass the data from my TextViews from one RecyclerView to another activity?

I have an application with a recyclerview made with cardviews, and inside the cardview I have a textview where I store the likes that I give to each pet. The problem is that I can not get the connection between the adapter class and the class in...
asked by 25.04.2018 / 15:03
1
answer

Use items from my Adapter

Hello friends, I am working on filling a recyclerview. I do this using volley, consuming a rest service, until here everything is fine, but I have to change the color of the cardview depending on a data that is sent to me from the service. How c...
asked by 02.05.2018 / 20:19
1
answer

Options 1 to 10 in a recyclerView

I am asking a rating question with options from 1 to 10 but I have a problem in the "setOnClickListener ()" event to set the background if it is selected or deselected by the position that the onBindViewHolder () method of the RecyclerAdapter gi...
asked by 04.07.2017 / 23:57
1
answer

Android 2.3 Gridview with BaseAdapter in AlertDialog

Hello again, community. How do I put a GridView in an AlertDialog and "read" the number of the item I have selected? I have searched for all lares and as always "Copy Paste", poorly explained or incomplete. But from so much searching and g...
asked by 22.03.2017 / 18:44
1
answer

Custom adapter

hi what I hope you can help me I have an activity with three spinners, 1: with the option of quantity (numbers), 2: with products and 3: with the price of the selected product and a button to add to the list, I have my custom listview and the da...
asked by 08.01.2018 / 07:21