It seems click on TextView does not register with
TextView.setOnClickListener(listener);
listener is defined as a simple:
View.OnClickListener onClickListener = new View.OnClickListener() {
public void onClick(View view) {
int id = view.getId();
Log.d(LOG_TAG, "view id: " + id);
}
};
the main code is simply:
@Override
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
TextView tv = (TextView)(findViewById(R.id.tv));
tv.setOnClickListener(onClickListener);
}
anyone has similar situation, or is there something i missed here.
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
-~----------~----~----~----~------~----~------~--~---