首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

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

2012-08-07 
为什么图片在popupwindow中不能放大缩小??多点缩放图片DEMOhttp://www.eoeandroid.com/thread-109224-1-1.

为什么图片在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> 

热点排行