For some reason (you don't want to know believe me), I had to put a ListView in a PopupWindow. In more recent versions of Android (newer than Gingerbread) there is the convenient android.widget.ListPopupWindow class which does that job for you.
But for Gingerbread, you'll have to put the list in the PopupWindow. That's what I did, it showed up fine when I show the popup, I could scroll the ListView, but sadness, the OnItemClick of the OnItemClickListener would not get fired when pressing a item in the ListView.
After spending way to much time (getting the Android Java source code associated with the Android jar in Eclipse and stepping through the code in the debugger), I discovered that I had to set the PopupWindow to be focusable:
And then voila, the OnItemClick gets called!
Hope it helps someone!