Here is the simplified code I am using. I have tried a thousand
different ways, and each time the items show up when you click the
arrow, but do not show in the minimized spinner box. Anyone know what
I've done wrong? PS. Using the newest 1.1 r1 of the sdk.
thanks,
Spinner tmp = new Spinner (c);
tmp.setAdapter( getListItems( chosen.variables.get(s)) );
tmp.setPrompt( getResources().getString( R.string.pleaseSelect ) );
/**
*/
private PhraseAdapterLayout getListItems( Phrase.Variable var) {
ArrayList<Team> values = new ArrayList<Team>();
values.add(new Team("name", "score");
PhraseAdapterLayout retval = new PhraseAdapterLayout(c, values,
width);
retval.setColor(Color.BLUE);
return retval;
}
@Override
public View getView(int position, View convertView, ViewGroup parent)
{
TextView tv = new TextView(context);
tv.setText("TEAM NAME");
return tv;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---