You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't get how to implement the spinner change event in mainActivity.java. I'am going to load list in second spinner the on the select of first spinner.
The text was updated successfully, but these errors were encountered:
use this code to get the item selected and position:
spinner1.setOnItemClickListener(new AdapterView.OnItemClickListener() { @OverRide
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Log.d(TAG," selected spinner "+ position);
//load list here as position will tell u what item u have picked
}
});
I didn't get how to implement the spinner change event in mainActivity.java. I'am going to load list in second spinner the on the select of first spinner.
The text was updated successfully, but these errors were encountered: