if (_spinnerAdp.isEmpty())
{
// GetAddItemAdapter just returns an ArrayAdapter of 1 string
_spinnerAdp.setAdapter(GetAddItemAdapter(this));
_spinnerAdp.setSelection(-1);
_spinnerAdp.setOnItemSelectedListener(new OnItemSelectedListener()
{
public void onItemSelected(AdapterView<?> arg0, View arg1, int position, long id)
{
NewItem()
}
public void onNothingSelected(AdapterView<?> arg0)
{
//when does this happen?
}
});
}Does anyone have a method to do this? I have seen "add item" selections in spinners before in other UI Frameworks and think it is intuitive way to get this done. I am not stuck on a spinner though if there is another widget that is easier to get this same thing done...
Thanks
-- You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment