Image rich replies: Enforce smaller max width
Fixes https://github.com/SchildiChat/SchildiChat-android/issues/172 Change-Id: I23979ef1790f9881fd57395b56e5cf6bd61326e3
This commit is contained in:
parent
dd9bbeef1b
commit
ba77e7fcc9
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="reply_thumbnail_max_width">160dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="reply_thumbnail_max_width">200dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="reply_thumbnail_max_width">240dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="reply_thumbnail_max_width">280dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="reply_thumbnail_max_width">320dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
|
@ -46,6 +46,7 @@
|
|||
<dimen name="reply_text_max_height">96sp</dimen>
|
||||
<dimen name="reply_fade_out_height">32sp</dimen>
|
||||
<dimen name="reply_thumbnail_height">120dp</dimen>
|
||||
<dimen name="reply_thumbnail_max_width">840dp</dimen>
|
||||
<!-- Resource overridden based on device width -->
|
||||
<dimen name="reply_thumbnail_max_width">120dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -35,12 +35,14 @@
|
|||
android:id="@+id/replyThumbnailView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/reply_thumbnail_height"
|
||||
android:maxWidth="@dimen/reply_thumbnail_max_width"
|
||||
android:contentDescription="@string/a11y_image"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_gravity="start"
|
||||
android:scaleType="fitStart"
|
||||
tools:layout_width="200dp"
|
||||
android:adjustViewBounds="true"
|
||||
app:layout_goneMarginTop="0dp"
|
||||
tools:layout_width="200dp"
|
||||
tools:src="@tools:sample/backgrounds/scenic" />
|
||||
|
||||
<com.ruesga.rview.widget.ExpandableViewLayout
|
||||
|
|
Loading…
Reference in New Issue