读书人

为啥图片在popupwindow中不能放大缩小

发布时间: 2012-08-07 14:54:49 作者: rapoo

为什么图片在popupwindow中不能放大缩小??
多点缩放图片DEMO
http://www.eoeandroid.com/thread-109224-1-1.html
这个demo在activity是可以运行的,并且效果都是有的,为什么我把图片放入popupwindow中就没起作用呢?不能拖动,不能放大缩小!!

请教什么原因??

[解决办法]
我在你的代码上改了一下,在PopupWindow上也是可以缩放的

main.xml:

XML code
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:id="@+id/main"    android:layout_width="fill_parent"     android:layout_height="fill_parent">    <Button android:id="@+id/btn"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:text="弹出PopupWindow"/></LinearLayout> 

读书人网 >Android

热点推荐