Prevent image bubbles to take all the screen if image received is very big and scaled down top bar in chat for tablets
This commit is contained in:
parent
834d5fc74b
commit
99731af585
5 changed files with 12 additions and 33 deletions
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:linphone="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="150dp"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageView
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/avatar_shadow_left" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/picture"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:contentDescription="@string/content_description_contact_picture"
|
||||
android:scaleType="fitEnd"
|
||||
android:src="@drawable/unknown_small" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/avatar_shadow_right" />
|
||||
|
||||
</LinearLayout>
|
|
@ -17,7 +17,9 @@
|
|||
android:adjustViewBounds="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
android:layout_weight="1"
|
||||
android:maxWidth="250dp"
|
||||
android:maxHeight="250dp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/download"
|
||||
|
|
|
@ -35,7 +35,9 @@
|
|||
android:id="@+id/image"
|
||||
android:adjustViewBounds="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="250dp"
|
||||
android:maxHeight="250dp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/download"
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
android:id="@+id/image"
|
||||
android:adjustViewBounds="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="250dp"
|
||||
android:maxHeight="250dp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/download"
|
||||
|
|
|
@ -19,7 +19,9 @@
|
|||
android:id="@+id/image"
|
||||
android:adjustViewBounds="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="250dp"
|
||||
android:maxHeight="250dp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/download"
|
||||
|
|
Loading…
Reference in a new issue