Questions tagged as 'android-adapter'

3
answers

List of questions, each question with a list of answers

I'm implementing a question and answer application. For my listing I'm using a RecyclerView where I load several CardViews (from loading a list). Each CardView shows one question. Below the question text I want to show my list of alternatives...
asked by 27.11.2015 / 20:56
2
answers

Create a Generic Adapter

Good Night! dear, I'm with a doubt, has anyone ever come across the situation of having multiple lists but with similar information? a simple listing of information coming from the service? I wonder if it's possible to create a generic Adapter....
asked by 12.11.2017 / 02:31
1
answer

Save state of a CheckBox

I need to save the state of my CheckBox, they are inside a Spinner, and every time I open the Spinner it clears the CheckBox. AdmList.java final String[] select_qualification = { "Todos", "1", "2", "3", "4",...
asked by 13.09.2017 / 19:22
0
answers

Event triggering multiple times when using RecyclerView [closed]

I have a problem with working with RecyclerView . My Adapter has the following code: public class CustomAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { private List<String> list; private ViewHo...
asked by 04.07.2016 / 23:16
2
answers

How do I delete a certain data from a listView?

The app has two buttons that when clicked add an item to a listView (bow and sword), but would like that if the item of each button was already present in the listView, it was deleted. package genesysgeneration.list; import android.support.v7...
asked by 17.02.2017 / 00:55
2
answers

ListView Doubt

I have the following code where I am in doubt as I do to display the list on the screen, I have already tried in several ways and I have already done several examples of the internet I could not find a correct solution to my problem. The error...
asked by 28.09.2017 / 05:19
1
answer

ListView Background Color in Zebra

I have a layout with two EditText and an ImageView that will be added to the ListView via BaseAdapter. I wanted to toggle the background color of the ListView in zebra. The problem is that if the ListView has more than 9 lists the zebra effect s...
asked by 02.05.2015 / 22:13
1
answer

Remove child from an ExpandedListView

Hello, I would like to know how to remove a subitem from an ExpandedListView, in other words remove the item from the adapter, the adapter receives a Map<Categoria, List<SubCategoria>> and then give a notifyDataSetChanged()...
asked by 04.04.2016 / 22:02
1
answer

Popular ListView with ArrayAdapter

I need a ListView popular. I have a class that represents the Entity Cliete , a class that is responsible for database persistence and finally a ClienteDAO class, which persists the data of the Cliente entity. Follo...
asked by 12.06.2014 / 01:41
1
answer

How to get the reference to the ListView from a ListFragment?

I have a ListFragment trying to access the ListView where Adapter has inserted the objects, but findViewById is returning null , does anyone have any ideas? The fragment code in XML: <?xml version="1.0...
asked by 04.05.2017 / 17:15