Tag: listview

Can't click on items in ListView with custom adapter

I am trying to write an application which takes items from a database and populates rows within a ListView. I can’t click on the items after tapping on the rows and the dpad won’t go to any of the rows either. I am using a custom Adapter. Tweet.xml <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”fill_parent” android:layout_height=”?android:attr/listPreferredItemHeight” […]

Animating listview data change

I’m working on Android with a set of data(ArrayList) that populates a ListView. At the moment when I change the sorting mode I re-order the data linked to the adapter and call notifyOnDataChanged() to update the list. This does the job, but I’d like to be able to animate each item to its new position(like […]

Android Horizontal scrolling image gallery

I’d like to create app with horizontal image gallery (with one row and multiple columns). First i try to use gridview, but it can be used as vertical scroll only. Can i use ListView or GridView for that purposes?

Android – How to create a transition from an item in listview to a whole activity?

What I want is that when the user clicks a list item in a ListView, it converts to a whole activity (as you can see in the following example), but I was not able to find a tutorial explaining this and, actually, I do not know how this movement is called. In other words, what […]

Android Curved Listview

i am implementing a listview in android which will look exactly like this and scroll I have been doing this by setting the layout params of inflated rows in getView of my adapter but the issue which arrises due to this is that the list-view becomes jerky. i.e. it only updates the rows when one […]

How to mimic the listView stickey-items like on Lollipop's contacts app?

Background Google has recently published a new version of Android, which has a contact app that look like this : The problem I need to mimic this kind of list, but I can’t find out how to do it well. This consists of 3 main components: the stickey titles, which stay as long as the […]

Android: CursorAdapter, ListView and CheckBox

I have ListView with my own layout and CustomCursorAdapter. Every row has it’s own checkbox. So… it’s absolutely clear that during sroll the checkboxes loose their states. The only stuff I found is Android save Checkbox State in ListView with Cursor Adapter but there is no answer there. And one more question. I had the […]

how to display contacts in a listview in Android for Android api 11+

I’m sorry if this looks like the same question a million times…but a google search for this provides no results, just a bunch of outdated tutorials using managedQuery and other deprecated solutions… I went through the android developer training for retrieving a contact list, but the tutorial is incomplete and even downloading the sample code […]

Android – What is the right way to save/restore a ListView adapter?

This question already has an answer here: How to save state during orientation change in Android if the state is made of my classes? 5 answers

How to Overlap items in LinearLayoutManager – RecyclerView (like stacking cards)

Is that possible to overlap the items from RecyclerView ? I am trying that with LinearLayoutManager. My requirements are just the same as in LinearLayoutManager and I just need to overlap the items inside from top to bottom. (like stacking cards) I have seen some variant by using ListView. So, I figure it would be […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.