There are elements of EditText and TextView.
private EditText mEdit; private TextView mText; private float mTextSize=20;
Through the buttons I change the size in EditText.
... case R.id.button_plus: if (mTextSize <=72) mTextSize+=2; mEdit.setTextSize(mTextSize); break; case R.id.button_minus: if (mTextSize>=20) mTextSize-=2; mEdit.setTextSize(mTextSize); break; ...
How to display the value of the current font size in a text field (mText)? The setText method requires the CharSequence type, and I have a float (mTextSize variable).