jayrambhia / CropperNoCropper

Instagram Style Image Cropper for Android (Library)
http://www.jayrambhia.com/project/nocropper-library
Apache License 2.0
474 stars 99 forks source link

Zoom not working inside Scrollview/Nested Scrollveiw #41

Open PlaystoreApp opened 5 years ago

PlaystoreApp commented 5 years ago

zoom not working inside the scrollview and the gesture not responding inside the scrollview/Nested scrollview

please find the below code: and also tested with CropperView also its not working the view is now just an image view. Not working in scroll sconatiner

   <android.support.v4.widget.NestedScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent">

     <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <FrameLayout
            android:id="@+id/frame_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <com.fenchtose.nocropper.CropperImageView
                android:id="@+id/cropper_view"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@color/transparent_purple"
                app:nocropper__grid_color="@color/colorAccent"
                app:nocropper__grid_opacity="0.8"
                app:nocropper__grid_thickness="0.8dp"
                android:nestedScrollingEnabled="false"
                app:nocropper__padding_color="@color/transparent_purple" />

            <android.support.v7.widget.AppCompatImageView
                android:id="@+id/snap_button"
                android:layout_width="@dimen/margin_30"
                android:layout_height="@dimen/margin_30"
                android:layout_gravity="bottom|start"
                android:layout_margin="@dimen/margin_20"
                android:src="@drawable/ic_image_enlarge" />

        </FrameLayout>

    </LinearLayout>
</android.support.v4.widget.NestedScrollView>