Wednesday 23 March 2011

DashboardLayout class for implementing Dashboard pattern

Roman Nurik (@romannurik) wrote a custom layout class that can handle the Dashboard pattern. It is distributed under the normal Apache 2.0 license so it can also be used also on commercial apps. I haven't yet tried it but I will definitely do that once I find time.

The source code can be found here: https://gist.github.com/882650

 Roman Nurik 

Implementing the Dashboard pattern? I just wrote this custom layout that can help:  
Thank you Roman!

[Update 2012-01-11]: The version in github isn't uptodate. Newer version can be found here: http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java

5 comments:

  1. Looks great ,Thanks but if i want only 5 buttons how can i do this i tried to set new style to Middle button with layout gravity="center" but all buttons overlapped any ideas ?

    ReplyDelete
  2. The link is broken. Try https://gist.github.com/4564146

    ReplyDelete
  3. Author's deleted the code.google.com project - this link is all over the web, but is broken everywhere :(

    ReplyDelete
    Replies
    1. The project is still there but the latest version doesn't have a dashboard anymore. It is mostly abandoned design pattern that should probably be avoided. It is, however, available in the version history still:
      http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java?r=27a82ff10b436da5914a3961df245ff8f66b6252

      Delete