Maandelijks archief: september 2011

PHP SPL data structure: SplFixedArray

PHP 5.3 introduced some new data structures. The talk of Jurriën Stutterheim on PFCongres 2011 on SPL structures and their performance triggered me to have a closer look at the performance of these structures. I was kind of fooled by two comments on the page, so it was time to find out myself.

Verder lezen

Getagged , , , ,

Using SimpleAdapter for populating simple_list_item_2 with Strings

I don’t know it it’s my searching skills which are fading or the lack of examples, but I wasn’t able to find a simple example on how to use the simple_list_item_2 which is built into Android. I’ve used some custom layouts to establish the same result, and sometimes some extras (display an icon on the right for example). However, now I wanted to use the built-in feature, but had to search quite some time. If you experience the same, hopefully this post will save you time.

Verder lezen

Getagged , ,

Custom checkboxes for CheckBoxPreferences on Android

For an App I’m writing I need to use custom checkboxes in a PreferenceScreen. I want to use the CheckboxPreferences as it’s designed for that. Many searches lead to StackOverflow, but caused me a stack overflow as well as they didn’t work. In this (short) post I outline my findings and provide a working solution step by step. Verder lezen