Questions tagged as 'listview'

1
answer

Android ListView customized in a fragment

I have an application whose layout was done in tabs and in one of them I would like to implement ListView custom, but I could not because the tab JAVA class extends the fragment class % and to make the list I need to ex...
asked by 10.01.2017 / 11:30
1
answer

Select items with LongClick, imagebutton

I have the items in a list, which when clicking the imagebutton, sends a message to the user. I would like to implement longclick so that you can select multiple and send messages to multiple users at once. Thanks and follow the codes:...
asked by 05.12.2016 / 17:29
3
answers

How to access components of the view that are inside a ListView Xamarin Forms

I need to access the properties of the components created in View to set some values (example height and width), but they are within a ListView , so in .cs I can not give this. with x:Name . I tried this way, but it...
asked by 29.12.2016 / 19:19
1
answer

Selecting and deselecting items in a ListView - Android

I have a listview that extends a baseadapter. And following the hint of this topic with the @ramaral's answer I was able to make the item select and deselect but now how do I check to see if the item is selected? listview.setOnItemClickListe...
asked by 27.07.2016 / 08:32
1
answer

Error in ListActivity, probably related to OnItemClickListener

I'm having a problem understanding what's going wrong in this code, I feel the problem may be related to the OnItemClickListener. When I try to emulate it it responds with a message like this: "Unfortunately, MyAplication has stopped.". pu...
asked by 13.08.2016 / 01:01
2
answers

How to decrease the size of text in a ListView?

I would like to know how to decrease or increase the text of ListView . In TextView , android:textsize="15"; exists, what would be the equivalent property to textsize in ListView ? I have a lot of information to p...
asked by 26.04.2016 / 15:07
1
answer

How to display a json return in a listView

I'm trying to return a json that resulted from a select done in php (web service) for my application. The select is here: mysql_connect('localhost','root','ugauga'); mysql_select_db('noise') or die (mysql_error()); $Cod_Empresa = $_GET['...
asked by 19.04.2016 / 19:24
2
answers

How to receive two data in a listview but only present one and use the other in the click?

I have a listview where people name and when I click on a person I use the adapter.getitem(position) that takes the person's name, however, I needed to get the id of the person and not the name. Does anyone know how I can do this? Briefly...
asked by 30.11.2015 / 19:48
1
answer

How to change a ListView item's color based on the "onActivityResult" response?

lv = new ListView(this); adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, android.R.id.text1, vetorNomes); v.setAdapter(adapter); I have a list of names, when I click on "...
asked by 17.08.2015 / 17:52
1
answer

Filtering EditText from ListView in android [duplicate]

I am making this code that is working blza, but there is a problem, in my string has written "Mr. Jose Ventura" so when I type only "Jose" or just "Ventura" nothing appears in the search, does anyone could I implement this in my code? public...
asked by 11.08.2015 / 21:11