【发布时间】:2015-01-17 13:13:13
【问题描述】:
我有下一个观点:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="350dp"
android:layout_height="350dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="140dp"
android:layout_height="match_parent"
android:layout_marginRight="2.5dp"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="2.5dp"
android:layout_weight="1"
android:longClickable="true"
android:scaleType="matrix"
android:src="@drawable/a1" />
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="2.5dp"
android:layout_weight="1"
android:longClickable="true"
android:scaleType="matrix"
android:src="@drawable/a2" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginLeft="2.5dp"
android:longClickable="true"
android:scaleType="matrix"
android:src="@drawable/a4" />
</LinearLayout>
</LinearLayout>
看起来像:
在此视图中,用户可以编辑查看此图片(缩放、旋转)
我必须保存编辑过的照片拼贴。如何使用缩放和旋转的照片保存视图?是否可以将位图中的编辑视图保存到应用程序缓存?
感谢您的帮助!
【问题讨论】:
-
我在一个列表中有三个位图。如何以编程方式将它们拼贴成您的图像。