I want to implement a pop-up menu with complex effects, one of which is scroll support. It looks like PopupMenu and AlertDialog cannot satisfy the requirements that I need. So I tried PopupWindow with ScrollView.
First, I prepared a layout that has a simple structure just like ApiDemo shows:
ScrollView LinearLayout with Vertical attribute TextView TextView TextView ...
Secondly, I create a PopupWindow with this layout and 200width / 300height, showing it somewhere with showAtLocation ().
I can do a scroll display and have a scroll effect, but the TextViews in LinearLayout DO NOT scroll (they are in a fixed position)!
Something is wrong, but I have no meaning. (Android3.0)
Thanks for any warmhearted person who can give me some advice.
-_- !!
Archy source share