HTC Hero Mouse BOll 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:24 UTC
Read the original article
Hit count: 173
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 Boll / Track Boll (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