[AC-6064] Android AlertDialog with AndroidView improperly sizes.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2018-12-20T21:59:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android |
Reporter | Zachary Litten |
Assignee | Shak Hossain |
Created | 2018-12-14T15:13:30.000+0000 |
Updated | 2018-12-26T17:26:18.000+0000 |
Description
When creating and showing an AlertDialog on Android defined with a View inside the AlertDialog's alloy tags, even if content inside it is defined with a SIZE height there seems to be a minimum amount of space the View will take up.
I have two examples to show.
One example is with a View wrapping a Switch. The wrapping View's height is defined with SIZE.
The second example is an Empty View with its height also defined as SIZE.
Also included screenshots of both cases with layout bounds visible.
Attachments
File | Date | Size |
---|---|---|
androidAlertBug.zip | 2018-12-26T17:25:15.000+0000 | 836901 |
Screenshot_1544799474.png | 2018-12-14T15:10:36.000+0000 | 328145 |
Screenshot_1544799507.png | 2018-12-14T15:10:36.000+0000 | 346237 |
Screenshot_1544799909.png | 2018-12-14T15:10:36.000+0000 | 329902 |
Screenshot_1544799945.png | 2018-12-14T15:10:36.000+0000 | 316836 |
Hello, We need a standalone sample code that regenerates the issue to test in our end. Thanks.
I included a sample project demonstrating the behavior between multiple Alert Dialogs.