Home | History | Annotate | Download | only in layout-sw600dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2014 Google Inc.
      4      Licensed to The Android Open Source Project.
      5 
      6      Licensed under the Apache License, Version 2.0 (the "License");
      7      you may not use this file except in compliance with the License.
      8      You may obtain a copy of the License at
      9 
     10           http://www.apache.org/licenses/LICENSE-2.0
     11 
     12      Unless required by applicable law or agreed to in writing, software
     13      distributed under the License is distributed on an "AS IS" BASIS,
     14      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15      See the License for the specific language governing permissions and
     16      limitations under the License.
     17 -->
     18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:layout_gravity="bottom">
     22 
     23     <com.android.mail.ui.ActionableToastBar
     24         android:id="@+id/toast_bar"
     25         android:layout_width="wrap_content"
     26         android:layout_height="wrap_content"
     27         android:layout_gravity="bottom"
     28         android:layout_marginLeft="@dimen/floating_action_bar_margin"
     29         android:layout_marginRight="@dimen/floating_action_bar_margin"
     30         android:layout_marginBottom="@dimen/floating_action_bar_margin"
     31         android:background="@drawable/snack_bar_edge_tablet"
     32         android:clickable="true"
     33         android:visibility="gone">
     34 
     35         <LinearLayout
     36             android:layout_width="wrap_content"
     37             android:layout_height="wrap_content"
     38             android:orientation="horizontal">
     39 
     40             <TextView
     41                 android:id="@+id/description_text"
     42                 android:layout_width="wrap_content"
     43                 android:layout_height="wrap_content"
     44                 android:layout_gravity="center_vertical"
     45                 android:layout_marginLeft="@dimen/snack_bar_margin_horizontal"
     46                 android:layout_marginRight="@dimen/snack_bar_margin_horizontal"
     47                 android:minWidth="240dp"
     48                 android:maxWidth="350dp"
     49                 android:paddingTop="@dimen/snack_bar_margin_vertical"
     50                 android:paddingBottom="@dimen/snack_bar_margin_vertical"
     51                 android:textColor="@android:color/white" />
     52 
     53             <TextView
     54                 android:id="@+id/action_text"
     55                 android:layout_width="wrap_content"
     56                 android:layout_height="wrap_content"
     57                 android:layout_gravity="center_vertical"
     58                 android:paddingTop="@dimen/snack_bar_margin_vertical"
     59                 android:paddingBottom="@dimen/snack_bar_margin_vertical"
     60                 android:textAllCaps="true"
     61                 android:textColor="@color/snack_bar_action_text_color"
     62                 style="@style/SnackBarActionTextStyle" />
     63         </LinearLayout>
     64 
     65     </com.android.mail.ui.ActionableToastBar>
     66 
     67     <Space
     68         android:layout_width="0dp"
     69         android:layout_height="match_parent"
     70         android:layout_weight="1" />
     71 
     72     <ImageButton
     73         android:id="@+id/compose_button"
     74         android:contentDescription="@string/compose"
     75         style="@style/FloatingActionButtonStyle" />
     76 
     77 </LinearLayout>
     78