How to instantiate PopupWindow?
<p>I'm looking at <a href="http://developer.android.com/reference/android/widget/PopupWindow.html" rel="nofollow">APIs</a> and have absolutely no idea how to create and show the <code>PopupWindow</code>. Why are the APIs are written in such a way that people need to search for other resources in order to understand how to use a particular thing? </p>

<p>Well, anyway, can you please describe how can I create and show <code>PopupWindow</code>? Thanks a lot.</p>
