how set background color in Area (class)?
<p>i have some source </p>

<pre><code>protected void drawLocations(Canvas canvas) {
        for (Area a : mAreaList) {

            a.onDraw(canvas);
        }   
    }
</code></pre>

<p>and some PolyArea class (I'm using the source <a href="https://github.com/catchthecows/AndroidImageMap" rel="nofollow">https://github.com/catchthecows/AndroidImageMap</a>)</p>

<pre><code>class PolyArea extends Area {
        ArrayList&lt;Integer&gt; xpoints = new ArrayList&lt;Integer&gt;();
        ArrayList&lt;Integer&gt; ypoints = new ArrayList&lt;Integer&gt;();

        // centroid point for this poly
        float _x;
        float _y;

        // number of points (don't rely on array size)      
        int _points;

        // bounding box
        int top=-1;
        int bottom=-1;
        int left=-1;
        int right=-1;

        public PolyArea(int id, String name, String coords) {
            super(id,name);

            // split the list of coordinates into points of the
            // polygon and compute a bounding box 
            String[] v = coords.split(",");

            int i=0;
            while ((i+1)&lt;v.length) {
                int x = Integer.parseInt(v[i]);
                int y = Integer.parseInt(v[i+1]);
                xpoints.add(x);
                ypoints.add(y);
                top=(top==-1)?y:Math.min(top,y);
                bottom=(bottom==-1)?y:Math.max(bottom,y);
                left=(left==-1)?x:Math.min(left,x);
                right=(right==-1)?x:Math.max(right,x);
                i+=2;
            }
            _points=xpoints.size();

            // add point zero to the end to make
            // computing area and centroid easier
            xpoints.add(xpoints.get(0));
            ypoints.add(ypoints.get(0));

            computeCentroid();
        }
</code></pre>
