Questions tagged as 'listview'

1
answer

How to display in the ListView a single data from a query that returns two data?

I have a query that returns a person's first and last name. With the result of this query , I enter the information inside a ListView and the first and last name is displayed. How do I display only the name? And then I would have...
asked by 29.07.2015 / 16:01
1
answer

Set maximum height for Alert Dialog

My dialog has a list, and when this list has many entries, the dialog cuts the buttons in the middle, as in the image: HowdoIsetamaximumheightfornotbeingcutlikethis?DialogCodepublicvoiddeleteCategoria(intdespesa){mAba=despesa;finalCategoriaDA...
asked by 16.06.2015 / 18:41
1
answer

Change data from a specific position in the ListView

I would like to know how I can change data from a certain ListView position. Here I load the database from the ListView: public void carregarEmails(Cliente cliente) { ArrayList<Email> listaView = dao.pegarResultListaEmail(cliente)...
asked by 13.10.2015 / 23:19
1
answer

How to convert a Bytes Array to a Direct Image in the ListView?

Populate the DataSource of the ListView with a collection. The collection contains a field with ArrayBytes . I need to convert to the image to appear in the control. But does the conversion have to be straightforward? <ItemTemplat...
asked by 12.10.2015 / 21:20
1
answer

How to click on a ListView item and open an Activity referring to the item I clicked on?

I have a listView that contains a list of countries named in the database (SQLite). I needed to click for example in Item Brazil, and open another ListView with the states of Brazil, I already did this without database, but with bank I can not b...
asked by 20.07.2015 / 17:11
3
answers

How to retrieve the id of a product by clicking on the listview opening another activity

I'm making an application for querying products using a WebService. I search the WS and bring the product information I need. Then I pass this information to a Adapter create ListView and then in this step Adapter in A...
asked by 28.05.2016 / 21:31
1
answer

How do I set position of a cursor in the Onchanged of a Customview in a ListView?

I'm using a customview call android-spinnerwheel . I inserted it into a listview linked to a CursorAdapter . If I use the OnitemClickListener of the ListView, the cursor goes to the corresponding position in the list and it loo...
asked by 08.02.2014 / 01:01
1
answer

Go to another activity from a list item with parse.com site data

I would like to know how I could do to call another activity through an item in the list where the data is used from the parse.com site. For example, I have this code: public class ListViewAdapterPizzarias extends BaseAdapter { // Declare Var...
asked by 27.04.2015 / 04:45
2
answers

How do I delete a certain data from a listView?

The app has two buttons that when clicked add an item to a listView (bow and sword), but would like that if the item of each button was already present in the listView, it was deleted. package genesysgeneration.list; import android.support.v7...
asked by 17.02.2017 / 00:55
1
answer

I wonder if it is possible to have a phone mask in a text view

I would like to know how to get a phone mask in a text view field. In my case I have a listView with contacts where on each line of this listView the contact name and the phone appear. I would like the phone to have the (##)####-####...
asked by 06.01.2016 / 13:46