1 void checkforTextView(View v) 2 { 3 if(v instanceof TextView) 4 { 5 // This is a TextView control 6 } else { 7 // This is not a TextView control 8 } 9 }