33
33
public ToggleButton(int x, int y, int sx, int sy, String text, int textSize) {
34
34
super(x, y, sx, sy, text, textSize);
37
public ToggleButton(float x, float y, float sx, float sy, boolean free, String text, int textSize) {
38
super(x, y, sx, sy, free, text, textSize);
38
public void drawInArea(Canvas c, RectF area, Point centre, boolean landscape) {
42
public void drawInArea(Canvas c, RectF area, PointF centre, boolean landscape) {
39
43
super.drawInArea(c, area, centre, landscape);
41
45
c.drawCircle(area.right - 10, area.bottom - 10, 5, isSelected() ? pTextS : pThinBorder);