主权项 |
1. A method comprising:
receiving, at a mobile device, an application, the application comprising: at least one display area for display on the mobile device, and one or more rendering instructions for the at least one display area, the one or more rendering instructions comprising a first virtual position tag specifying a generic display position of a first display element relative to a generic display area and a second virtual position tag specifying a generic display position of a second display element relative to the generic display position of the first display element specified by the first virtual position tag, wherein the generic display position is device independent; determining, by at least one processor, at least one hardware display parameter of the mobile device; determining a specific position for the first display element based on the first virtual position tag and the at least one hardware display parameter; determining a specific position for the second display element based on the second virtual position tag and the determined specific position for the first display element; and generating a display layout for the at least one display area that includes the first display element in the specific position for the first display element and the second display element in the specific position for the second display element. |