나는 카메라 미리보기와 마지막으로 찍은 이미지의 ImageView를 보여주는 활동이 있습니다.손가락으로 ImageView의 높이를 조절하십시오.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/stitch_preview"
android:layout_width="fill_parent"
android:layout_height="128dp"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:scaleType="center"
android:visibility="gone"/>
<SurfaceView
android:id="@+id/camera_preview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/stitch_preview"/>
지금 ImageView는 128dp
높이로 고정되어 있습니다. ImageView에서 손가락을 끌어서이보기를 크기를 조정할 수 없습니다.
나는 다양한 힌트를 찾고 있었지만, 내가 발견 한 모든 것은 숨겨진보기를 꺼내는 것과 관련이있다. 이미 가시적 인보기의 크기를 조정하는 예제를 찾을 수 없습니다.
Tutorial for doing a pull-down "view" in android? 당신의 이미지 뷰가 표시되는 것을 가정하여
How to resize a custom view programmatically?