use setAlpha(float) method, not the deprecated one