summaryrefslogtreecommitdiffstats
path: root/core/res/res/layout-land
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2013-10-01 11:21:31 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-07-15 20:26:21 +0000
commitbd9152f6ee156ee473f05f6f05f238605996fca4 (patch)
tree57ccd34b9e185f0a2ecf2ad8e56933b3db65a808 /core/res/res/layout-land
parentd8176941eb6466ebe26816d79b37a808103fd81d (diff)
downloadframeworks_base-bd9152f6ee156ee473f05f6f05f238605996fca4.zip
frameworks_base-bd9152f6ee156ee473f05f6f05f238605996fca4.tar.gz
frameworks_base-bd9152f6ee156ee473f05f6f05f238605996fca4.tar.bz2
Update DatePicker widget and its related dialog
- the old DatePicker widget is still there for obvious layout compatibility reasons - add a new delegate implementation for having a new UI - use the new delegate only for the DatePickerDialog (which does not need to be the same) - added support for Theming and light/dark Themes - added support for RTL - added support for Accessibility - verified support for Keyboard - verified that CTS tests for DatePicker are passing (for both the legacy and the new widgets) Also added a new HapticFeedbackConstants.CALENDAR_DATE and its related code for enabling day selection vibration Change-Id: I256bd7c21edd8f3b910413ca15ce26d3a5ef7d9c
Diffstat (limited to 'core/res/res/layout-land')
-rw-r--r--core/res/res/layout-land/date_picker_holo.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/core/res/res/layout-land/date_picker_holo.xml b/core/res/res/layout-land/date_picker_holo.xml
new file mode 100644
index 0000000..98e26ca
--- /dev/null
+++ b/core/res/res/layout-land/date_picker_holo.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2011 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="@dimen/datepicker_view_animator_height"
+ android:gravity="center"
+ android:orientation="horizontal" >
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_gravity="center"
+ android:background="?android:attr/datePickerHeaderSelectorBackgroundColor"
+ android:orientation="vertical" >
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="0dip"
+ android:layout_weight="1"
+ android:orientation="vertical" >
+
+ <include layout="@layout/date_picker_header_view" />
+
+ <include layout="@layout/date_picker_selected_date" />
+ </LinearLayout>
+
+ <include layout="@layout/date_picker_done_button" />
+ </LinearLayout>
+
+ <include layout="@layout/date_picker_view_animator" />
+
+</LinearLayout> \ No newline at end of file