Questions tagged as 'listview'

3
answers

How to instantiate a GridView or a ListView for the same Activity?

In my app I'm presenting a list of items. I would like in certain situations to be presented with a ListView and in others as GridView . The situations are: Smartphone (portrait) - ListView Smartphone (landscape) and Ta...
asked by 09.01.2014 / 02:54
2
answers

What is the difference between ListView and RecyclerView?

What is the difference between ListView and RecyclerView on Android? From what APi RecyclerView is available? Is it valid to use RecyclerView and not ListView ?     
asked by 19.10.2016 / 20:56
2
answers

How to align strings to use in a listview?

In my Android project I need to create a table with a listview but the data always comes misaligned. I put each record in my database at a position in an array of strings so I can use it in listview . The method I use to try to alig...
asked by 27.01.2014 / 18:01
2
answers

How to avoid an IllegalStateException: The content of the adapter has changed but ListView did not receive a notification?

I have Activity that displays a ListView , which is associated with Adapter "backed by" ArrayList global. If I add an element to this ArrayList , ideally I do it on the main thread and immediately call Adapter...
asked by 14.01.2014 / 12:39
2
answers

What is and how to use ListViewAnimations? [closed]

I wanted to understand what ListViewAnimations is (a component, a Framework?) and how it works.     
asked by 11.09.2016 / 16:10
2
answers

Selecting a value from a row / column of the ListView populated by LINQ to SQL

Through the double click event I need to pull a value from a row / column in a ListvView populated by LINQ to SQL. For example, when the user needs to select a row / column value from this ListView, after the double-click event, this informati...
asked by 23.01.2016 / 21:43
2
answers

How do I delete a specific item from a ListView?

I would like to ask a question: I have a ListView , where your adapter is clarified in the same activity and the contents of adapter (the strings ) are in another class, in another package. How do I delete a specific item from Li...
asked by 21.05.2014 / 17:17
1
answer

Problem with the datakeynames property of the listview component

I get the following error when running the application:    Message = DataBinding: 'DataMinds.Models.Focus.FlowerObject' does not contain a property with the 'Sector.Code' name. The error message refers to the ListView component, wh...
asked by 26.08.2015 / 16:57
1
answer

Can I create an ExpandableListView with the swipe effect?

I have a ListView that is composed of 3 ListView's chained. The first is a Year Release list, which has a list of genres that in turn stores a list of movies. I wanted to have the option to expand and collapse the lists by the year...
asked by 10.10.2016 / 17:48
1
answer

Display a message when the ListView is empty

I have a ListAdapter that extends a BaseAdapter that works perfectly. When it is empty, I want a message to appear. Where to implement this validation?     
asked by 01.02.2014 / 19:45