summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2011-02-24 16:48:38 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-02-24 16:48:38 -0800
commit30b1fe07a73d522e97b7140cc227232a0c8c1a1e (patch)
tree686a7e7e3d467674c193f177c0ceecf556441553
parentd5623fab340c65d437eb7b52670eab07ae19a15d (diff)
parent5f3f6ce154ca1a0075f8ca13872d74f935acbe3d (diff)
downloadframeworks_base-30b1fe07a73d522e97b7140cc227232a0c8c1a1e.zip
frameworks_base-30b1fe07a73d522e97b7140cc227232a0c8c1a1e.tar.gz
frameworks_base-30b1fe07a73d522e97b7140cc227232a0c8c1a1e.tar.bz2
Merge "Exposing the CalendarView of the DatePicker."
-rw-r--r--api/current.xml11
-rw-r--r--core/java/android/widget/DatePicker.java11
2 files changed, 22 insertions, 0 deletions
diff --git a/api/current.xml b/api/current.xml
index 37318ff..bf388b1 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -249696,6 +249696,17 @@
<parameter name="defStyle" type="int">
</parameter>
</constructor>
+<method name="getCalendarView"
+ return="android.widget.CalendarView"
+ abstract="false"
+ native="false"
+ synchronized="false"
+ static="false"
+ final="false"
+ deprecated="not deprecated"
+ visibility="public"
+>
+</method>
<method name="getCalendarViewShown"
return="boolean"
abstract="false"
diff --git a/core/java/android/widget/DatePicker.java b/core/java/android/widget/DatePicker.java
index cd3862f..df32c51 100644
--- a/core/java/android/widget/DatePicker.java
+++ b/core/java/android/widget/DatePicker.java
@@ -366,12 +366,23 @@ public class DatePicker extends FrameLayout {
* Gets whether the {@link CalendarView} is shown.
*
* @return True if the calendar view is shown.
+ * @see #getCalendarView()
*/
public boolean getCalendarViewShown() {
return mCalendarView.isShown();
}
/**
+ * Gets the {@link CalendarView}.
+ *
+ * @return The calendar view.
+ * @see #getCalendarViewShown()
+ */
+ public CalendarView getCalendarView () {
+ return mCalendarView;
+ }
+
+ /**
* Sets whether the {@link CalendarView} is shown.
*
* @param shown True if the calendar view is to be shown.