Thanks for that good solution.
From: [email protected] [mailto:[email protected]] On Behalf Of Nobu Games Sent: Tuesday, July 10, 20hi12 12:26 AM To: [email protected] Subject: Re: [android-developers] Re: Calender view Ok, your question is hard to understand, but I assume you are the same guy who was asking several times all over the past week for "how to create a calendar week selection view", so I think you want to have a widget that allows the user to pick a week of the year. The Java Calendar <http://developer.android.com/reference/java/util/Calendar.html> class should give you enough material for figuring out the steps necessary. Another question you may want to answer yourself is: how do you want to present your week of the year selection? You can get an idea for that by playing around with the Windows 7 date selection widget, which does a pretty good job. I would implement that as a separate view instead of trying to extend the existing calendar view of your choice with that function, because that may turn out to be too complicated. But the most elegant solution would be adapting that android calendar view source code for your needs. You could create a ListView or GridView and set a custom Adapter that lists the week of the year. When showing that view you need to set the current selection to the current week (or any pre-selected week). The current week can be retrieved with a Calendar object: Calendar cal = new GregorianCalendar(); int weekOfYear = cal.get(Calendar.WEEK_OF_YEAR); If you want to select the week of month instead then change WEEK_OF_YEAR to WEEK_OF_MONTH. In that case you need to have just 4 buttons anyway and don't need to bother with a ListView and an adapter. On Monday, July 9, 2012 1:13:10 PM UTC-5, jags wrote: Hi Iam able to show calendar view by week selection ,I cant able to add functionality based on selection on week wise Can you any tell me.i Done Googling I got ,but week selection I couldn't able to add week selection thing . http://w2davids.wordpress.com/android-simple-calendar/ I followed this but couldn't able to add from day to next week day selection able to do any one knows Please guide me. From: [email protected] [mailto:[email protected]] On Behalf Of Nobu Games Sent: Monday, July 09, 2012 8:26 PM To: [email protected] Subject: [android-developers] Re: Calender view What do you mean with "how to get"? Beginning with API level 11 you can use: http://developer.android.com/reference/android/widget/CalendarView.html For earlier versions: http://code.google.com/p/android-calendar-view/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] <mailto:android-developers%[email protected]> For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

