Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d56ab1e3 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Sync of the DatePicker attributes with the public Java APIs."

parents 92454de6 c49a8be0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -162,7 +162,7 @@ public class DatePicker extends FrameLayout {
        int endYear = attributesArray.getInt(R.styleable.DatePicker_endYear, DEFAULT_END_YEAR);
        String minDate = attributesArray.getString(R.styleable.DatePicker_minDate);
        String maxDate = attributesArray.getString(R.styleable.DatePicker_maxDate);
        int layoutResourceId = attributesArray.getResourceId(R.styleable.DatePicker_layout,
        int layoutResourceId = attributesArray.getResourceId(R.styleable.DatePicker_internalLayout,
                R.layout.date_picker);
        attributesArray.recycle();

+7 −3
Original line number Diff line number Diff line
@@ -3376,9 +3376,13 @@
    </declare-styleable>

    <declare-styleable name="DatePicker">
        <!-- The first year (inclusive), for example "1940". -->
        <!-- The first year (inclusive), for example "1940".
             {@deprecated Use minDate instead.}
         -->
        <attr name="startYear" format="integer" />
        <!-- The last year (inclusive), for example "2010". -->
        <!-- The last year (inclusive), for example "2010".
             {@deprecated Use maxDate instead.}
         -->
        <attr name="endYear" format="integer" />
        <!-- Whether the spinners are shown. -->
        <attr name="spinnersShown" format="boolean" />
@@ -3389,7 +3393,7 @@
        <!-- The minimal date shown by this calendar view in mm/dd/yyyy format. -->
        <attr name="maxDate" format="string" />
        <!-- @hide The layout of the time picker. -->
        <attr name="layout" />
        <attr name="internalLayout" format="reference"  />
    </declare-styleable>

    <declare-styleable name="TwoLineListItem">
+2 −2
Original line number Diff line number Diff line
@@ -532,7 +532,7 @@ please see styles_device_defaults.xml.
    </style>

    <style name="Widget.DatePicker">
        <item name="android:layout">@android:layout/date_picker</item>
        <item name="android:internalLayout">@android:layout/date_picker</item>
        <item name="android:calendarViewShown">false</item>
    </style>

@@ -1665,7 +1665,7 @@ please see styles_device_defaults.xml.
    </style>

    <style name="Widget.Holo.DatePicker" parent="Widget.DatePicker">
        <item name="android:layout">@android:layout/date_picker_holo</item>
        <item name="android:internalLayout">@android:layout/date_picker_holo</item>
        <item name="android:calendarViewShown">true</item>
    </style>