1<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2014 The Android Open Source Project 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14--> 15 16<FrameLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/actions_container" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:layout_marginTop="@dimen/notification_action_list_margin_top" 22 android:layout_gravity="bottom" 23 > 24 25 <LinearLayout 26 android:id="@+id/actions_container_layout" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:gravity="end" 30 android:layout_gravity="bottom" 31 android:orientation="horizontal" 32 android:background="@color/notification_action_list_background_color" 33 > 34 35 <com.android.internal.widget.NotificationActionListLayout 36 android:id="@+id/actions" 37 android:layout_width="0dp" 38 android:layout_weight="1" 39 android:layout_height="wrap_content" 40 android:minHeight="@dimen/notification_action_list_height" 41 android:orientation="horizontal" 42 android:gravity="center_vertical" 43 android:visibility="gone" 44 > 45 <!-- actions will be added here --> 46 </com.android.internal.widget.NotificationActionListLayout> 47 48 <!-- 49 This nested linear layout exists to ensure that if the neither of the contained 50 actions is visible we have some minimum padding at the end of the actions is present, 51 then there will be 12dp of padding at the end of the actions list. 52 --> 53 <LinearLayout 54 android:layout_width="wrap_content" 55 android:layout_height="match_parent" 56 android:orientation="horizontal" 57 android:minWidth="@dimen/snooze_and_bubble_gone_padding_end" 58 > 59 <ImageView 60 android:id="@+id/snooze_button" 61 android:layout_width="@dimen/notification_actions_icon_size" 62 android:layout_height="@dimen/notification_actions_icon_size" 63 android:layout_gravity="center_vertical|end" 64 android:visibility="gone" 65 android:scaleType="centerInside" 66 /> 67 68 <ImageView 69 android:id="@+id/bubble_button" 70 android:layout_width="@dimen/notification_actions_icon_size" 71 android:layout_height="@dimen/notification_actions_icon_size" 72 android:layout_gravity="center_vertical|end" 73 android:visibility="gone" 74 android:scaleType="centerInside" 75 /> 76 </LinearLayout> 77 </LinearLayout> 78</FrameLayout> 79