Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2007 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 
     17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:id="@+id/base_layout"
     19     android:layout_width="match_parent"
     20     android:layout_height="match_parent"
     21     android:orientation="vertical"> 
     22 
     23     <LinearLayout android:id="@+id/add_alarm"
     24         android:clickable="true"
     25         android:focusable="true"
     26         android:background="@android:drawable/list_selector_background"
     27         android:layout_width="match_parent"
     28         android:layout_height="wrap_content"
     29         android:orientation="horizontal">
     30 
     31         <ImageView
     32             style="@style/alarm_list_left_column"
     33             android:duplicateParentState="true"
     34             android:gravity="center"
     35             android:scaleType="center"
     36             android:src="@drawable/add_alarm" />
     37 
     38         <TextView
     39             android:duplicateParentState="true"
     40             android:layout_height="wrap_content"
     41             android:layout_width="wrap_content"
     42             android:layout_gravity="center_vertical"
     43             android:textAppearance="?android:attr/textAppearanceLarge"
     44             android:textColor="?android:attr/textColorPrimary"
     45             android:text="@string/add_alarm" />
     46 
     47     </LinearLayout>
     48 
     49     <ImageView
     50         android:layout_width="match_parent"
     51         android:layout_height="wrap_content"
     52         android:scaleType="fitXY"
     53         android:gravity="fill_horizontal"
     54         android:src="@android:drawable/divider_horizontal_dark" />
     55 
     56     <ListView
     57         android:id="@+id/alarms_list"
     58         android:layout_width="match_parent"
     59         android:layout_height="wrap_content"
     60         android:layout_weight="1" />
     61 
     62     <LinearLayout
     63         android:layout_width="match_parent"
     64         android:layout_height="wrap_content"
     65         android:orientation="horizontal" >
     66 
     67         <ImageButton android:id="@+id/desk_clock_button"
     68             style="@style/ButtonStripLeft"
     69             android:layout_width="wrap_content"
     70             android:layout_height="wrap_content"
     71             android:src="@drawable/ic_clock_strip_desk_clock"
     72             android:contentDescription="@string/desk_clock_button_description"/>
     73 
     74         <com.android.deskclock.DigitalClock
     75             style="@style/ButtonStripRight"
     76             android:layout_width="match_parent"
     77             android:layout_height="match_parent">
     78 
     79             <LinearLayout
     80                 android:layout_width="match_parent"
     81                 android:layout_height="wrap_content"
     82                 android:baselineAligned="true">
     83 
     84                 <TextView android:id="@+id/timeDisplay"
     85                     android:layout_width="wrap_content"
     86                     android:layout_height="wrap_content"
     87                     android:paddingRight="6dip"
     88                     android:textSize="48sp"
     89                     android:textColor="?android:attr/textColorPrimary" />
     90 
     91                 <TextView android:id="@+id/am_pm"
     92                     android:layout_width="wrap_content"
     93                     android:layout_height="wrap_content"
     94                     android:textAppearance="?android:attr/textAppearanceSmall"
     95                     android:textStyle="bold"
     96                     android:textColor="?android:attr/textColorPrimary" />
     97 
     98             </LinearLayout>
     99 
    100       </com.android.deskclock.DigitalClock>
    101 
    102     </LinearLayout>
    103 
    104 </LinearLayout>
    105