MikeOrtiz / TouchImageView

Adds touch functionality to Android ImageView.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adjustViewBounds = true not work

phanvandinh opened this issue · comments

The below code Image shows a full screen with and height

 <androidx.appcompat.widget.AppCompatImageView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:adjustViewBounds="true" />

after a change to touchImageview

<com.ortiz.touchview.TouchImageView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:adjustViewBounds="true" />

Image only full height, not full width screen

how to fix this, please help me.
image2
image3

Please share origin image, or best, please make a pull request with your image by simple change this https://github.com/MikeOrtiz/TouchImageView/blob/master/app/src/main/res/drawable/nature_1.jpg to yours.

I hope it will help me to understand what's wrong here