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
[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
The source code can be found here: https://gist.github.com/882650
Thank you Roman!
Implementing the Dashboard pattern? I just wrote this custom layout that can help: http://bit.ly/igS4HW #androiddev
[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
works for me... great
ReplyDeleteLooks 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 ?
ReplyDeleteThe link is broken. Try https://gist.github.com/4564146
ReplyDeleteAuthor's deleted the code.google.com project - this link is all over the web, but is broken everywhere :(
ReplyDeleteThe 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:
Deletehttp://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java?r=27a82ff10b436da5914a3961df245ff8f66b6252