ExpandableTextView 1.0.1: Interpolators

ExpandableTextView 1.0.1 is a small update which adds support for time interpolators. A time interpolator defines the rate of change of an animation. This allows animations to have non-linear motion, such as acceleration and deceleration.

Continue Reading

ExpandableTextView 1.0.0

I’m happy to announce the first release of my new Android library:  Android-ExpandableTextView. The name says it all, it’s just a plain simple expandable TextView, nothing more nothing less. The reason why I created this little library, is because I wasn’t satisfied with the other solutions I found on the internet. I’ve put the thing on GitHub, and it’s free to use by anyone!

Continue Reading

RecyclerView Adapters part 2: RecyclerView Cursor Adapter

In the Android platform, a CursorAdapter is an Adapter that exposes data from a Cursor object to a ListView widget. This second post about RecyclerView Adapters will explain on how to make a simple and reusable Cursor adapter yourself, and how to use it in your application. In a third post about RecyclerView Adapters, I’ll show a more advanced version of this CursorAdapter class.

Continue Reading

RecyclerView Adapters part 1: RecyclerView Array Adapter

Nowadays most Android developers use the new RecyclerView instead of a ListView or GridView. The RecyclerView widget is a more advanced and flexible version of ListView. This widget is a container for displaying large data sets that can be scrolled very efficiently by maintaining a limited number of views.

The sad thing is that Google didn’t provide us with a set af default RecyclerView Adapter classes to extend from, like they previously did for the ListView. The first one I’ll discuss is a RecyclerView Array Adapter, which allows you to easily bind a List of objects to your RecyclerView.

Continue Reading

LinearLayoutICS, another great Class in the support library


Support v7 appcompat & options menu

Some time ago, Google made its own backport of the famous ActionBar. The times of ActionBar Sherlock are finally over, and that’s a good thing. There has already been written a lot about using the Support ActionBar, so I won’t bother you with that. I’m going to talk about a small detail, but yet a very important one: using the Options Menu.

Continue Reading

Android: tabs appear above (or below) ActionBar *UPDATED*

On Android 3.0 and above, while using the ActionBar tabbed navigation style, the tabs sometimes appear above (or below) the action bar. This strange UX behaviour doesn’t seem to make sense, especially on devices with larger screens like tablets. The issue seems te be fixed since API level 19 (Android KitKat 4.4), but it still affects the majority of Android devices.

Continue Reading