android-listview Questions

2

Solved

I have a RecyclerView that contains a multiline EditText as a list item, the EditText expands each time a line is added. The RecyclerView has a standard vertical LinearLayoutManager and a standard ...

13

Solved

I used Android Studio to implement the Navigation Drawer and I can't get the blue colour that is used to show which section we're currently in to change. I've tried numerous things, I'm currently ...
Facer asked 13/3, 2014 at 9:48

3

Taking inspiration from Android Market, i have implemented a Endless List which loads more data from the server when we reach the end of the List. Now, i need to implement the progressbar & "L...
Freckly asked 12/1, 2011 at 9:24

1

When i try to set the adapter to my ExpendableListView it expects ListAdapter but i want to use a custom ExpandableListAdapter which extends BaseExpandableListAdapter This is my ExpandableListView:...

3

Solved

I've been reading about RecyclerView and it's advantages over ListView And I got the difference between them. What I don't get is when to use ListView and when to use RecyclerView. And is the Recy...
Janis asked 9/2, 2015 at 15:20

17

I have the following requirement: At first, data for page no: 2 is fetched from the server & the items are populated in a ListView. Considering that both the prev page & next page are a...
Chaco asked 28/5, 2013 at 11:37

4

TL;DR: You choose an option from (a) my listview. Then, you change your mind and type something in (b) my edit text. How do I clear your listview selection and only show your edittext? (and vice ...
Locoweed asked 14/1, 2018 at 20:14

3

i want the same as this link https://www.gorecess.com/ first spinner . multi selection spinner in android with checkbox .Show the spinner in dropdown. anyone know answer...

20

Solved

I have a long ListView that the user can scroll around before returning to the previous screen. When the user opens this ListView again, I want the list to be scrolled to the same point that it was...
Ottava asked 10/6, 2010 at 11:56

4

Solved

I am a begginer in Android but I tried to make a custom listview filtering and I it worked somehow. The only problem I have is that the ArrayList that I kept all the values ( "original" ArrayList )...
Ciapas asked 27/6, 2011 at 11:34

11

I have a custom ListView showing the list of words selecting from database. When I swipe this listview item i want to show Delete button like image below. And when I press that button it is deleted...
Hudibrastic asked 27/12, 2013 at 8:2

11

Solved

I have a ListView which displays news items. They contain an image, a title and some text. The image is loaded in a separate thread (with a queue and all) and when the image is downloaded, I now ca...
Lepage asked 16/9, 2010 at 8:18

1

I have tried adding a header the normal way (different view type, incrementing the data count by 1 etc.), but the paged list scroll bar jumps to the bottom of the list. I have since come across th...
Illative asked 9/9, 2019 at 11:41

10

Solved

I want to add OnLongClickListener on my list view. Whenever the user long press the item in list some action should be performed, But my code does not catch this listener. Please let me know where ...
Rangefinder asked 13/1, 2012 at 6:19

3

Solved

I looke at the ListView API and I saw the method: addHeaderView(View v) What I want to do is to have a layout above the list, is this possible ? I tried doing something like : EditText et=...
Lionhearted asked 2/11, 2011 at 9:49

11

Solved

I have a class that extends ListFragment, and it overrides the OnListItemClick method. I am also doing this in another ListFragment the same way (and the method gets called). I am wondering why the...
Lainelainey asked 1/9, 2011 at 17:41

6

Solved

I want to have a fragment for each item in a listview, because I want to separate some logic out. I am using a view holder for each item. If the view doesn't exist, I create a new fragment and add ...
Raindrop asked 5/9, 2013 at 20:27

7

Solved

I am having trouble implementing custom getFilter in custom arrayAdapter. Actually I have no idea how to implement it. Tried various codes but still no luck. Here is my custom array adapter. packa...
Cormack asked 1/10, 2013 at 18:0

9

Solved

I want to change color of ListView separator line.
Apposite asked 3/3, 2010 at 15:16

6

I am using android design support library. ListView first row overlaps with Toolbar widget. In my MainActivity i added coordination layout and in first TAB fragment added ListView layout. But f...

5

Is there a way to elegantly remove the selection on a ListView. It would act in the opposite manner of ListView#setSelection(int position). I would like to programmatically remove the selection fro...
Thaothapa asked 9/11, 2011 at 19:51

10

Solved

I started dealing with preferences in a PreferenceFragment. Here's what I have: I'm trying to: get rid of the dividers between items. I suppose this can be defined from styles, but I can't fig...

4

Solved

I have been working on an android project and stuck in a problem. I googled it but found no answer. In my project, there is a fragment named viewsurahfragment and it contains a listview whose id is...
Gallic asked 3/7, 2015 at 12:17

15

Solved

I've implemented SwipeRefreshLayout into my app but it can only hold one direct child which should be the listview. I'm trying to figure out how to add an empty textview to the following working XM...
Ashwin asked 9/4, 2014 at 13:59

2

Solved

This seems a question with many answers already; however, I can't find a common approach to this. I'm trying to add data to a ListView when the bottom is reached; data are retrieved from Internet u...
Faefaeces asked 27/1, 2015 at 18:23

© 2022 - 2024 — McMap. All rights reserved.