tags:

views:

51

answers:

2

Hello I want to create month-view calendar for android with clickable days. What kind of layout/view should I use, TableLayout or GridView. I didn't find any examples for this...

Thanks for help in advance

A: 

I would say GridView especially if you plan on putting all of your Calendar data in a ContentProvider for sharing with other apps. You can then use your the provider and adapters to fill in the GridView dynamically

schwiz
Thanks for help, I'll take a look
Peter O.
A: 

Is there any posibility...

...to restrict the GridView to have exactly 8 row?

...to set first element of each row to be TextView and second to eighth will be Button?

I've followed this tutorial when creating GridView with clickable Buttons: http://www.stealthcopter.com/blog/2010/09/android-creating-a-custom-adapter-for-gridview-buttonadapter/

Thanks for help in advance

Peter O.