[TIMOB-26873] Android: Add "style" property to "Ti.UI.OptionDialog" for bottom-sheet support
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android |
| Labels | OptionDialog, android, dialog, engArch, material-design, parity, style |
| Reporter | Joshua Quick |
| Assignee | Joshua Quick |
| Created | 2019-03-01T19:22:00.000+0000 |
| Updated | 2020-05-04T15:56:17.000+0000 |
Description
*Summary:*
On Android, the
Ti.UI.OptionDialog currently displays a modal dialog at the center of the screen.
!Android-OptionDialog-Default.png|thumbnail!
We would also like the ability to display the option dialog as a "BottomSheet" dialog based on Google's material design here...
https://material.io/design/components/sheets-bottom.html
!Android-OptionDialog-BottomStyle.png|thumbnail!
*Recommended Solution:*
Add a creation-only "style" property to Ti.UI.OptionDialog. By default (when not assigned), it would default to the current dialog we have. When the "style" property is set to a bottom-sheet constant, then it should use the [BottomSheetDialog](https://developer.android.com/reference/android/support/design/widget/BottomSheetDialog) Android class instead.
*Note:*
This feature is currently available via the following module...
https://github.com/hansemannn/titanium-android-bottom-sheet
Attachments
| File | Date | Size |
|---|---|---|
| Android-OptionDialog-BottomStyle.png | 2019-03-01T19:25:24.000+0000 | 734134 |
| Android-OptionDialog-Default.png | 2019-03-01T19:14:41.000+0000 | 38674 |
No comments