Questions tagged as 'listview'

1
answer

How to customize the row of a ListVIew according to the value in the ArrayAdapter

Assuming that I have an object called Item, and that it has text, id, and validation properties, in this case, text is a string, id is an integer, and validation is a Boolean value. class Item { private int id; private String texto;...
asked by 25.09.2014 / 15:03
2
answers

Hide Subitems from a ListView?

Is there any way to hide subitems and their data from a listview ? I tried to start the code with something like this: for I := 0 to Form1.LV1.Items.Count-1 do begin if Form1.LV1.Items[I].SubItems[5] = 'OK' then...
asked by 25.04.2014 / 03:54
2
answers

How to make a ListView "Clickable"?

I have a simple phonebook system, where there is Activity s for: Registration; Editing the registry; Removing the registration; And one last to see all contacts within a ListView . All records come from a table in the d...
asked by 13.02.2015 / 19:44
1
answer

Passing and Catching the CommandParameter of a Xamarin Forms Button

How to pass a value that is in a Binding by the CommandParameter of a button that is within a ListView to ViewModel ? The button is accessing Command right, but I do not know if this is how CommandParamete...
asked by 27.12.2016 / 19:15
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
2
answers

How to update the background colors of the rows of a listView?

I have a listView that when I click on a line, it sends information to the server that returns a status. I needed to change the color of the line in my arrayAdapter based on this information. How do I call the arrayAdapter from my activity. When...
asked by 14.07.2016 / 20:40
1
answer

Android ListView

How can I have a ListView mount the items as follows: When you have only one item it occupies the entire screen, if you have two, divide the screen size by 50% between items and so on ... <RelativeLayout xmlns:android="http://schemas.and...
asked by 22.08.2014 / 15:03
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

List View with TextView and ImageView

I'm trying to make a ListView with TextView and ImageView (obtained through a URL), when I was only with TextView was appearing normal, but when I added the code to the images, the screen all white. What could be the...
asked by 13.01.2015 / 18:09
1
answer

Listview does not repeat records

I have a txt file with multiple records inside, I need something that at the time the function is to add to the ListView these records, do not let me add repeated items. To do this, it could use a particular column and compare. Wit...
asked by 31.08.2014 / 20:15