Does Android have basic graphics like object C core graphics?

I'm trying to transfer the drawing algorithm from iPhone to android, but problems that I did not find the graphical method in android, which is more subtle for iPhone, please help.

Example: iPhone having drawInRect () method, but android doesn't. On the iPhone, they get the current drawing context, but we don’t have the same concept.

+4
source share
1 answer

Android uses an API Canvasthat hosts all calls for drawing ( SDK Documentation ). Each object Viewis passed a Canvas, on which to draw its contents. You can customize any kind of output by subclassing and overriding its method onDraw()(

+6
source

Source: https://habr.com/ru/post/1524417/


All Articles