Newbie question, so there's probably a simple answer to this problem.
I'm drawing some simple shapes using canvas.drawCircle(), canvas.drawLine() etc. I originally copied the code from:
Which extends a View and draws directly to a canvas. It doesn't load a pre-drawn bitmap because I need my application to turn data into a drawing and the user will enter the data.
My changes work, but the drawing is too small (or big) and doesn't fill the screen using all the available screen. Ideally I'd rather use something like an ImageView in .XML like so:
< ImageView ... android:scaleType="fitCenter" / >
If that's possible. The documentation seems to imply that I want to set the scaleType as shown in the above .XML which seems like the simple way to do this.
I also read that using a custom view might be a better idea, but I'm not sure if that's something I should investigate.
If using an ImageView in .XML is a good idea, then I'm lost on how to draw to the ImageView and could use some guidance on doing that task. If that won't work, then I'll need to do some more thinking about how to get my drawing scaled on the screen and basically I'm lazy and would rather have Android do the work for me. Feel free to suggest some other way that's completely different is this is the wrong solution path. :)
Thanks.