Archive for the ‘ListView’ Category

Pull to Refresh – Part 1

Friday, November 2nd, 2012

On 26th October 2012 I made a presentation about Android Layouts at DroidCon in London. While I was there I took in a great talk by Scott Alexander-Bown titled entitled “Write Less / Do More” in which Scott spoke about some third-party libraries for Android. One of these is Chris Banes‘ Pull-to-Refresh library, and in this article we’ll take a look at this library and see how simple it is to incorporate this in to your app.
(more…)

ListView – Part 4

Friday, November 4th, 2011

In the previous article we got a ListView with a custom layout working, but warned that it was very inefficient. In this article we’ll optimise things.
(more…)

ListView – Part 3

Friday, October 28th, 2011

In the previous article of this series we got a simple ListView working with some click handling. In this article we are going to use a custom layout which includes an ImageView and a TextView instead of one of the stock Android layouts.
(more…)

ListView – Part 2

Friday, October 21st, 2011

In part 1 of this series we got a simple ListView working. In this part we’ll look at how we handle clicks on items within the ListView and also look at managing things if we can’t extend ListActivity for any reason.
(more…)

ListView – Part 1

Friday, October 14th, 2011

In previous articles we have looked at the various layout types that Android provides us. In this series of articles we’re going to have a look at a slightly more complex widget: ListView. ListView is somewhat different from the basic layouts because whereas the simple layout types offer basic layout capabilities, ListView goes further because it provides us with some pretty neat data binding facilities.
(more…)