Questions tagged as 'listview'

2
answers

Edit item from a listview

I would like to know how you can modify an item x of a list view through the java code ... I have the entry class object class: public class Lista_entrada { private String textoEncima; private String textoDebajo; private String...
asked by 31.03.2017 / 04:15
3
answers

pass data onItemClickListener in in ListView loaded with JSON to show them in another activity

I need to control the click on the custom Listview so that it performs an operation depending on which one is pressed. I already have the OnItemClickListener. But, how can I pass the data contained in the Item to another Activity? I leave...
asked by 26.11.2016 / 17:46
2
answers

Scrolling through listview scroll delete edittext data

Good morning afternoons I have a listview that I fill with a custom adapter in which I have an edittext so that the user can put a quantity, the problem is when I have more than 5 rows in my listview and enter in the first one, and I scrol...
asked by 16.06.2016 / 21:39
1
answer

Return in a ListView information of 2 models filtered by the authenticated user

Hi, I'm new to django and would like to know how I can return the information of an authenticated user of 2 models in a ListView This is my code: models.py from django.contrib.auth.models import User class ModelOne1(models.Model):...
asked by 20.08.2018 / 17:35
1
answer

How to prevent a listView from returning to the beginning when updating its adapter?

My problem is as follows. I have a ListView that is completed from data obtained in a mysql query by means of volley. This task is performed once per second by means of a timerTask. The ListView returns to the first item once per second (each ti...
asked by 20.03.2018 / 20:27
1
answer

OnItemClick () for multiple views in a ListView

I have a% custom% co within a snippet, which takes the data from ListView . In each row of CursorAdapter there are several ListView , one TextView (a check box) and a button. What I want is to attend to the clicks of...
asked by 03.12.2016 / 19:03
1
answer

Error executing code with ListView, SelectedItems

I have an application which consumes several web services. What I'm trying to do is once this service is called, which should give me a list of project names, I'd like to add them to a ListView and that the user can choose which projec...
asked by 10.10.2016 / 17:21
1
answer

Error trying to insert dynamically in lists of c # (You can not add or insert elements in more than one site)

Well now I want to fill a listview with information from my Database, but I get the following error:    Can not add or insert item in more than one site. You must first   remove it from its current location or clone it. Current Code:...
asked by 08.04.2017 / 00:28
2
answers

Delete an item from ListView and DB SQLite with OnItemLongClickListener

I'm trying to delete items from a ListView by keeping the click, which works but when I go out and go back into the activity, I reappear the items I deleted. I think this happens because I do not delete the element also from the Data Base,...
asked by 21.12.2018 / 14:04
2
answers

go from one fragment to another when selecting an item from a ListView

When executing and doing click on the item of listview the app is closed. Any ideas to solve this? The list is in a fragment, and I want to go to another fragment I leave my code public class DiezFrut extends Fragment { //...
asked by 18.01.2017 / 00:57