android-listview Questions

2

I am looking to implement a material list of this style. How can I do this on Android? What classes should I look at? Are there any existing libraries that could make implementing this easy?

3

I make WearableListView list. Problem is that setting android:layout_height="20dp" doesn't help How to set height in this case? In Android Wear sample projects Notifications and Timer they also j...
Araucania asked 10/8, 2015 at 0:48

3

I have a ListView with an ArrayAdapter set to it, and each row in the adapter contains four buttons that need to receive and handle click events. Normally in Android I would call SetOnClickListener...
Celtuce asked 25/4, 2013 at 13:11

4

Solved

An activity has a Button and a ListView. Initially, only the Button is visible. When the button is pressed, the ListView is displayed. When displayed, is it possible for me to show one particular ...
Cathrine asked 8/10, 2010 at 5:49

6

Solved

I have a list view in an Android application used to display an ArrayList containing Strings and I can't find any properties of the ListView that would allow me to align the text of the ListView It...
Impostume asked 23/2, 2012 at 19:46

5

Is it possible to get an item view based on its position in the adapter and not in the visible views in the ListView? I am aware of functions like getChildAt() and getItemIdAtPosition() however th...
Brayer asked 1/1, 2012 at 13:24

3

I have a main activity that creates a ListView and a Custom Adapter. I'm able to populate the ListView if I have the List already created beforehand, but how do I populate it with dynamically fetch...
Supernova asked 23/8, 2013 at 5:57

6

Solved

I am struggling to get the Navigation drawer items to register and start and intent for a new activity. The drawer opens fine and is displayed correctly but nothing happens when I click on the item...
Speciation asked 21/2, 2014 at 17:48

3

In my application I have create a custom list view and I want to implement a filter so that the list can be filtered according to the text entered in the EditText. I am using a BaseAdapter as a sep...
Anatomy asked 17/9, 2012 at 9:30

2

Solved

I have made a listitem, containing a title and a subtitle. Looking to the result, I think it doesn't look really professional. So that's why I'm asking. The listitem I'm looking for is pretty comm...
Albinaalbinism asked 13/3, 2013 at 16:12

3

Solved

How can I communicate a listview of a ListFragment after an event of a Fragment inside another Fragment? In the ListFragment (fragment A) I have a method to refresh the ListView. But also, I need ...
Keloid asked 13/3, 2014 at 17:18

8

Solved

I need to highlight a row in a ListView that was selected (to show the user what he chose), so, it's not the one that is going to be chosen, it's the one he chose before. I already have the locati...
Deville asked 8/5, 2011 at 6:0

11

Solved

I have a ListView subclass that I allow selections on when the context action bar (CAB) is active. The CAB is set as a callback to the onItemLongClick event: public boolean onCreateActionMode(Acti...
Elaterite asked 17/3, 2012 at 22:4

2

Solved

I have an AutoCompleteTextView in my app. The app makes use of the Facebook SDK. I followed the code from this question on SO: https://stackoverflow.com/a/12363961/450534 to the dot and have a func...
Sheritasherj asked 2/10, 2012 at 13:56

4

this is my coding part: listview.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" a...
Lindi asked 26/10, 2012 at 4:49

3

Solved

I have created a list view in android and I want to add edit text above the list and when the user enter text the list will be filtered according to user input can anyone tell me please if there i...
Collectanea asked 2/2, 2013 at 16:5

6

Solved

I need to find out the pixel position of one element in a list that's been displayed using a ListView. It seems like I should get one of the TextView's and then use getTop(), but I can't figure out...
Podgorica asked 2/11, 2008 at 22:40

5

Solved

I have a list view and I've implemente filtering. Lets say I have items A, B and C. If I type B in the filter box, only item B will be displayed and it is the position 0 of the list (before it was...
Copilot asked 6/12, 2012 at 2:56

5

Solved

I have a problem that's been giving me grief for weeks now. I forgot about it for a while when I was updating to the new Facebook SDK, but now it's back to haunt my dreams. I'm making basically a ...
Hat asked 7/12, 2012 at 3:26

5

Solved

I have a ListFragment where I use a custom adapter to populate the listview. All is well until I change orientation and scroll. Then it looks like this: I am guessing it has something to do with ...
Disquisition asked 30/8, 2012 at 19:15

6

Solved

I have created navigation drawer and displaying items in list. My list is static but i am displaying points. So when users select the items in the list and do some activity he get the points. So i ...

3

I would like to show/hide items in my listview. Currently I am doing this by iterating through adapter's data. If item at certain index matches some condition, this line is called: listView.getChi...
Oily asked 18/7, 2013 at 10:29

3

Solved

the contactsList is empty until the readContacts()method was executed, in other words, when contactsView.setAdapter(adapter) was executed, the contactsList is empty, so why this code still can show...

3

I have to display ListView contains EditText on Dialog, where a user can type the text in EditText and its content should not be lost. For example, I have 10 EditText in listview, if the user type...

2

Solved

I have a GridView implemented and activated the mGridView.setChoiceMode(GridView.CHOICE_MODE_MULTIPLE_MODAL); mode. Now I have the possibility to select multiple items from my grid when I perfor...
Laritalariviere asked 28/12, 2015 at 11:0

© 2022 - 2024 — McMap. All rights reserved.