summaryrefslogtreecommitdiff
path: root/core/java/android/app/DatePickerDialog.java
Commit message (Collapse)AuthorAgeFilesLines
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I8789f8499d4dca08580672e9e45ed9a7026dd686
* Merge "docs: fixing several minor documentation bugs" into pi-devkopriva2018-09-201-1/+1
|\ | | | | | | | | | | am: 82b0d17b39 Change-Id: Ieb1447c0d7cda629338de8d6e03f46670d8ed0b0
| * docs: fixing several minor documentation bugskopriva2018-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Test: make ds-docs Bug: 36949243 Bug: 116169695 Bug: 37001248 Bug: 37044885 Bug: 37053166 Change-Id: I844a8978518cd7214bf9d068d602902dfa7e8246 Exempt-From-Owner-Approval: Docs-only change
* | Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-141-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | For packages: android.app.usage android.app.trust android.app.timezonedetector android.app.timezone android.app.timedetector android.app.job android.app.backup android.app.assist android.app.admin android.app This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I5d15d50344d7178617418846917f693cfabf006b Merged-In: I618c5dc4462ae990d9df45c3e9ed3f092cc5138c
* Refactor DatePickerDialog constructors to avoid early callbackAlan Viverette2016-04-011-25/+32
| | | | | Bug: 27475444 Change-Id: I2536f969ca734f3977163305c1d33ee0e2e222fc
* Set DatePickerListener last during DatePickerDialog constructionAlan Viverette2016-03-081-2/+1
| | | | | | | Prevents us from calling the listener before we're fully set up. Bug: 27475444 Change-Id: I0def384b60c09c44d36e60503ddb8434055dfb6f
* Don't set date picker dialog title on date changedAlan Viverette2016-01-131-39/+10
| | | | | | | | | | This never worked as intended and we never want an automatically assigned date picker title, anyway. Also updates method annotations. Bug: 24786592 Change-Id: I6d7681f808f7ef0b7da38d8e09177dc87617fd4f
* Clean up date picker, add simple constructors and setter for listenerAlan Viverette2015-12-171-71/+123
| | | | | | Also adds annotations. Change-Id: I8498277162176840d6d6de8ad03334366e350eaa
* Force-commit changes on accept in spinner-style DatePickerDialogAlan Viverette2015-01-131-0/+3
| | | | | Bug: 19005472 Change-Id: If500c7305282a5055b4617c242871e04d91c0bc3
* Cancel the date picker dialog when BUTTON_NEGATIVE is clickedAlan Viverette2014-08-281-0/+3
| | | | | BUG: 17308290 Change-Id: I2cad1ece9eefc3c48e7574498ff9f79fe60c5f80
* Fix date and time picker stylingAlan Viverette2014-08-151-50/+34
| | | | | | | | | | | | | | Removes done buttons from widgets, fixes date picker day selection, fixes dialog layouts in landscape, updates colors. Adds API on AlertDialog for setting the view by resource ID, which is necessary to correctly inflate the view against the dialog's parent view. BUG: 16941550 BUG: 16852521 BUG: 16878697 BUG: 16838659 BUG: 17047435 Change-Id: I138858ce06cd4abf68a2c3361ec170370236b33b
* Clean up TimePicker and DatePicker stylingAlan Viverette2014-07-291-5/+4
| | | | | | | | Removes the time and date picker specific themes and defaults their theme attributes to use the alert dialog theme attribute's value. BUG: 14973897 Change-Id: Id5cc74ea0c1a379fc1ee76b354a1bb5ba329585a
* Update DatePicker widget and its related dialogFabrice Di Meglio2014-07-151-23/+51
| | | | | | | | | | | | | | | | | | - 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
* AlertDialog and AppError themes for TV.Craig Stout2014-05-131-0/+1
| | | | | | | | | | | | | | | | Leanback themes override AlertDialog styles from other themes. Makes system alert dialogs, and alert dialogs from games running on ATV, have a style more appropriate to television. Final visuals pending. Side button layout fixes DatePickerDialog and TimePickerDialog with dpad navigation. TODO: consider using side button layout for other AlertDialog cases (long messages and lists). Change-Id: I74e4e04d16d6854377580be95a87684a0385b04b
* docs: fix a bunch of links from javadocs to api guidesScott Main2012-07-241-2/+2
| | | | | | and add some attributes to Spinner and Switch Change-Id: If015ad000c1a36e19904c132e98ebff1ceaf718b
* Adding title for the date picker dialog if the calendar is not shown.Svetoslav Ganov2012-05-021-4/+35
| | | | | | | | | | | 1. The date picker dialog shows spinners and a mini calendar on tablet but on on phone the calendar is not show and the user does not know the day of the week otherwise show on the mini calendar. bug:5264972 Change-Id: I06aeb7ba1ad34d4e99628d9586ff2777e981c963
* Polish the Number/Date/Pickers per UX request.Svetoslav Ganov2012-04-021-7/+16
| | | | | | | | | | | | | | 1. Now the NumberPicker max height is a bit smaller. 2. The Time/Date picker add top and bottom margin to compensate for the shorter NumberPickers. 3. The Time/DatePicker dialogs have only "Done" button and tapping onside saves the current state. bug:6277808 Change-Id: I4c5928debb1c3b7fe126d6cd6745e3c5eb980901
* NumberPicker incorrectly shown for the old theme.Svetoslav Ganov2011-11-291-3/+4
| | | | | | | | | | | | | | | | | | | | | | | 1. NumberPicker is trying to greedily grow to its max size but if the max size is not specified the default value was the max integer which makes the widget get quite tall in some cases. Now the widget tries to reach the max size only if it has been specified. 2. NumberPicker was not computing its min width when the array of display values is set. 3. DatePicker' layout for the old Theme was adding a margin on the right of the group of spinners and if the calendar view is not shown the spinners were not centered. Added the spinners right margin to the left margin of the calendar view. 4. TimePickerDialog was using the wrong conext and was not dismissable on an outside touch. Same for the DatePickerDialog context. bug:5646161 Change-Id: Ic15f9b3e6291b76493604230ceb4f783a04d4ac7
* Adding APIs for setting whether to show week number and setting the start ↵Svetoslav Ganov2010-12-281-10/+4
| | | | | | day of week. Cleaned up the code a bit. Change-Id: Iaa7154c6912a68cd91df3ac881c324096394ea24
* 3298147 DatePicker dialog does not provide mechanism for specifying range ↵Svetoslav Ganov2010-12-221-1/+22
| | | | | | from which to select Change-Id: Ib5dd7db90ccc5b4d984914c481118049ac3648fe
* Bug 3191746. atePicker TimePicker: Dark theme is used in a Light theme appSvetoslav Ganov2010-12-171-4/+1
| | | | Change-Id: I20d0cca3b78af9db80854a57c88d6cab3b00f555
* Adding DatePciker widget based on the Calednar team code. Updated DatePciker ↵Svetoslav Ganov2010-12-071-51/+6
| | | | | | and DatePickerDialog as the second part of the Time/Date pciker refresh feature. Change-Id: Id32c614bcd799463ca33bf08fb7d5cf44f8326a6
* Holo themes and assets in progressAdam Powell2010-09-271-1/+4
| | | | Change-Id: Ic10480dc1c771d0ccd10f1d4014c945480fd6c0d
* am 70c9ffbc: am 11a72482: Merge "docs: add links from widget classes to ↵Scott Main2010-08-191-0/+3
|\ | | | | | | | | | | | | | | | | tutorials" into froyo Merge commit '70c9ffbc838271f0ea27a4780eb146287de53ef6' into gingerbread-plus-aosp * commit '70c9ffbc838271f0ea27a4780eb146287de53ef6': docs: add links from widget classes to tutorials
| * docs: add links from widget classes to tutorialsScott Main2010-08-191-0/+3
| | | | | | | | Change-Id: I817e885524951853182b0458df4a32dea1614243
* | Replaced deprecated setButton MethodcallsChristian Mehlmauer2010-06-251-16/+15
|/ | | | Change-Id: I8358b2dce25c6d5024550c54d98b4891f41b2a40
* Start using CLDR for some date-and-time strings and formats.Eric Fischer2009-05-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | | Use java.text.DateFormat where possible, since that is already using the CLDR data for the things it supports. Remove an unused date format object from DatePickerDialog. Add a new method for getting the standalone month names from applications, although @hidden for now because it is an API change. Pass the standalone month names down to native code in Time so that tztime's strftime() can use them. And then the bulk of the change: replace all the names for the months and the days of the week, and AM and PM, and yesterday, today, and tomorrow, with strings from CLDR. And replace several of the date format strings with ones derived from CLDR, but reformatted to use strftime() style instead of SimpleDateFormat style. All these resource changes go into new donottranslate-cldr.xml files and are removed from strings.xml so that they aren't part of the normal translation process and the translators don't have to bother with them (and risk messing them up).
* Automated import from //branches/donutburger/...@140780,140780Eric Fischer2009-03-241-3/+5
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+185
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-185/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-2/+2
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+185