Questions tagged as 'android-adapter'

1
answer

How to return focus on an EditText after a notifyDataSetChanged () in recyclerview?

The problem is with notifyDataSetChanged () when I update the recyclerview the EditText loses focus I wanted it not to lose focus, I already tried with requestfocos it does not.     
asked by 23.03.2018 / 22:04
1
answer

NullPointerException while executing ListView.setAdapter (Android)

I'm implementing an application where I need to display a list of Dogs (already registered in the DB) and allow clicking on an item in the list to display a new activy to edit the data. The problem is that I'm getting a NullPointerException w...
asked by 03.11.2017 / 20:40
3
answers

When I roll my listView I lose the checked checkboxes

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, so as not to lose their data, because when I roll my list view my checkboxes uncheck them alone....
asked by 03.08.2017 / 01:38
1
answer

How to call a method in the fragment through the listview adapter

I have a fragment that has a listView inside it and inside the lisview has a button. The button has to delete the listview item I've already done a method within the onactivitycreated, but it gives error of "Java lang null pointer" frag...
asked by 30.05.2017 / 02:21
1
answer

Error fetching SQLite ID from Spinner

Book object public class Livros { private int id; private String nome; public Livros() {} public Livros (int id, String nome) { this.id = id; this.nome = nome; } public int getId () { return id; } public int setId (int id) {...
asked by 14.09.2016 / 00:21
1
answer

How to create a custom filter in the android lestview that looks for words after the space character

In this code the filter is working until the first word. From the moment I type the space character the filter stops working. Example: Search for "Steve Jobs", the system gets lost. Now if you search only until "Steve" it returns right. ArrayL...
asked by 31.10.2016 / 14:35
1
answer

How to give a list of images the behavior of a RadioGroup?

I have 2 image vectors, one for the normal image and one for when it is selected. When selecting an image in ListView I need the other images not to be selected. I have tried in many ways and this was my last attempt: Activity.java:...
asked by 26.06.2016 / 22:45
0
answers

How to sum the values of an Edittext that is in a list by means of an adapter?

I have an application with a dynamic size list, which works in conjunction with an adapter that contains 3 EditTexts, in which I name value1 , value2 , and > result respectively. The functionality is very simple and very dynamic: valor1...
asked by 24.05.2016 / 15:26
0
answers

Group items from recyclerview by item.time similar to facebook messenger

I'm trying to create behavior similar to what happens in Facebook Messenger, when sending several consecutive messages, so I created several background drawables with border radius different to be applied to recyclerview items an...
asked by 19.01.2016 / 15:52
1
answer

How to use an array inside getView in an adapter?

This is my problem, I'm passing a sequence of arrays to an adapter that should be placed inside a listview, of which I have a two-dimensional array called materials: public View onCreateView(...){ ... } @Override public void onActivityCreated...
asked by 04.12.2015 / 05:48