blob: 1cdabc3265294e44829daf47d9b62fb9de32576c [file] [log] [blame]
Mike Doddd3b009a2015-08-11 11:16:59 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2015 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<LinearLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:id="@+id/snackbarContainer"
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
22 android:orientation="horizontal">
23
24 <!--
25 First child is also a LinearLayout to preserve it's styles from getting
26 overridden by the LayoutParams set by the WindowManager.
27 Also, it is the view being animated within the root view.
28 -->
29
30 <LinearLayout
31 android:id="@+id/snack_bar"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:orientation="horizontal"
35 android:background="#323232" >
36
37 <FrameLayout
38 android:id="@+id/snack_bar_message_wrapper"
39 style="@style/SnackBarMessageWrapper"
40 android:layout_marginTop="@dimen/snack_bar_top_bottom_margin"
41 android:layout_marginBottom="@dimen/snack_bar_top_bottom_margin"
42 android:layout_width="0dp"
43 android:layout_height="wrap_content"
44 android:layout_weight="1" >
45 <TextView
46 android:id="@+id/snack_bar_message"
47 style="@style/SnackBarText"
48 android:layout_width="match_parent"
49 android:layout_height="wrap_content" />
50 </FrameLayout>
51
52 <TextView
53 android:id="@+id/snack_bar_action"
54 style="@style/SnackBarText"
55 android:paddingLeft="@dimen/snack_bar_left_right_margin"
56 android:paddingRight="@dimen/snack_bar_left_right_margin"
57 android:layout_width="wrap_content"
58 android:layout_height="match_parent"
59 android:gravity="center_vertical"
60 android:textColor="#EEFF41"
61 android:textAllCaps="true" />
62 </LinearLayout>
63
64</LinearLayout>