Wednesday, July 6, 2011

How to create dashboard layout in android ?

Ever wondered how to create a dashboard view in android? There is no out of the box layouts to achieve this. But luckily, you don't have to write one. Thanks to Roman Nurik, he has created a custom layout using which you can create a dashboard effect. For other alternatives, you can refer this stackoverflow http://stackoverflow.com/questions/2873568/android-dashboard-pattern question

In this article, i will explain you how to use this layout.

Steps
  • Get the layout source code from https://gist.github.com/882650.
  • Copy the source file to your package. (Be careful about the license and see if it suits you.)
  • Create a layout resource with DashboardLayout as the root layout. See code below.

Source code:



Output:
This will produce something like this.
Do checkout my next article on how to improvise this.

No comments:

Post a Comment