I use a fairly simple drawing in the application I'm working on, and wonder about the βrightβ way to handle Paint attributes such as color, etc. With lines, styles, menus, layouts, etc., separated from the application logic and defined in XML, I was wondering how (if possible) to define the "Paint" style in XML in much the same way.
I performed a series of searches and came up empty, which may be the answer, but I wondered about other approaches than, say:
mPaint = new Paint(); mPaint.setStyle(Paint.Style.STROKE); mPaint.setColor(0x80808080);
Thanks,
Floor
android xml coding-style paint
Paul mennega
source share