I think that says it all: is it possible to show events in Android by default CalendarView?
I know that this is done for widgets, and not for a real Calendar application, but my application should not be a calendar application. This is just a small feature in my application, so I find the presentation perfect for my requirements. I cannot view events in it, otherwise it is ideal for me.
I read this answer and tried to overwrite the onDraw method from CalenderView:
@Override
protected void onDraw(Canvas canvas)
{
p = new Paint();
p.setColor(Color.RED);
p.setStrokeWidth(10);
super.onDraw(canvas);
canvas.drawRect(0, 0, 100, 100, p);
}
But even this code does not work, and the rectangle is not displayed. The remaining 4 methods are: privatetherefore I cannot overwrite them. Any other ideas how I can solve this problem? I do not want to use the library, but if there is no other way, I am looking for something that is really close to stock CalendarView. Or maybe I can create a calendar file that appears only in my application and not in other calendar applications?
source
share