diff options
author | Danny Baumann <dannybaumann@web.de> | 2014-07-09 09:11:02 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2014-07-13 14:29:08 +0200 |
commit | 43e6be2588058cb09338517f302350b046251066 (patch) | |
tree | 8411f089fe503a84f4a978686e6d7a4b4b3a5622 /res/layout/primary_call_info.xml | |
parent | d614819ee0fe4bcb20c581af571e93314e107656 (diff) | |
download | packages_apps_InCallUI-43e6be2588058cb09338517f302350b046251066.tar.gz packages_apps_InCallUI-43e6be2588058cb09338517f302350b046251066.tar.bz2 packages_apps_InCallUI-43e6be2588058cb09338517f302350b046251066.zip |
Don't expand the contact picture behind the call buttons during call.
Doing that avoids stretching more than needed. To avoid a visual 'jump'
of the contact picture when answering the call, animate the contact
picture layout transition.
Change-Id: I6a83281ce594ad2b00aaeb161d5e1c0cb6e4bdef
Diffstat (limited to 'res/layout/primary_call_info.xml')
-rw-r--r-- | res/layout/primary_call_info.xml | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/res/layout/primary_call_info.xml b/res/layout/primary_call_info.xml index b1ee979e..821334a8 100644 --- a/res/layout/primary_call_info.xml +++ b/res/layout/primary_call_info.xml @@ -21,16 +21,25 @@ android:layout_height="0dp" android:layout_weight="1"> - <!-- Contact photo for primary call info --> - <ImageView android:id="@+id/photo" - android:layout_alignParentStart="true" - android:layout_alignParentTop="true" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:gravity="top|center_horizontal" - android:scaleType="centerCrop" - android:contentDescription="@string/contactPhoto" - android:src="@drawable/picture_unknown"/> + <FrameLayout + android:id="@+id/photo_container" + android:layout_alignParentStart="true" + android:layout_alignParentTop="true" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="top|center_horizontal" + android:animateLayoutChanges="true"> + + <!-- Contact photo for primary call info --> + <view class="com.android.incallui.CallCardFragment$PhotoImageView" + android:id="@+id/photo" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="centerCrop" + android:contentDescription="@string/contactPhoto" + android:src="@drawable/picture_unknown"/> + + </FrameLayout> <LinearLayout android:layout_width="match_parent" |