Hello,
View v = getLayoutInflater().inflate(R.layout.add_contact_view, null
);
GridView gridView = (GridView) v.findViewById(R.id.gridViewNumberPad);
gridView.setAdapter(new KeyPadAdapter(MainActivity.this));
final TextView tv = (TextView) v.findViewById(R.id.addContactLabel);
gridView.setOnItemClickListener(newandroid.widget.AdapterView.OnItemClickListener()
{
@Override
public void onItemClick(AdapterView<?> parent, View v, intposition,
long id) {
tv.append((String) v.getTag());
}
});
I'm having trouble with the code above (re-used from the GridView example),
the grid displays correctly BUT I'm not getting onItemClick() callback -
confirmed w debugger. Any ideas what I maybe doing incorrectly? Running on
2.2, HTC MyTouch.
Thanks!
-- Sumeet
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en