I cannot figure this one out, but I cannot seem to get android to ever cooperate with simple math. I have created a ZoomControls that changes text size of a TextView. Seems simple. I increase the font size no problem. Subtracting just adds it for some weird reason.
zoom.setOnZoomOutClickListener(new View.OnClickListener() {
public void onClick(View v) {
float val = songtext.getTextSize();
float test = (val - 1);
songtext.setTextSize(test);
}
});
Judging by this simple code, the font size should be subtracted by 1 everytime the button is pressed. Instead it increases by 1. ??? I am ripping my hair out.