Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6064] Android AlertDialog with AndroidView improperly sizes.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2018-12-20T21:59:56.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid
ReporterZachary Litten
AssigneeShak Hossain
Created2018-12-14T15:13:30.000+0000
Updated2018-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

FileDateSize
androidAlertBug.zip2018-12-26T17:25:15.000+0000836901
Screenshot_1544799474.png2018-12-14T15:10:36.000+0000328145
Screenshot_1544799507.png2018-12-14T15:10:36.000+0000346237
Screenshot_1544799909.png2018-12-14T15:10:36.000+0000329902
Screenshot_1544799945.png2018-12-14T15:10:36.000+0000316836

Comments

  1. Sharif AbuDarda 2018-12-15

    Hello, We need a standalone sample code that regenerates the issue to test in our end. Thanks.
  2. Zachary Litten 2018-12-26

    I included a sample project demonstrating the behavior between multiple Alert Dialogs.

JSON Source