Improved incoming call view
This commit is contained in:
parent
2d2e14647f
commit
6e207f19ac
4 changed files with 29 additions and 12 deletions
BIN
res/drawable/header_conference.png
Normal file
BIN
res/drawable/header_conference.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
res/drawable/header_incoming.png
Normal file
BIN
res/drawable/header_incoming.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
|
@ -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" >
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue