【发布时间】:2014-11-07 02:22:38
【问题描述】:
我在我的“插入照片框架”应用程序中像本教程一样在 Android 中使用相机 http://developer.android.com/guide/topics/media/camera.html 我在 FrameLayout 中有一个 ImageView 用于插入图像框架,内部部分是透明的。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<FrameLayout
android:id="@+id/camera_container"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:gravity="top"
android:orientation="vertical" >
</FrameLayout>
<ImageView
android:id="@+id/grid"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/demo" />
</RelativeLayout>
</LinearLayout>
如何从相机中提取内部部分的帧图像?
【问题讨论】:
标签: android camera imageview android-framelayout