Saturday, 28 September 2013

Why isn't the onDraw() method of my custom view being called when the size of the view is set larger than the screen (it is inside a scroll...

Why isn't the onDraw() method of my custom view being called when the size
of the view is set larger than the screen (it is inside a scroll...

Inside a method of my Fragment, I do the following in order to add a
custom calendar to a container:
container.addView(calView = new CalendarView(x, y, z));
calView.setMinimumHeight(height);
If "height" is large enough that container is expanded to larger than the
scrollview, the scroll bar appears as it should, but the calendar is not
drawn (the onDraw() method is never called).

No comments:

Post a Comment