Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26873] Android: Add "style" property to "Ti.UI.OptionDialog" for bottom-sheet support

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
LabelsOptionDialog, android, dialog, engArch, material-design, parity, style
ReporterJoshua Quick
AssigneeJoshua Quick
Created2019-03-01T19:22:00.000+0000
Updated2020-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

FileDateSize
Android-OptionDialog-BottomStyle.png2019-03-01T19:25:24.000+0000734134
Android-OptionDialog-Default.png2019-03-01T19:14:41.000+000038674

Comments

No comments

JSON Source