View itemView = v.getView(item); AttributeSet viewAtts = itemView.getAttributes(); Object tag = viewAtts.getAttribute(StyleConstants.NameAttribute);   if (tag != null && tag == HTML.Tag.LI) { g.setColor(Color.BLACK); int centerX = (int) (x - 12); int centerY = -1;   tmpRect.setBounds((int) x, (int) y, (int) w, (int) h); if (itemView.getViewCount() > 0) { View v1 = itemView.getView(0); if (v1 instanceof ParagraphView && v1.getViewCount() > 0) { Shape a1 = itemView.getChildAllocation(0, tmpRect); Rectangle r1 = a1 instanceof Rectangle ? (Rectangle) a1 : a1.getBounds(); ParagraphView par = (ParagraphView) v1; Shape a = par.getChildAllocation(0, r1); if (a != null) { Rectangle r = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); centerY = (int) (r.height / 2 + r.y); } } } if (centerY == -1) { centerY =(int) (h / 2 + y); } g.fillOval(centerX - 3, centerY - 3, 6, 6); }
    public void paint(Graphics g, float x, float y, float w, float h, View v,                      int item)    {      // FIXME: Not implemented.    }