Home | History | Annotate | Download | only in layout-v21
      1 <?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 
     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:divider="@drawable/horizontal_divider"
     22     android:orientation="vertical"
     23     android:showDividers="middle">
     24 
     25     <FrameLayout
     26         xmlns:android="http://schemas.android.com/apk/res/android"
     27         android:id="@+id/swn_expanded_hitspace"
     28         android:layout_width="match_parent"
     29         android:layout_height="64dp"
     30         android:background="@drawable/notification_background">
     31 
     32         <include layout="@layout/stopwatch_notification_icon" />
     33 
     34         <LinearLayout
     35             android:layout_width="match_parent"
     36             android:layout_height="wrap_content"
     37             android:layout_gravity="fill_vertical"
     38             android:layout_marginStart="@dimen/notification_icon_size"
     39             android:gravity="center"
     40             android:minHeight="@dimen/notification_icon_size"
     41             android:orientation="vertical"
     42             android:paddingBottom="2dp"
     43             android:paddingEnd="8dp"
     44             android:paddingTop="2dp">
     45 
     46             <LinearLayout
     47                 android:id="@+id/line1"
     48                 android:layout_width="match_parent"
     49                 android:layout_height="wrap_content"
     50                 android:orientation="horizontal">
     51 
     52                 <Chronometer
     53                     android:id="@+id/swn_expanded_chronometer"
     54                     android:layout_width="0dip"
     55                     android:layout_height="wrap_content"
     56                     android:layout_weight="1"
     57                     android:singleLine="true"
     58                     android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Title" />
     59             </LinearLayout>
     60 
     61             <TextView
     62                 android:id="@+id/swn_expanded_laps"
     63                 android:layout_width="match_parent"
     64                 android:layout_height="wrap_content"
     65                 android:ellipsize="marquee"
     66                 android:fadingEdge="horizontal"
     67                 android:singleLine="true"
     68                 android:textAppearance="@style/TextAppearance.StatusBar.EventContent"
     69                 android:visibility="gone" />
     70         </LinearLayout>
     71     </FrameLayout>
     72 
     73     <LinearLayout
     74         android:layout_width="match_parent"
     75         android:layout_height="wrap_content"
     76         android:layout_marginStart="@dimen/notification_icon_size"
     77         android:divider="@drawable/divider"
     78         android:orientation="horizontal" >
     79 
     80         <TextView
     81             android:id="@+id/swn_left_button"
     82             android:layout_width="0dp"
     83             android:layout_height="48dp"
     84             android:layout_weight="1"
     85             android:background="@drawable/notification_background"
     86             android:drawablePadding="8dp"
     87             android:ellipsize="end"
     88             android:gravity="start|center_vertical"
     89             android:singleLine="true"
     90             android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Action" />
     91 
     92         <TextView
     93             android:id="@+id/swn_right_button"
     94             android:layout_width="0dp"
     95             android:layout_height="48dp"
     96             android:layout_weight="1"
     97             android:background="@drawable/notification_background"
     98             android:drawablePadding="8dp"
     99             android:ellipsize="end"
    100             android:gravity="start|center_vertical"
    101             android:singleLine="true"
    102             android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Action" />
    103     </LinearLayout>
    104 
    105 </LinearLayout>