Method and apparatus for form automatic layout
First Claim
Patent Images
1. A mobile device, comprising:
- a memory that stores executable instructions; and
a processor, communicatively coupled to the memory, that executes or facilitates execution of the executable instructions to at least;
determine a size that satisfies a size limit of a form, defined by compiled form code, to be displayed on a display screen of the mobile device based on text entries to be displayed in respective elements in the form;
determine a difference between the size that satisfies the size limit of the form and a requested size of the form;
divide the difference into blocks of space;
change, according to the blocks of space, values of auto layout parameters representing respective sizes of the respective elements in the form and respective positions of the respective elements in the form, andrender the form in accordance with the respective sizes and the respective positions defined by the values of the auto layout parameters without recompiling the compiled form code.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus are provided for determining the layout of a form automatically to accommodate text in the form. Under the method and apparatus, a set of parameters define the sizing and alignment of elements of the form. Sizing and positioning instructions that are separate from the sizing and alignment parameters set the sizing and positioning of elements of the form based on the sizing and alignment parameters. The instructions determine the minimum size for the form, based in part on text in the form. The difference between the minimum size for the form and a desired size for the form is then distributed across the form to size and position the elements in the form.
-
Citations
20 Claims
-
1. A mobile device, comprising:
-
a memory that stores executable instructions; and a processor, communicatively coupled to the memory, that executes or facilitates execution of the executable instructions to at least; determine a size that satisfies a size limit of a form, defined by compiled form code, to be displayed on a display screen of the mobile device based on text entries to be displayed in respective elements in the form; determine a difference between the size that satisfies the size limit of the form and a requested size of the form; divide the difference into blocks of space; change, according to the blocks of space, values of auto layout parameters representing respective sizes of the respective elements in the form and respective positions of the respective elements in the form, and render the form in accordance with the respective sizes and the respective positions defined by the values of the auto layout parameters without recompiling the compiled form code. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A mobile device, comprising:
a processor configured to; compute a size constraint of a form, defined by form code, to be displayed on the mobile device based on objects to be displayed in respective elements in the form; compute a difference between the size constraint and a target size of the form; divide the difference into segments; compute updated sizes of the respective elements and updated positions of the respective elements in the form based on the segments; modify layout parameter values defining the sizes and positions in accordance with the updated sizes and the updated positions; and display the form in accordance with the layout parameters without recompiling the form code. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
14. A computer-readable storage device having stored thereon executable components that, in response to execution, cause the device to perform operations, comprising:
-
selecting a minimum size of a form, generated by form code, based on elements to be displayed on the form via a mobile device; determining an amount of excess space based on a difference between a target size of the form and the minimum size of the form; modifying, based on the amount of excess space, values of layout parameters defining respective sizes of the elements and respective positions of the elements in the form; and displaying the form in accordance with the respective sizes and respective positions defined by the values of the layout parameters without recompiling the form code. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification