I am trying to set the size of ALL text views in my app to a certain size.
public void rbFontClicked(View view) {
// Is the button now checked?
boolean checked = ((RadioButton) view).isChecked();
// Check which radio button was clicked
switch(view.getId()) {
case R.id.rbsmall:
if (checked)
//eveysingletextview.setTextSize(12)
everysingleedittext.setTextSize(12)
break;
case R.id.rbmedium:
if (checked)
// do nothing
break;
case R.id.rblarge:
if (checked)
// set dimension to large font,
break;
How would I go about referencing all the textviews? I need to do it for Edittexts aswell, so I don't want to individually reference each view, it would take forever.
TIA.