android-listview Questions

1

I want to achieve simultaneous animation on all list view items to put it into edit mode. Here is effect identical to what Im going for: http://youtu.be/cFSRusFkI_I?t=2m6s My list item layout code:...
Harmon asked 11/6, 2013 at 10:38

2

Background I've made a tiny library, which shows how to mimic the style of the stock contacts app of Android Lollipop, here. The problem It seems that on Android 5.1 , the fast scroller looks ve...

1

I'm migrating from a ListView backed by a CursorAdapter, to a RecyclerView backed by shywim's CursorRecyclerAdapter. I'm having trouble migrating this part that used to return a cursor object: (...

1

Solved

I have a RecyclerView with a LinearLayoutManager and an Adapter: @Override public int getItemViewType(int position) { return position == 0? R.layout.header : R.layout.item; } Here's header.xml:...

2

In first activity, there is empty ListView and Button. When I press button, it starts second activity that has ListView of categories. After I click into one of listElements it will start third...
Briseno asked 9/3, 2015 at 14:13

2

Solved

My problem is that i have a ListView with a floating action button attached to it. But the FAB hides a button if the list is at the very end. So I want to apply some free space but only to the last...
Noranorah asked 7/3, 2015 at 15:23

4

Solved

This question came to me after reading this: Performance tips (specifically the part named "Async loading"). Basically he's trying to save info about a row to see if it's been recycled yet and only...
Randolf asked 8/8, 2013 at 20:25

1

Solved

I currently use a CursorAdapter with a Loader. The data loaded by the Loader contains a location. I want to order my items from the nearest to the farthest. I already compute the distance to displa...

1

Solved

I have a ListView with a custom adapter. I want to attach a listener to this ListView that triggers whenever the data in the ListView changes, as that can happen a large variety of ways and I need ...
Strontia asked 3/3, 2015 at 3:30

2

Solved

I have created a dynamic listview with lazy loading. I am trying to show a footer to the listview, so that when the user scrolls to the bottom of the listview, it will show "loading more items" (as...
Junker asked 28/1, 2013 at 10:33

3

I've noticed that the new RecyclerView class, even though it makes things a bit cleaner, is lacking a lot of functionality that I'm familiar with: dividers, but this can be solved by looking at t...

3

Solved

I have a listview and the row's layout has a child with the background set to the following selector : <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:...
Programmer asked 23/2, 2015 at 14:54

2

Solved

In Honeycomb the Loader APIs were introduced as the proper way to provide data to an application by doing the heavy lifting on a background thread. In my application I'm working to replace all my C...

4

I have one main activity with 2 fragments. Both fragments have a ListView. I want to update the list in MainActivity. Is there any way to access fragment list adapter in activity with out making ad...
Choi asked 12/2, 2015 at 14:58

4

Solved

I found this Hide footer view in ListView?. As Yoni poited out correctly, you can hide a header in a ListView by wrapping it into a FrameLayout and setVisibility() of the inner View to View.GONE. T...
Skerry asked 7/1, 2011 at 13:18

2

Solved

I'm trying to get ListView row to look like the following: | Text-Text-Text <ImageButton> | With the imagebutton snapped to the right edge. How can I do this? Here's the current layout cod...
Burtburta asked 21/2, 2010 at 22:12

2

Solved

I'm trying to create a List View with BaseAdapter and i keep getting a Null Object Reference Error at the point of adding an object to an ArrayList. Relevant code is below: public class Mai...
Knossos asked 9/2, 2015 at 11:49

6

Solved

Google release the new Gmail app with an alternate way to handle pull down to refresh. Instead of showing the started hidden row that is pulled down. Gmail displays an animated message overtop of ...
Brucebrucellosis asked 10/6, 2013 at 17:9

1

Solved

I have a listview and for a specific item I'm refreshing the remaining time every second. It works fine, but I'm having a small bug. Whenever I call duration.setText(newRemainingValue); to upda...
Biestings asked 3/2, 2015 at 18:5

3

Solved

I am developing an application, and I need a ListView like conctact ListView of my Samsung Galaxy S: When I slide my finger to the right I can send message to this contact. When I slide my fing...
Monopetalous asked 17/2, 2012 at 0:0

1

Solved

I have a custom Adapter that I use to display custom objects in a ListView. Furthermore, I used a SearchView that allows me search through the ListView and filter out results. However, I have notic...

5

Solved

As described, my List item is a FrameLayout, there are two views inside. ColorView is a custom view I made for show color in whole view. (FrameLayout's height is "wrap_content") It seems work we...
Norven asked 31/8, 2012 at 2:7

2

I am using drag-sort-listview (https://github.com/bauerca/drag-sort-listview) in a ListFragment. Things are working when I enable the dragsort on creation. However, I would like to leave it disabl...
Heteromorphic asked 3/9, 2013 at 7:29

1

I am trying to implement SwipeListView with Pull-to-Refresh on a ListView. it integrated successfully but it adds one item to the list after it. list view not refreshing. and no item added to the l...

0

i want to make an expandable listview, but the adapter will take cursor as input instead of array list. i would like to implement animation on collapse, https://github.com/idunnololz/AnimatedExpa...

© 2022 - 2024 — McMap. All rights reserved.