Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
CustomNotifications / res / layout /

notification_expanded.xml

       
        1
       
       
        <?xml version="1.0" encoding="utf-8"?>
       
       
        2
       
       
       
       
        3
       
       
        <!--
       
       
        4
       
       
        * Copyright (C) 2013 The Android Open Source Project
       
       
        5
       
       
        * Licensed under the Apache License, Version 2.0 (the "License");
       
       
        6
       
       
        * you may not use this file except in compliance with the License.
       
       
        7
       
       
        * You may obtain a copy of the License at
       
       
        8
       
       
        *
       
       
        9
       
       
        *       http://www.apache.org/licenses/LICENSE-2.0
       
       
        10
       
       
        *
       
       
        11
       
       
        * Unless required by applicable law or agreed to in writing, software
       
       
        12
       
       
        * distributed under the License is distributed on an "AS IS" BASIS,
       
       
        13
       
       
        * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
       
        14
       
       
        * See the License for the specific language governing permissions and
       
       
        15
       
       
        * limitations under the License.
       
       
        16
       
       
        -->
       
       
        17
       
       
       
       
        18
       
       
        <!-- Layout for the expanded notification. -->
       
       
        19
       
       
       
       
        20
       
       
        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       
       
        21
       
       
        android:orientation="horizontal"
       
       
        22
       
       
        android:layout_width="fill_parent"
       
       
        23
       
       
        android:layout_height="fill_parent"
       
       
        24
       
       
        android:gravity="right|top">
       
       
        25
       
       
       
       
        26
       
       
       
       
        27
       
       
        <RelativeLayout
       
       
        28
       
       
        android:layout_width="fill_parent"
       
       
        29
       
       
        android:layout_height="fill_parent">
       
       
        30
       
       
       
       
        31
       
       
        <TextView
       
       
        32
       
       
        android:layout_width="wrap_content"
       
       
        33
       
       
        android:layout_height="wrap_content"
       
       
        34
       
       
        android:textAppearance="@style/NotificationContent"
       
       
        35
       
       
        android:text="@string/expanded"
       
       
        36
       
       
        android:layout_gravity="center_vertical"
       
       
        37
       
       
        android:layout_alignParentTop="false"
       
       
        38
       
       
        android:layout_alignParentLeft="true"
       
       
        39
       
       
        android:layout_toLeftOf="@+id/imageView"
       
       
        40
       
       
        android:gravity="center"
       
       
        41
       
       
        android:layout_centerVertical="true" />
       
       
        42
       
       
       
       
        43
       
       
        <ImageView
       
       
        44
       
       
        android:layout_width="wrap_content"
       
       
        45
       
       
        android:layout_height="wrap_content"
       
       
        46
       
       
        android:src="@drawable/robot_expanded"
       
       
        47
       
       
        android:layout_gravity="right|top"
       
       
        48
       
       
        android:layout_alignParentTop="true"
       
       
        49
       
       
        android:layout_alignParentRight="true"
       
       
        50
       
       
        android:id="@+id/imageView"
       
       
        51
       
       
        android:contentDescription="@string/expanded_image" />
       
       
        52
       
       
        </RelativeLayout>
       
       
        53
       
       
       
       
        54
       
       
       
       
        55
       
       
        </LinearLayout>