Home | History | Annotate | Download | only in layout-v21
      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     <include layout="@layout/notification_template_icon_group"
     23         android:layout_width="@dimen/notification_large_icon_width"
     24         android:layout_height="@dimen/notification_large_icon_height"
     25     />
     26     <LinearLayout
     27         android:layout_width="match_parent"
     28         android:layout_height="wrap_content"
     29         android:layout_gravity="top"
     30         android:layout_marginStart="@dimen/notification_large_icon_width"
     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:minHeight="@dimen/notification_large_icon_height"
     37             android:orientation="horizontal">
     38             <FrameLayout
     39                 android:id="@+id/notification_main_column"
     40                 android:layout_width="match_parent"
     41                 android:layout_height="wrap_content"
     42                 android:layout_weight="1"
     43                 android:layout_marginEnd="8dp"
     44                 android:layout_marginBottom="8dp"/>
     45             <FrameLayout
     46                 android:id="@+id/right_side"
     47                 android:layout_width="wrap_content"
     48                 android:layout_height="wrap_content"
     49                 android:layout_marginEnd="8dp"
     50                 android:paddingTop="@dimen/notification_right_side_padding_top">
     51                 <ViewStub android:id="@+id/time"
     52                     android:layout_width="wrap_content"
     53                     android:layout_height="wrap_content"
     54                     android:layout_gravity="end|top"
     55                     android:visibility="gone"
     56                     android:layout="@layout/notification_template_part_time" />
     57                 <ViewStub android:id="@+id/chronometer"
     58                     android:layout_width="wrap_content"
     59                     android:layout_height="wrap_content"
     60                     android:layout_gravity="end|top"
     61                     android:visibility="gone"
     62                     android:layout="@layout/notification_template_part_chronometer" />
     63                 <TextView android:id="@+id/info"
     64                     android:textAppearance="@style/TextAppearance.Compat.Notification.Info"
     65                     android:layout_width="wrap_content"
     66                     android:layout_height="wrap_content"
     67                     android:layout_marginTop="20dp"
     68                     android:layout_gravity="end|bottom"
     69                     android:singleLine="true"
     70                 />
     71             </FrameLayout>
     72         </LinearLayout>
     73         <ImageView
     74             android:layout_width="match_parent"
     75             android:layout_height="1dp"
     76             android:id="@+id/action_divider"
     77             android:visibility="gone"
     78             android:background="#29000000" />
     79         <LinearLayout
     80             android:id="@+id/actions"
     81             android:layout_width="match_parent"
     82             android:layout_height="wrap_content"
     83             android:layout_marginStart="-8dp"
     84             android:orientation="horizontal"
     85             android:visibility="gone"
     86         >
     87             <!-- actions will be added here -->
     88         </LinearLayout>
     89     </LinearLayout>
     90 </FrameLayout>