fixes #4266 'Image Dimensions should be reduced if too large" (#4279)

* height restriction

* requested changes

* removed landscape drawee view

* javadoc
This commit is contained in:
Aditya-Srivastav 2021-03-01 20:07:44 +05:30 committed by GitHub
parent 9fd6521c40
commit 9cf59f7801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 55 additions and 32 deletions

View file

@ -6,6 +6,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/mainBackground"
android:id="@+id/mediaDetailFrameLayout"
>
<LinearLayout
@ -34,8 +35,9 @@
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/mediaDetailImageView"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="@dimen/dimen_250"
android:layout_gravity="center_horizontal"
app:actualImageScaleType="none" />
<ScrollView
@ -58,13 +60,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/mediaDetailImageViewLandscape"
android:layout_width="match_parent"
android:layout_height="@dimen/dimen_250"
app:actualImageScaleType="none"
android:visibility="gone" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"