Merge "Only change picker modes when used in dialog" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
be58946330
@@ -21,4 +21,5 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:spinnersShown="true"
|
||||
android:calendarViewShown="true" />
|
||||
android:calendarViewShown="true"
|
||||
android:datePickerMode="@integer/date_picker_mode" />
|
||||
|
||||
@@ -21,4 +21,5 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:spinnersShown="true"
|
||||
android:calendarViewShown="false" />
|
||||
android:calendarViewShown="false"
|
||||
android:datePickerMode="@integer/date_picker_mode" />
|
||||
|
||||
@@ -21,4 +21,5 @@
|
||||
android:id="@+id/timePicker"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
android:timePickerMode="@integer/time_picker_mode" />
|
||||
|
||||
@@ -660,7 +660,7 @@ please see styles_device_defaults.xml.
|
||||
</style>
|
||||
|
||||
<style name="Widget.Material.TimePicker">
|
||||
<item name="timePickerMode">@integer/time_picker_mode</item>
|
||||
<item name="timePickerMode">clock</item>
|
||||
<item name="legacyLayout">@layout/time_picker_legacy_material</item>
|
||||
<!-- Attributes for new-style TimePicker. -->
|
||||
<item name="internalLayout">@layout/time_picker_material</item>
|
||||
@@ -674,7 +674,7 @@ please see styles_device_defaults.xml.
|
||||
</style>
|
||||
|
||||
<style name="Widget.Material.DatePicker">
|
||||
<item name="datePickerMode">@integer/date_picker_mode</item>
|
||||
<item name="datePickerMode">calendar</item>
|
||||
<item name="legacyLayout">@layout/date_picker_legacy_holo</item>
|
||||
<item name="calendarViewShown">true</item>
|
||||
<!-- Attributes for new-style DatePicker. -->
|
||||
|
||||
Reference in New Issue
Block a user