Reputation: 1936
As per the Google design patterns I have been implementing the dashboard layout by using the DashboardLayout.java file used by Google in there Google IO app.
This works fine when all items can fit the screen: see screenshot. But when there are too many items to show nicely on the screen, this happens. (imo, i'd think the google class would take care of this by putting 3 items in one row)
I'm not sure if this is something not foreseen in the google class file or should I dig into my set up? (which I can post here if needed) If anyone knows a workaround (tried using scrollview but also that screws up the layout), that would be greatly appreciated.
Upvotes: 1
Views: 710
Reputation: 72563
The Dashboardlayout just works if the number of buttons is even. So if you have an odd number, just insert an extra button with:
android:background="@null" or "#00000000"//transparent
So it will handle it like a extra button but it is transparent.
Upvotes: 4