• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<LinearLayout android:id="@+id/notification_main_column_container"
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:minHeight="@dimen/notification_large_icon_height"
23    android:orientation="horizontal"
24    android:paddingRight="12dp"
25    android:paddingEnd="12dp">
26    <ImageView android:id="@+id/icon"
27        android:layout_width="@dimen/notification_large_icon_width"
28        android:layout_height="@dimen/notification_large_icon_height"
29        android:background="@drawable/notification_tile_bg"
30        android:scaleType="center"
31    />
32    <FrameLayout
33        android:id="@+id/notification_main_column"
34        android:layout_width="match_parent"
35        android:layout_height="wrap_content"
36        android:paddingLeft="12dp"
37        android:paddingStart="12dp"
38        android:paddingTop="@dimen/notification_main_column_padding_top"
39        android:layout_weight="1"/>
40    <FrameLayout
41        android:id="@+id/right_side"
42        android:layout_width="wrap_content"
43        android:layout_height="wrap_content"
44        android:paddingTop="12dp"
45        android:paddingLeft="12dp">
46        <include
47            layout="@layout/notification_template_part_time"
48            android:layout_width="wrap_content"
49            android:layout_height="wrap_content"
50            android:layout_gravity="end|top"
51            android:visibility="gone"/>
52        <LinearLayout
53            android:layout_width="match_parent"
54            android:layout_height="wrap_content"
55            android:layout_gravity="end|bottom"
56            android:layout_marginTop="18dp"
57            android:orientation="horizontal">
58            <TextView android:id="@+id/info"
59                android:layout_width="wrap_content"
60                android:layout_height="wrap_content"
61                android:layout_gravity="center"
62                android:singleLine="true"
63                android:textAppearance="@style/TextAppearance.Compat.Notification.Info"
64            />
65            <ImageView android:id="@+id/right_icon"
66                android:layout_width="24dp"
67                android:layout_height="24dp"
68                android:layout_gravity="center"
69                android:layout_marginLeft="8dp"
70                android:alpha="0.7"
71                android:scaleType="center"
72                android:visibility="gone"
73            />
74        </LinearLayout>
75    </FrameLayout>
76</LinearLayout>