Home | History | Annotate | Download | only in layout-v16
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   ~ Copyright (C) 2016 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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:id="@+id/notification_background"
     20     android:layout_width="match_parent"
     21     android:layout_height="wrap_content" >
     22     <ImageView android:id="@+id/icon"
     23         android:layout_width="@dimen/notification_large_icon_width"
     24         android:layout_height="@dimen/notification_large_icon_height"
     25         android:scaleType="center"
     26     />
     27     <LinearLayout
     28         android:layout_width="match_parent"
     29         android:layout_height="wrap_content"
     30         android:layout_gravity="top"
     31         android:orientation="vertical" >
     32         <LinearLayout
     33             android:id="@+id/notification_main_column_container"
     34             android:layout_width="match_parent"
     35             android:layout_height="wrap_content"
     36             android:layout_marginLeft="@dimen/notification_large_icon_width"
     37             android:layout_marginStart="@dimen/notification_large_icon_width"
     38             android:paddingTop="@dimen/notification_main_column_padding_top"
     39             android:minHeight="@dimen/notification_large_icon_height"
     40             android:orientation="horizontal">
     41             <FrameLayout
     42                 android:id="@+id/notification_main_column"
     43                 android:layout_width="match_parent"
     44                 android:layout_height="wrap_content"
     45                 android:layout_weight="1"
     46                 android:layout_marginLeft="@dimen/notification_content_margin_start"
     47                 android:layout_marginStart="@dimen/notification_content_margin_start"
     48                 android:layout_marginBottom="8dp"
     49                 android:layout_marginRight="8dp"
     50                 android:layout_marginEnd="8dp" />
     51             <FrameLayout
     52                 android:id="@+id/right_side"
     53                 android:layout_width="wrap_content"
     54                 android:layout_height="wrap_content"
     55                 android:layout_marginRight="8dp"
     56                 android:layout_marginEnd="8dp"
     57                 android:paddingTop="@dimen/notification_right_side_padding_top">
     58                 <ViewStub android:id="@+id/time"
     59                     android:layout_width="wrap_content"
     60                     android:layout_height="wrap_content"
     61                     android:layout_gravity="end|top"
     62                     android:visibility="gone"
     63                     android:layout="@layout/notification_template_part_time" />
     64                 <ViewStub android:id="@+id/chronometer"
     65                     android:layout_width="wrap_content"
     66                     android:layout_height="wrap_content"
     67                     android:layout_gravity="end|top"
     68                     android:visibility="gone"
     69                     android:layout="@layout/notification_template_part_chronometer" />
     70                 <LinearLayout
     71                     android:layout_width="match_parent"
     72                     android:layout_height="wrap_content"
     73                     android:orientation="horizontal"
     74                     android:layout_gravity="end|bottom"
     75                     android:layout_marginTop="20dp">
     76                     <TextView android:id="@+id/info"
     77                         android:textAppearance="@style/TextAppearance.Compat.Notification.Info"
     78                         android:layout_width="wrap_content"
     79                         android:layout_height="wrap_content"
     80                         android:singleLine="true"
     81                     />
     82                     <ImageView android:id="@+id/right_icon"
     83                         android:layout_width="16dp"
     84                         android:layout_height="16dp"
     85                         android:layout_gravity="center"
     86                         android:layout_marginLeft="8dp"
     87                         android:layout_marginStart="8dp"
     88                         android:scaleType="centerInside"
     89                         android:visibility="gone"
     90                         android:alpha="0.6"
     91                     />
     92                 </LinearLayout>
     93             </FrameLayout>
     94         </LinearLayout>
     95         <ImageView
     96             android:layout_width="match_parent"
     97             android:layout_height="1px"
     98             android:id="@+id/action_divider"
     99             android:visibility="gone"
    100             android:layout_marginLeft="@dimen/notification_large_icon_width"
    101             android:layout_marginStart="@dimen/notification_large_icon_width"
    102             android:background="?android:attr/dividerHorizontal" />
    103         <LinearLayout
    104             android:id="@+id/actions"
    105             android:layout_width="match_parent"
    106             android:layout_height="wrap_content"
    107             android:orientation="horizontal"
    108             android:visibility="gone"
    109             android:showDividers="middle"
    110             android:divider="?android:attr/listDivider"
    111             android:dividerPadding="12dp"
    112             android:layout_marginLeft="@dimen/notification_large_icon_width"
    113             android:layout_marginStart="@dimen/notification_large_icon_width" >
    114             <!-- actions will be added here -->
    115         </LinearLayout>
    116     </LinearLayout>
    117 </FrameLayout>