Improved incoming call view

This commit is contained in:
Sylvain Berfini 2012-07-25 10:13:28 +02:00
parent 2d2e14647f
commit 6e207f19ac
4 changed files with 29 additions and 12 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -5,26 +5,42 @@
android:layout_height="match_parent"
android:background="@drawable/background">
<ImageView
android:layout_width="match_parent"
android:layout_height="75dp"
android:scaleType="fitXY"
android:src="@drawable/header_incoming" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="30dp"
android:orientation="vertical">
<TextView
android:id="@+id/incoming_caller_number"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.9"
android:background="@drawable/dialer_address_background"
android:gravity="center_vertical"
android:paddingLeft="20dp"
android:textColor="@android:color/white"
android:textSize="22dp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitCenter"
android:src="@drawable/sel_call" />
<TextView
android:id="@+id/incoming_caller_number"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:paddingLeft="20dp"
android:textColor="@android:color/white"
android:textSize="22dp" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.1"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingTop="30dip" >

View file

@ -151,6 +151,7 @@ public final class LinphoneService extends Service implements LinphoneServiceLis
mNM = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
mNM.cancel(INCALL_NOTIF_ID); // in case of crash the icon is not removed
mNotif = new Notification(R.drawable.status_level, "", System.currentTimeMillis());
mNotif.iconLevel=IC_LEVEL_ORANGE;
mNotif.flags |= Notification.FLAG_ONGOING_EVENT;