Have you done some research before asking that? Anyway, it can be done by overriding onListItemClick
method, as following:
public class Test extends ListFragment {
@Override
public void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
//do the stuff
}
}