More fine tuning of dialog width
Test: Looked at dialog in portait, splitscreen, and landscape mode Change-Id: I54f40cdb1f76ade988cd011966c4f4035bfe7eb7
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
|
||||
<!-- Landscape dimensions for the permission grant dialog. -->
|
||||
<resources>
|
||||
<!-- 37:20 == 65% width -->
|
||||
<dimen name="permissionGrantDialogWidth">37</dimen>
|
||||
<!-- Assuming the dimension of a sailfish, this yields 95% width in splitscreen and 65% in
|
||||
landscape -->
|
||||
<dimen name="permissionGrantDialogWeight">8.6</dimen>
|
||||
<dimen name="permissionGrantDialogWidth">334dp</dimen>
|
||||
</resources>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
<!-- portrait dimensions for the permission grant dialog. -->
|
||||
<resources>
|
||||
<!-- 380:20 == 95% width -->
|
||||
<dimen name="permissionGrantDialogWidth">380</dimen>
|
||||
<!-- This yields 95% width -->
|
||||
<dimen name="permissionGrantDialogWeight">380</dimen>
|
||||
<dimen name="permissionGrantDialogWidth">0dp</dimen>
|
||||
</resources>
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
<style name="PermissionGrantDialog">
|
||||
<item name="background">?attr/windowBackground</item>
|
||||
<item name="elevation">?attr/windowElevation</item>
|
||||
<item name="layout_weight">@dimen/permissionGrantDialogWidth</item>
|
||||
<item name="layout_width">320dp</item>
|
||||
<item name="layout_weight">@dimen/permissionGrantDialogWeight</item>
|
||||
<item name="layout_width">@dimen/permissionGrantDialogWidth</item>
|
||||
</style>
|
||||
|
||||
<style name="PermissionGrantTitleIcon">
|
||||
|
||||
Reference in New Issue
Block a user