ListView lv = (ListView)findViewById(R.id.list2);
lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView arg0, View arg1,
int arg2,
long arg3) {
Log.v(TAG, "Item clicked");
}
});
On Apr 13, 2:52 pm, SQLserver <[EMAIL PROTECTED]> wrote:
> On trying to set a setOnClickListener, I get a popup that suggests
> setting an setOnItemListener. However, I keep getting syntax errors
> for such.
> Can you provide a quick example with a setOnItemClickListener?
> thanks.
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---