Tag Archive for 'views'

Coverflow widget for Android

Very useful example about creating a coverflow widget using the Gallery component provided by the framework:
http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html

If you wish to know more about the Gallery widget, here is a good tutorial with examples:
http://android-pro.blogspot.com/2010/07/android-gallery-control.html

An older version of the widget can be found here, however this is much more complicated…

Android WebView tutorial

If you have some questions about this useful component of the Android framework, then check out the following tutorial, which provides examples and clear explanation about WebView:
http://developerlife.com/tutorials/?p=369
Note You should avoid using WebView frequently, because it eats up a lot of memory. Better generate your UI with layouts and views.

Swipe between views

If you ever wondered, how you can swipe between views like in many iphone application, or simply on the home screen, then check out this post with a solution derived from the open sourced Android home screen:
http://www.codeshogun.com/blog/2009/04/16/how-to-implement-swipe-action-in-android/
Note You can find the best solution in the comments, I attached it as java file to this post.
WorkspaceView.java zipped
Note 2 ViewFlipper and ViewAnimator is quite buggy on Android 1.5 & 1.6, and even slow on newer versions.