android-listview Questions

1

Solved

Is there any way to get an item of the RecyclerView at a particular position outside the adapter. e.g in ListView we could do: listView.getItem(position); Can we do this with RecyclerView ? a...
Commissar asked 20/1, 2015 at 3:51

7

I would like to know if there is any way that I can add headers/sections to the navigation drawer. I managed to add something like that, but it is only displayed at the top of the list, because add...

2

Solved

I am developing a simple application in android. In this app i am having a listview, which shows the inbox sms. On click of any item of listview, one AlertDialog appears, that contains Ignore,Cance...
Reggy asked 28/12, 2013 at 10:39

4

Hopefully a simple one. v4.0.3 I have a ListView and want to leave a margin of 10dip right and left. The content is easy of course, but I want the divider line to have a 10dip margin right and l...
Crawford asked 9/2, 2012 at 10:53

7

I am attempting to animate the ListView items when a scroll takes place. More specifically, I am trying to emulate the scroll animations from the iMessage app on iOS 7. I found a similar example on...
Mews asked 5/2, 2014 at 20:49

4

Solved

I have a fairly complex layout (containing RelativeLayouts, TextViews and ImageViews) that I want to place above a listview. This view should scroll with the listview. I tried adding the layout as...
Contractor asked 26/11, 2011 at 1:38

4

Solved

I am trying to create a layout with a header, a banner below it, and then a couple of ListView under the banner. I want the the complete screen to be scrollable except the header. Now I know that L...

1

Solved

Background I'm trying to mimic the way that the contacts app of Lollipop shows the pinned headers for the contacts' first letter, as i've written about here. The problem Since the original code ...

5

I want to create a listView of cards, but after reading this blog post goolge-plus-layout, I'm cards are a viable solution for a list of anything. The animation part seems too memory intensive to l...
Lermontov asked 10/7, 2013 at 12:51

0

Background I have the next scenario: There is a navigation drawer with items. each switches to a different fragment. One of the fragments holds a viewPager, which holds fragments. Each of the vi...

3

Solved

Hi iam currently working on an android application it has two list views inside the main activity.What i want is disable the scrolling of two lists and allow the whole page to scroll only,is there ...

4

Solved

Hi I know there are answers of this question. I have tried all of them but it is not working in my app. I am developing an app that has 3 Fragment activity. First fragment shows a website, second f...
Oxygenate asked 3/7, 2014 at 13:45

2

I'm trying to show front and back face of each of my listview item with Flip animation. Animation works well, but the result of anim is being applied to other items also. And furthermore, the posit...
Paulita asked 23/12, 2014 at 19:27

0

I use custom ArrayAdapter to populate listview. I use Picasso to load images, before loading image I calculate height and width for each image. Thus dynamic ImageView has different height and widt...
Womanhater asked 23/12, 2014 at 8:23

3

Solved

What I have: I have a ListView with custom rows, having a CheckBox & two TextViews in each row. I have a button for "Select All". What i want: I want that when I click the button, all the Che...
Gesso asked 9/2, 2011 at 7:59

1

Solved

I am using a Toolbar inside a ListFragment in Android and can hide/show it during scrolling. I implement AbsListView.OnScrollListener and use this code inside: @Override public void onScroll(AbsLi...

5

Solved

Background I wish to add a simple ripple effect for listView items from Android Lollipop and above. First I'd like to set it for simple rows, and then to 9-patch rows and even CardView. The prob...

6

I am trying to send data to server and in response i am getting some data which i need to display in next activity using listview,can any one tell me how to do this?
Percussionist asked 5/12, 2014 at 10:7

4

Solved

I want to create a ListView where each row would have two buttons. Button1 and Button2. I have read few tutorials on how to create CustomAdapter or extend BaseAdapter, but none of them worked in my...
Recuperator asked 15/12, 2014 at 10:8

3

Solved

In my app I have activity with tabs (let's say 10 tabs). Each tab page contains Fragment with ListView(data displayed in this ListView is loaded dynamically from my server). I use ViewPagerto displ...

5

Solved

I created a file in \res\layout named contactlist.xml But it is not recognized in my code: SimpleCursorAdapter mAdapter = new SimpleCursorAdapter(this, //android.R.layout.simple_list_item_1, mCo...
Indiraindirect asked 7/2, 2012 at 4:0

6

Solved

Hello everybody I'm doing an app which has an edittext to search for items on the listview. If the user types a letter. The data come from my json string (database) and then display on my listview....
Verbosity asked 31/1, 2014 at 8:49

0

I am using the below code for viewpage inside listview. ViewPager viewPager = (ViewPager) currentView.findViewById(R.id.pager); viewPager.setId(position + 1); viewPager.setPageMargin(30); View...
Adaliah asked 29/11, 2014 at 8:52

3

While I tested my application on an Android Device turning my Android phone from landscape to portrait, results in all the list items in my list view are disappearing. Why? How to manage?
Magnanimity asked 25/5, 2010 at 7:50

3

Solved

I have a custom listview item that includes a 'remove' button. I created a custom adapter called LazyListAdapter that extends BaseAdapter. Inside the getView method that I override I set this butto...
Bort asked 17/4, 2013 at 15:1

© 2022 - 2024 — McMap. All rights reserved.