I'm writing a calendar app for Android. This app has a day view, week view and month view, very similar to the standard calendar apps.
All three views need to know what dates they are showing before the calls to onMeasure, onLayout, onDraw.
Now, I've been thinking whether I should create fully customized view classes, or use XML layouts as much as possible, and embed custom views inside the layouts only when I need to, but I hit a brick wall with the second option: again, since all layouts will have at least one sub-view that depends on the selected dates, and the only way I know to pass parameters to a view is by calling a custom constructor (as opposed to inflating where I can't pass params at all) - basically, I would HAVE to use completely custom views...
Am I correct about this? Is there no way to pass parameters to inflated views?