OSDN Git Service

Merge "docs: Add documentation for equals() method" into qt-dev
[android-x86/frameworks-base.git] / core / res / res / layout / notification_template_material_media.xml
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 <FrameLayout
19     android:id="@+id/status_bar_latest_event_content"
20     xmlns:android="http://schemas.android.com/apk/res/android"
21     android:layout_width="match_parent"
22     android:layout_height="wrap_content"
23     android:background="#00000000"
24     android:tag="media"
25     >
26     <ImageView android:id="@+id/right_icon"
27         android:layout_width="wrap_content"
28         android:layout_height="match_parent"
29         android:adjustViewBounds="true"
30         android:layout_gravity="top|end"
31         android:scaleType="centerCrop"
32     />
33     <include layout="@layout/notification_template_header"
34         android:layout_width="match_parent"
35         android:layout_height="@dimen/media_notification_header_height" />
36     <LinearLayout
37         android:layout_width="match_parent"
38         android:layout_height="wrap_content"
39         android:orientation="vertical"
40         android:id="@+id/notification_media_content"
41         >
42         <LinearLayout
43             android:id="@+id/notification_main_column"
44             android:layout_width="match_parent"
45             android:layout_height="wrap_content"
46             android:orientation="horizontal"
47             android:layout_marginStart="@dimen/notification_content_margin_start"
48             android:layout_marginTop="@dimen/notification_content_margin_top"
49             android:layout_alignParentTop="true"
50             android:tag="media"
51             >
52             <LinearLayout
53                 android:id="@+id/notification_content_container"
54                 android:layout_width="match_parent"
55                 android:layout_height="wrap_content"
56                 android:layout_gravity="fill_vertical"
57                 android:layout_weight="1"
58                 android:minHeight="@dimen/notification_min_content_height"
59                 android:paddingBottom="@dimen/notification_content_margin"
60                 android:orientation="vertical"
61                 >
62                 <include layout="@layout/notification_template_part_line1"/>
63                 <include layout="@layout/notification_template_text"/>
64             </LinearLayout>
65             <LinearLayout
66                 android:id="@+id/media_actions"
67                 android:layout_width="wrap_content"
68                 android:layout_height="wrap_content"
69                 android:layout_gravity="top|end"
70                 android:layout_marginStart="10dp"
71                 android:layoutDirection="ltr"
72                 android:orientation="horizontal"
73                 >
74                 <include
75                     layout="@layout/notification_material_media_action"
76                     android:id="@+id/action0"
77                 />
78                 <include
79                     layout="@layout/notification_material_media_action"
80                     android:id="@+id/action1"
81                 />
82                 <include
83                     layout="@layout/notification_material_media_action"
84                     android:id="@+id/action2"
85                 />
86             </LinearLayout>
87         </LinearLayout>
88         <ViewStub android:id="@+id/notification_media_seekbar_container"
89             android:layout_width="match_parent"
90             android:layout_height="wrap_content"
91             android:layout_alignParentBottom="true"
92         />
93     </LinearLayout>
94 </FrameLayout>