Questions tagged as 'listview'

3
answers

Is it possible to put labels in ListView?

I have several ListView 's that I use for browsing, and I put it as id's content. So, a list that should present country names, is showing the id of the countries. Is there any way to keep these id's in the list but di...
asked by 03.08.2015 / 22:09
1
answer

Android ListView equal to Instagram

I'm developing a project in Android Studio, the screens of the project are all made in Fragment, I'm using Material Design followed the tutorial
asked by 24.05.2015 / 06:31
2
answers

List changes color in wrong position

ImadeamethodforwhenIclickonalistViewitemitwillchangecolor.Theproblemisthatitalsochangescolorallitemsthathavearangeof12itemitemsthatIclicked.Forexample:IhavealistViewwithnumbersfrom1to30,ifIclickthenumber1itwillturngreen,butthe13also25willalsogo...
asked by 13.08.2015 / 15:21
1
answer

Edit item within ListView

Hello. I'm working on a code that loads items within ListView through an adapter . Within each item ( item_list.xml ), I inserted two buttons being one to delete the item and another to edit. The method that deletes the item is working...
asked by 13.02.2015 / 14:24
1
answer

SharedPreferences within each ListView item

Let's go to the example below: I have two items in my ListView : Item 1 Item 2 Within each item has a calculator that stores the result. Being that: Item 1 = 0 Item 2 = 0 In the calculator that is in item 1, I add 20 or any...
asked by 05.12.2014 / 22:17
1
answer

Error trying to fill a listview

I'm trying to populate my listview so historicos=banco.getAllH(); ArrayAdapter<HistoricoObjeto> itens = new ArrayAdapter<HistoricoObjeto>(this, android.R.layout.simple_list_item_1, historicos); this.lista.setAdapter...
asked by 24.11.2014 / 22:18
1
answer

How to customize a listView (scrolling)?

Given an Activity that has an adapter to populate a list of contacts: IfpossibleIwantedtogetthefollowingresultasintheimagebelow:    When scrolling up and down, display the initial letter of the element   listed in the adapter. Note: my a...
asked by 24.10.2014 / 18:14
1
answer

Display an Image via URL

I have an image on the link http://187.45.142.241:8080/umamaoNovo/images/u184Tulips.jpg I would like to know if it takes some function to display fast post need to display images in a ListView.     
asked by 10.11.2014 / 13:05
1
answer

Create id for a new ListView?

I have the following problem, I already have a listView and I want to create another, but it is giving the following error: <ListView android:id="@android:id/listView" <----- ***Error: No resource found that matches the given na...
asked by 26.01.2015 / 12:45
2
answers

Keeping an item in a ListView selected when pressed

I'm developing a listView, and I need to leave a selected item when I click, and then pick up the position of that item, so I can do the inversion of two items, what's up with what's down for example through button. I've been researching but the...
asked by 06.02.2014 / 14:41