HTC Hero Mouse Ball click not working on Custom ListView?
Posted
by UMMA
on Stack Overflow
See other posts from Stack Overflow
or by UMMA
Published on 2010-05-11T10:10:34Z
Indexed on
2010/05/11
10:14 UTC
Read the original article
Hit count: 322
dear friends,
i have created custom list view using
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 list item OnClickListener of list item is called.
but when i use Mouse Ball / Track Ball (Phone Hardware) to click on ListItem OnClickListener of list item is not called.
can any one guide me is this Phone bug or My Fault?
any help would be appriciated.
© Stack Overflow or respective owner