diff options
author | Isaac Katzenelson <isaack@android.com> | 2012-09-17 12:00:46 -0700 |
---|---|---|
committer | Isaac Katzenelson <isaack@android.com> | 2012-09-17 12:00:46 -0700 |
commit | ac9086a9f8d094432a29a2c46fd2e8d84bf85578 (patch) | |
tree | cfb84be7d5639b13e52ac70235c070cdbb3dfe72 /res/layout-land | |
parent | e3f242f0c72b77eae588369775b8dc3cb59d4e27 (diff) | |
download | android_packages_apps_DeskClock-ac9086a9f8d094432a29a2c46fd2e8d84bf85578.tar.gz android_packages_apps_DeskClock-ac9086a9f8d094432a29a2c46fd2e8d84bf85578.tar.bz2 android_packages_apps_DeskClock-ac9086a9f8d094432a29a2c46fd2e8d84bf85578.zip |
Temporary fix for landscape more for alert
Bug:7179133
Change-Id: Ib3dbdf8c311f7096ab9d0e54c48f4bb63817286e
Diffstat (limited to 'res/layout-land')
-rw-r--r-- | res/layout-land/alarm_alert.xml | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/res/layout-land/alarm_alert.xml b/res/layout-land/alarm_alert.xml new file mode 100644 index 000000000..9b72a5482 --- /dev/null +++ b/res/layout-land/alarm_alert.xml @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingTop="?android:attr/actionBarSize" + android:background="@color/black" > + <LinearLayout + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="3" + android:orientation="vertical" + android:paddingLeft="8dip" + android:paddingRight="8dip"> + + <TextView android:id="@+id/alertTitle" + android:singleLine="true" + android:ellipsize="end" + style="@style/header" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <com.android.deskclock.DigitalClock + android:id="@+id/digitalClock" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:paddingTop="8dip" + android:paddingBottom="24dp" + android:baselineAligned="true" + > + <TextView + android:id="@+id/timeDisplayHours" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingRight="@dimen/time_margin_right" + android:singleLine="true" + android:ellipsize="none" + style="@style/big_bold" + android:textColor="@color/clock_white"/> + <TextView + android:id="@+id/timeDisplayMinutes" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="@style/big_thin" + android:singleLine="true" + android:ellipsize="none" + android:textColor="@color/clock_white" /> + <TextView + android:id="@+id/am_pm" + android:layout_height="wrap_content" + style="@style/label" + android:singleLine="true" + android:ellipsize="none" + android:textColor="@color/clock_white" + /> + </com.android.deskclock.DigitalClock> + </LinearLayout> + + <LinearLayout + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="2" + android:orientation="vertical" + android:paddingLeft="8dip" + android:paddingRight="8dip"> + <Button + android:id="@+id/snooze" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:paddingTop="70dip" + android:paddingBottom="70dp" + style="@style/medium_bold" + android:textColor="@color/clock_white" + android:background="?android:attr/selectableItemBackground" + android:text="@string/alarm_alert_snooze_text" /> + <Button + android:id="@+id/dismiss" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:textColor="@color/clock_white" + style="@style/medium_bold" + android:background="?android:attr/selectableItemBackground" + android:gravity="center" + android:text="@string/alarm_alert_dismiss_text" /> + </LinearLayout> +</LinearLayout> |