Java android put a variable to find a spinner id
listLanguage('test');
public void listLanguage(String test) {
final Spinner spinnerLanguage = (Spinner) findViewById(R.id....);
}
You can't do it in this way (if I understood correctly)- I mean put idSpinner in R.id..., use another approach - just create dynamically Spinner
object, in this case you can create as much Spinners as you want.
精彩评论