Questions tagged as 'android-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
2
answers

listview prints repeated values

I have a listview that should print 13 fields, the problem I have, is that 7 are different and the other 6 are repeated, then I leave the code I use: Class Laws: public class Leyes extends Activity implements AdapterView.OnItemClickList...
asked by 17.04.2017 / 03:43
3
answers

Pass variable when clicking on a listView item to another activity [duplicated]

Good morning. I have this query because I am too new programming in Android Studio and I do not know where to go. I have a listView that I load with data from a database that I have on my PC and I obtain the data by a php file. That's ok, the...
asked by 22.05.2017 / 05:20
2
answers

Pass data between activitys, sqlserver

I am doing a project in which I receive data from a database, and I have reached the point of being able to list them in a ListView, with a HashMap, but here I find that I do not know how to pass them to another activity, I explain a little....
asked by 30.04.2018 / 10:24
2
answers

Pass data from one query to another activity, listview

I asked a question about how to pass data between activities, and they answered me well, but my problem now is that I do not need to pass a simple string or an integer, I need to pass a query SQLserver, put it in the intent and then pass it to t...
asked by 02.05.2018 / 10:50
1
answer

Can I make an adapter with an activity?

I'm a novice programmer and I'm practicing creating screens and other things, including a ListView. The case is that I created 3 activities, the second screen (Activity) is linked to a third one that says nothing and I wanted to take advantage o...
asked by 05.12.2017 / 02:59
1
answer

How to get the sum of a listview in android studio?

To date I have been able to add elements to my list, but I do not know the method so that in a textview the total value of my list is reflected, I have the source code in case someone wants to try it public class MainActivity extends AppCompat...
asked by 14.08.2017 / 21:20
2
answers

Refresh Activity or List (Whichever is better) Android

Hi, I have the following activity that creates a list with data brought by php and mysql . How can I make this list update every so often or refresh the activity without having to use the button something like a meta refresh?...
asked by 18.06.2017 / 01:32
3
answers

Show items from a list from the bottom up on Android

I have a custom listview in my android application, but I have a question I want to know how I show the data I add to that list from the bottom up like chat apps. Below I share my code <?xml version="1.0" encoding="utf-8"?> <Linear...
asked by 18.05.2017 / 17:59
1
answer

How do I pass an item from a listview to another listview on android?

I have this list, which is where I want to pass the item through the popup menu And the code is this: public class route1 extends Activity { ListView listaruta; List<String> list = new ArrayList<String>(); ArrayAdapter&l...
asked by 09.04.2017 / 22:52