summaryrefslogtreecommitdiffstats
path: root/core/res/res/layout
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-04-17 18:16:06 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-17 18:16:19 +0000
commit65aea84c5a41c7c14bfcaf2f390911f8b5596acd (patch)
tree64077f9e26fb24d8161f945bb60c22e919186b2f /core/res/res/layout
parent62b5b02c4f80bed47f8e2c542d4aa2d7bbeb7c08 (diff)
parent78bf1d329a4c0210394f846be1fd1390314aefc0 (diff)
downloadframeworks_base-65aea84c5a41c7c14bfcaf2f390911f8b5596acd.zip
frameworks_base-65aea84c5a41c7c14bfcaf2f390911f8b5596acd.tar.gz
frameworks_base-65aea84c5a41c7c14bfcaf2f390911f8b5596acd.tar.bz2
Merge "Move date picker arrows out of SimpleMonthView"
Diffstat (limited to 'core/res/res/layout')
-rw-r--r--core/res/res/layout/date_picker_header_material.xml1
-rw-r--r--core/res/res/layout/day_picker_content_material.xml49
2 files changed, 50 insertions, 0 deletions
diff --git a/core/res/res/layout/date_picker_header_material.xml b/core/res/res/layout/date_picker_header_material.xml
index bda7de9..8125544 100644
--- a/core/res/res/layout/date_picker_header_material.xml
+++ b/core/res/res/layout/date_picker_header_material.xml
@@ -45,6 +45,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.Material.DatePicker.DateLabel"
+ android:gravity="start"
android:maxLines="2"
android:ellipsize="none"
tools:text="Thu, Sep 30"
diff --git a/core/res/res/layout/day_picker_content_material.xml b/core/res/res/layout/day_picker_content_material.xml
new file mode 100644
index 0000000..1852bfa
--- /dev/null
+++ b/core/res/res/layout/day_picker_content_material.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 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.
+-->
+
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <android.widget.DayPickerViewPager
+ android:id="@+id/day_picker_view_pager"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ <ImageButton
+ android:id="@+id/prev"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:minWidth="48dp"
+ android:minHeight="48dp"
+ android:src="@drawable/ic_chevron_left"
+ android:background="?attr/selectableItemBackgroundBorderless"
+ android:contentDescription="@string/date_picker_prev_month_button"
+ android:visibility="invisible" />
+
+ <ImageButton
+ android:id="@+id/next"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:minWidth="48dp"
+ android:minHeight="48dp"
+ android:src="@drawable/ic_chevron_right"
+ android:background="?attr/selectableItemBackgroundBorderless"
+ android:contentDescription="@string/date_picker_next_month_button"
+ android:visibility="invisible" />
+
+</FrameLayout>