如何在ZoomLayout中捏缩放并在缩放时滚动?

时间:2016-06-15 11:44:54

标签: android xml android-layout

如何在RelativeLayout中实现双指缩放处理,并保持缩放时滚动的功能?

这是我的xml文件:

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/custom_list">
    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
            <ImageView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/postImg" />
            <TextView
                android:layout_width="match_parent"
                android:layout_height="20dp"
                android:text="Date "                  
                android:id="@+id/postDate11" />
            <ImageView
                android:layout_width="match_parent"
                android:layout_height="12dp"
                android:src="@drawable/view" />
        </LinearLayout>   
    </ScrollView> 
</RelativeLayout>

0 个答案:

没有答案