Instead of having one res/layout folder we will create two new folders:
- res/layout-v3 for Android 1.5
- res/layout-v4 for Android 1.6 and higher
Bug in Android 2.0
There seems to be a bug in Android 2.0. Instead of picking the resource from res/layout-v4 as it should and if it doesn't find it there then from res/layout-v3, it expects the the resource wrongly in the default res/layout folder. To make it work you should rename res/layout-v3 back to res/layout again (or just create a symlink). The second problem or bug that comes with it, is to provide the special resources for Android 2.0 or higher. Instead of providing those in res/layout-v5 Android 2.0 expects wrongly res/layout-v6. So just use this instead for now. The bug is fixed in Android 2.0.1, but there are still quite some Android 2.0 phones out there.
I hope this post is not too confusing ;-)
Hi Stefan,
ReplyDeleteThanks for this post. I am wondering if you can give some information how to get the title view text view for title and text view for content? I am new to Android programming and have been trying to make multi row list entries.
Thanks,
Varun