Sorry if this is answered already, but I can't find anything and I can't specify my search very well. I have a list view in Fragment which uses an adapter to populate it, and I want the list view item rows, to get highlighted for a second when they get clicked, and I want them to get highlighted for just half a second then get back to normal (basically like a feedback that the item row is clicked), like the default call log works in the phone app. My adapter is exending ArrayAdapter. Any ideas?
EDIT: Here's the adapter getView()
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder;
if (convertView == null) {
holder = new ViewHolder();
} else {
holder = (ViewHolder) convertView.getTag();
}
CallStats call = callsArray.get(position);
convertView = inflater.inflate(R.layout.item_row_call, null);
initializeViews(holder, convertView);
setViewsEntries(holder, call);
convertView.setTag(holder);
return convertView;
}