Mobile terminal and method for adjusting menu bar softkey display dynamically
First Claim
1. A method for adjusting menu softkey display dynamically in a mobile terminal, the method comprising:
- obtaining, with a display configuration unit of the mobile terminal, a total display length of a menu bar in a direction and respective corresponding character string length value in the direction and location information of all softkeys on the menu bar; and
assigning, with the display configuration unit of the mobile terminal, display location and display length of each non-zero softkey in the direction according to the number of the non-zero softkeys whose character string length values are not zero on the menu bar and the location information of the non-zero softkeys, and displaying each non-zero softkey according to the assigned display location and display length wherein;
a sum of the display length of each non-zero softkey is less than or equal to the total display length of the menu bar;
if the character string length value corresponding to one non-zero softkey exceeds the display length assigned for that non-zero softkey, intercepting or abbreviating the character string corresponding to the non-zero softkey;
wherein, the step of displaying the each non-zero softkey according to the assigned display location and display length comprises;
if the character string length value in the direction corresponding to any one non-zero softkey is greater than a length mean value received after the total display length of the menu bar in the direction is averaged according to the number of the non-zero softkeys and the number of the non-zero softkeys is 1, then;
assigning, with the display configuration unit of the mobile terminal, the display location according to the location information of that non-zero softkey, assigning character string length value in the direction of that non-zero softkey as less than or equal to ¾
of the total display length of the menu bar in the direction, and displaying that non-zero softkey; and
if the character string length value corresponding to any one non-zero softkey is greater than a length mean value received after the total display length of the menu bar is averaged according to the number of the non-zero softkeys and the number of the non-zero softkeys is 2, then;
assigning, with the display configuration unit of the mobile terminal, the display location according to the location information of each non-zero softkey, assigning a length value of which the display length is less than or equal to ⅖
of the total display length of the menu bar for each non-zero softkey, and displaying each non-zero softkey.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and terminal for adjusting menu bar softkey display dynamically are provided by the present invention. The method includes the following steps: obtaining the total display length of the menu bar and the respective corresponding character string length value and the location information of all the softkeys on the menu bar; setting the softkey of which the character string length value is non-zero on the menu bar as the non-zero softkey; assigning the display location and display length of each non-zero softkey according to the number of the non-zero softkeys and location information of each non-zero softkey; and displaying each non-zero softkey according to the assigned display location and display length. The method and terminal of the present invention overcomes the current defect that currently the fixed value is adopted to display the softkey of the bottom bar.
8 Citations
22 Claims
-
1. A method for adjusting menu softkey display dynamically in a mobile terminal, the method comprising:
-
obtaining, with a display configuration unit of the mobile terminal, a total display length of a menu bar in a direction and respective corresponding character string length value in the direction and location information of all softkeys on the menu bar; and assigning, with the display configuration unit of the mobile terminal, display location and display length of each non-zero softkey in the direction according to the number of the non-zero softkeys whose character string length values are not zero on the menu bar and the location information of the non-zero softkeys, and displaying each non-zero softkey according to the assigned display location and display length wherein; a sum of the display length of each non-zero softkey is less than or equal to the total display length of the menu bar;
if the character string length value corresponding to one non-zero softkey exceeds the display length assigned for that non-zero softkey, intercepting or abbreviating the character string corresponding to the non-zero softkey;wherein, the step of displaying the each non-zero softkey according to the assigned display location and display length comprises; if the character string length value in the direction corresponding to any one non-zero softkey is greater than a length mean value received after the total display length of the menu bar in the direction is averaged according to the number of the non-zero softkeys and the number of the non-zero softkeys is 1, then; assigning, with the display configuration unit of the mobile terminal, the display location according to the location information of that non-zero softkey, assigning character string length value in the direction of that non-zero softkey as less than or equal to ¾
of the total display length of the menu bar in the direction, and displaying that non-zero softkey; andif the character string length value corresponding to any one non-zero softkey is greater than a length mean value received after the total display length of the menu bar is averaged according to the number of the non-zero softkeys and the number of the non-zero softkeys is 2, then; assigning, with the display configuration unit of the mobile terminal, the display location according to the location information of each non-zero softkey, assigning a length value of which the display length is less than or equal to ⅖
of the total display length of the menu bar for each non-zero softkey, and displaying each non-zero softkey. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A mobile terminal, comprising:
-
a control module for adjusting menu bar softkey display dynamically, wherein, the control module comprises a parameter obtaining unit, a display configuration unit and a display unit, wherein, the parameter obtaining unit is configured to obtain a total display length of a menu bar in a direction and respective corresponding character string length value in the direction and location information of all softkeys on the menu bar; the display configuration unit is configured to assign display location and display length for each non-zero softkey in the direction according to the number of the non-zero softkeys whose character string length values are not zero on the menu bar and location information of the non-zero softkeys; the display unit is configured to display each non-zero softkey according to the assigned display location and display length, wherein; a sum of the display length of each non-zero softkey is less than or equal to the total display length of the menu bar;
if the character string length value corresponding to a single non-zero softkey exceeds the display length assigned for that non-zero softkey, intercept or abbreviation is performed on the character string corresponding to the single non-zero softkey; andthe display configuration unit is further configured to, (1) of the character string length value in the direction corresponding to any one non-zero softkey is greater than the length mean value received after the total display length of the menu bar in the direction is averaged according to the number of the non-zero softkeys and the number of the non-zero softkeys is 1, assign the display location according to the location information of that non-zero softkey and assign character string length value in the direction of the non-zero softkey as less than ¾
of the total display length of the menu bar in the direction; and
(2) if the character string length value corresponding to any one non-zero softkey is greater than a length mean value received after the total display length of the menu bar is averaged according to the number of the non-zero softkeys and the number of the non-zero softkeys is 2, assign the display location according to the location information of each non-zero softkey and assign character string length value in the direction of the non-zero softkey as less than or equal to ⅖
of the total display length of the menu bar for each non-zero softkey. - View Dependent Claims (17, 18, 19, 20, 21, 22)
-
Specification