This does work, but makes the generated drawing fuzzy, I guess this is because we are drawing in lower resolution due to the scaling. Looking at section "scale" PaintCode suggest to play with the density metric in android to perform scaling. When using UIKit, the coordinates entered are in Points, so it takes care of display density itself. It seams that the generated drawing code does not take into account the scale of the device (as it does on iOS). Long story short, this is the summary of PaintCode support answer: The fact that Android doesnt support device independent pixels in its drawing API is the reason for the different behaviour of iOS and Android. Or in general all drawings that I make in PaintCode when drawn using the draw method generated by PaintCode are to small. This works very well on iOS but on android, the radius is 20 pixels not points, resulting in a far to small radius (now with the high res devices). ![]() The result is that whatever the size of the button is going to be (= the frame) the corners will always be nicely rounded with 20 points.Moreover, it also allows you to specify the values of parameters of your PaintCode canvases. With this patch, you can use PaintCode vector drawings with Origami (and Quartz Composer). I draw a frame around and then setting the correct resizing behaviour using the springs (see screenshot). The plugin allows you to use a special PaintCode patch in Quartz Composer. ![]() In PaintCode I draw a button which is basically a rounded rectangle with a radius of 20 points.I want to do the same for android and have the following issue: I have been using PaintCode for drawing custom buttons for years in iOS, it works brilliantly. So please don't reply in offering other solutions for buttons in Android, I am looking for a solution with PaintCode. Note: Yes I know there are other ways of doing buttons in Android, but this is just an example to demonstrate my issue (the actuall buttons are far far more complex).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |