It depends also on the device screen resolution.
This is the corner on my Samsung Galaxy S8.
I suppose that the problem is due to the anti aliasing.
From what I know, it cannot be disabled.
BitmapCreator has a ReplaceSemiTransparentPixels(NewColor As Int, Rect As B4XRect) method.
Not sure if it will solve your problem.
You are calling DrawRectRounded with corner radius set to 0. This case is easy to fix. DrawRectRounded should call DrawRect.
Does it happen in other cases where the radius > 1 ?