res/layout/ongoing_call_notification.xml
changeset 839 0e5b95573614
parent 826 8649e502be0e
equal deleted inserted replaced
822:696b2880c994 839:0e5b95573614
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!-- Copyright (C) 2008 The Android Open Source Project
       
     3 
       
     4      Licensed under the Apache License, Version 2.0 (the "License");
       
     5      you may not use this file except in compliance with the License.
       
     6      You may obtain a copy of the License at
       
     7   
       
     8           http://www.apache.org/licenses/LICENSE-2.0
       
     9   
       
    10      Unless required by applicable law or agreed to in writing, software
       
    11      distributed under the License is distributed on an "AS IS" BASIS,
       
    12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    13      See the License for the specific language governing permissions and
       
    14      limitations under the License.
       
    15 -->
       
    16 
       
    17 <!-- Layout file for the custom "expanded view" used by the ongoing call
       
    18      Notification; see NotificationMgr.updateInCallNotification(). -->
       
    19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       
    20     android:orientation="horizontal"
       
    21     android:baselineAligned="false"
       
    22     android:gravity="center_vertical"
       
    23     android:layout_width="fill_parent"
       
    24     android:layout_height="65sp"
       
    25     android:background="@android:drawable/status_bar_item_background"
       
    26     >
       
    27 
       
    28    <ImageView android:id="@+id/icon"
       
    29         android:layout_width="wrap_content"
       
    30         android:layout_height="wrap_content"
       
    31         android:paddingLeft="4dip"
       
    32         android:layout_marginRight="6dip" />
       
    33 
       
    34    <LinearLayout
       
    35        android:layout_width="wrap_content"
       
    36        android:layout_height="wrap_content"
       
    37        android:orientation="vertical"
       
    38        >
       
    39        <!-- The appearance of these 2 lines of text matches the other
       
    40              kinds of notifications (see status_bar_latest_event.xml).
       
    41              TODO: There should probably be common styles for these, though. -->
       
    42        <Chronometer android:id="@+id/text1"
       
    43            android:textStyle="bold"
       
    44            android:textSize="18sp"
       
    45            android:textColor="#ff000000"
       
    46            android:layout_width="wrap_content"
       
    47            android:layout_height="wrap_content"
       
    48            android:singleLine="true"
       
    49            />
       
    50        <TextView android:id="@+id/text2"
       
    51            android:textSize="14sp"
       
    52            android:textColor="#ff000000"
       
    53            android:layout_width="wrap_content"
       
    54            android:layout_height="wrap_content"
       
    55            android:singleLine="true"
       
    56            android:text="@string/app_name"
       
    57            />
       
    58    </LinearLayout>
       
    59 </LinearLayout>