IMHO the definition of “parent” and “children” spinner is quite misleading here. You’re basically asking to update the model of the second and third spinner when the value of the first one changes.
What I would do is to implement such a listener for the first spinner and to change the adapter for the second and the third inside the onItemSelected
method.
public class SpinnerChangeListener implements OnItemSelectedListener {
public void onItemSelected(AdapterView<?> parent,
View view, int pos, long id) {
String conversionType = parent.getItemAtPosition(pos).toString();
// here you've to perform the model update of the second
// and third spinner based on the value of conversionType
}
public void onNothingSelected(AdapterView parent) {
// Do nothing.
}
}
3
solved How to set multiple Spinner in Android? [closed]