/** * Unhighlight button. * * @param shape the shape * @param opacity the opacity */ private void unhighlightButton(AbstractShape shape, float opacity) { MTColor c = shape.getFillColor(); c.setAlpha(opacity); shape.setFillColor(c); }
/** * Highlight button. * * @param shape the shape */ private void highlightButton(AbstractShape shape) { MTColor c = shape.getFillColor(); c.setAlpha(255); shape.setFillColor(c); }