Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   ~ Copyright (C) 2014 The Android Open Source Project
      4   ~
      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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:internal="http://schemas.android.com/apk/prv/res/android"
     20     android:id="@+id/status_bar_latest_event_content"
     21     android:layout_width="match_parent"
     22     android:layout_height="64dp"
     23     internal:layout_minHeight="64dp"
     24     internal:layout_maxHeight="64dp"
     25     >
     26     <ImageView android:id="@+id/icon"
     27         android:layout_width="40dp"
     28         android:layout_height="40dp"
     29         android:layout_marginTop="12dp"
     30         android:layout_marginStart="12dp"
     31         android:layout_marginEnd="12dp"
     32         android:scaleType="centerInside"
     33         />
     34     <DateTimeView android:id="@+id/time"
     35         android:textAppearance="@android:style/TextAppearance.Material.Notification.Time"
     36         android:layout_width="wrap_content"
     37         android:layout_height="wrap_content"
     38         android:layout_marginEnd="8dp"
     39         android:layout_alignParentEnd="true"
     40         android:layout_alignBaseline="@id/title"
     41         android:singleLine="true"
     42         android:gravity="center"
     43         android:paddingStart="8dp"
     44         android:visibility="gone"
     45         />
     46     <TextView android:id="@+id/title"
     47         android:textAppearance="@android:style/TextAppearance.Material.Notification.Title"
     48         android:layout_width="match_parent"
     49         android:layout_height="wrap_content"
     50         android:layout_toEndOf="@id/icon"
     51         android:layout_toStartOf="@id/time"
     52         android:singleLine="true"
     53         android:ellipsize="marquee"
     54         android:fadingEdge="horizontal"
     55         />
     56     <ImageView android:id="@+id/profile_badge_line3"
     57         android:layout_width="@*android:dimen/notification_badge_size"
     58         android:layout_height="@*android:dimen/notification_badge_size"
     59         android:layout_below="@id/title"
     60         android:layout_marginStart="4dp"
     61         android:layout_marginEnd="8dp"
     62         android:layout_alignParentEnd="true"
     63         android:scaleType="fitCenter"
     64         android:visibility="gone"
     65         />
     66     <TextView android:id="@+id/text"
     67         android:textAppearance="@android:style/TextAppearance.Material.Notification"
     68         android:layout_width="wrap_content"
     69         android:layout_height="wrap_content"
     70         android:layout_alignStart="@id/title"
     71         android:layout_below="@id/title"
     72         android:layout_toStartOf="@id/profile_badge_line3"
     73         android:singleLine="true"
     74         android:ellipsize="marquee"
     75         android:fadingEdge="horizontal"
     76         />
     77 </RelativeLayout>
     78