弄了一个下午,终于搞出来了,PowerfulLayout
下面是一个功能强大的改造的例子:
可以实现以下需求:
1.两个手指进行缩放布局
2.所有子控件也随着缩放,
3.子控件该有的功能不能丢失(像button有可被点击的功能,缩放后不能丢失该功能)
相对上个例子,多了一个功能---
4.拖拽(平移)layout
运行效果图:http://pan.baidu.com/s/1geIoG8r
图片太大就不贴出来了。
布局文件test.xml、超级简单的
<?xml version="1.0" encoding="utf-8"?>
<com.example.testbitmapscale.PowerfulLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
and