Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private final Paint entityPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
- public MapDrawView(Context context)
- {
- ...
- entityPaint.setColor(Color.parseColor("#004B8A"));
- }
- protected void onDraw(Canvas canvas)
- {
- ...
- canvas.drawRect(0, 0, width*elementSize, height*elementSize, entityPaint);
- }
Add Comment
Please, Sign In to add comment