HTC Hero Mouse BOll not working on custom ListView?
I created a custom list with
class EfficientAdapter extends BaseAdapter implements
{
private LayoutInflater mInflater;
private Context context;
public EfficientAdapter(Context context) {
mInflater = LayoutInflater.from(context);
this.context = context;
}
public View getView(final int position, View convertView,
ViewGroup parent) {
ViewHolder holder;
convertView = mInflater.inflate(R.layout.adaptor_content, null);
convertView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
and other necessary methods... also
}
using touch screen when i click on the list item OnClickListener from the list item.
but when I use Mouse Boll / Track Boll (Phone Hardware) to click the ListItem, the OnClickListener of the list item is not called.
Can anyone visit me on this phone error or my error?
any help would be appreciated.
+2
a source to share
2 answers
You can find information on this topic here:
http://groups.google.com/group/android-developers/browse_thread/thread/5696833388d162fd?pli=1
and here:
htp link: /developer.android.com/reference/android/view/View.html
to analyze onTrackballEvent (MotionEvent)
I hope this is helpful
bye
0
a source to share