Home | History | Annotate | Download | only in layout
      1 <!--
      2      Copyright (C) 2015 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 <com.android.systemui.volume.ZenFooter xmlns:android="http://schemas.android.com/apk/res/android"
     17     xmlns:tools="http://schemas.android.com/tools"
     18     android:id="@+id/volume_zen_footer"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:orientation="vertical"
     22     android:paddingBottom="8dp" > <!-- extends LinearLayout -->
     23 
     24     <View
     25         android:id="@+id/zen_embedded_divider"
     26         android:layout_width="match_parent"
     27         android:layout_height="1dp"
     28         android:layout_marginTop="8dp"
     29         android:background="@color/qs_tile_divider" />
     30 
     31     <RelativeLayout
     32         android:id="@+id/zen_introduction"
     33         android:layout_width="match_parent"
     34         android:layout_height="wrap_content"
     35         android:layout_marginStart="16dp"
     36         android:layout_marginEnd="16dp"
     37         android:paddingBottom="8dp"
     38         android:background="@drawable/zen_introduction_message_background"
     39         android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent.Light">
     40 
     41         <ImageView
     42             android:id="@+id/zen_introduction_confirm"
     43             android:layout_width="48dp"
     44             android:layout_height="48dp"
     45             android:layout_marginEnd="8dp"
     46             android:layout_alignParentEnd="true"
     47             android:background="@drawable/btn_borderless_rect"
     48             android:clickable="true"
     49             android:contentDescription="@string/accessibility_desc_close"
     50             android:scaleType="center"
     51             android:src="@drawable/ic_close_white_rounded" />
     52 
     53         <TextView
     54             android:id="@+id/zen_introduction_message"
     55             android:layout_width="match_parent"
     56             android:layout_height="wrap_content"
     57             android:layout_marginTop="12dp"
     58             android:layout_marginStart="24dp"
     59             android:textDirection="locale"
     60             android:lineSpacingMultiplier="1.20029"
     61             android:layout_toStartOf="@id/zen_introduction_confirm"
     62             android:text="@string/zen_alarms_introduction"
     63             android:textAppearance="@style/TextAppearance.QS.Introduction" />
     64 
     65         <View
     66             android:layout_width="0dp"
     67             android:layout_height="16dp"
     68             android:layout_below="@id/zen_introduction_message"
     69             android:layout_alignParentEnd="true" />
     70 
     71     </RelativeLayout>
     72 
     73 
     74     <LinearLayout
     75         android:layout_width="match_parent"
     76         android:layout_height="wrap_content"
     77         android:gravity="center_vertical"
     78         android:orientation="horizontal" >
     79 
     80         <ImageView
     81             android:id="@+id/volume_zen_icon"
     82             android:layout_width="@dimen/volume_button_size"
     83             android:layout_height="@dimen/volume_button_size"
     84             android:layout_marginEnd="7dp"
     85             android:scaleType="center" />
     86 
     87         <LinearLayout
     88             android:layout_width="0dp"
     89             android:layout_height="wrap_content"
     90             android:layout_weight="1"
     91             android:orientation="vertical" >
     92 
     93             <TextView
     94                 android:id="@+id/volume_zen_summary_line_1"
     95                 android:layout_width="match_parent"
     96                 android:layout_height="wrap_content"
     97                 android:textDirection="locale"
     98                 android:textAppearance="@style/TextAppearance.Volume.ZenSummary" />
     99 
    100             <TextView
    101                 android:id="@+id/volume_zen_summary_line_2"
    102                 android:layout_width="match_parent"
    103                 android:layout_height="wrap_content"
    104                 android:layout_marginTop="1dp"
    105                 android:textDirection="locale"
    106                 android:textAppearance="@style/TextAppearance.Volume.ZenDetail" />
    107 
    108         </LinearLayout>
    109 
    110     </LinearLayout>
    111 
    112     <TextView
    113         android:id="@+id/volume_zen_end_now"
    114         style="@style/QSBorderlessButton"
    115         android:layout_width="wrap_content"
    116         android:layout_height="wrap_content"
    117         android:layout_gravity="end"
    118         android:layout_marginEnd="8dp"
    119         android:clickable="true"
    120         android:focusable="true"
    121         android:paddingStart="15dp"
    122         android:paddingEnd="15dp"
    123         android:text="@string/volume_zen_end_now"
    124         android:textColor="?android:attr/colorAccent"
    125         android:textAppearance="@style/TextAppearance.QS.DetailButton" />
    126 
    127 </com.android.systemui.volume.ZenFooter>
    128