CN101917522A - Method and device for updating list style of mobile terminal - Google Patents
Method and device for updating list style of mobile terminal Download PDFInfo
- Publication number
- CN101917522A CN101917522A CN2010102821758A CN201010282175A CN101917522A CN 101917522 A CN101917522 A CN 101917522A CN 2010102821758 A CN2010102821758 A CN 2010102821758A CN 201010282175 A CN201010282175 A CN 201010282175A CN 101917522 A CN101917522 A CN 101917522A
- Authority
- CN
- China
- Prior art keywords
- list
- list style
- style
- file
- portable terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a method and a device for updating the list style of a mobile terminal. The method comprises the following steps that: 1, a label attribute set about data storage and event definition of the list style display, which is used for realizing data analysis and storage of a menu list and event analysis and response is predefined; 2, the mobile terminal acquires a list style file which is complied according to the defined label attribute set, wherein the list style of the mobile terminal is recorded in the list style file; and 3, the mobile terminal resolves the list style file according to the defined attribute set and displays the menu list according to the resolved list style. Through the method, the list style of the mobile terminal can be conveniently updated; and due to the use of the uniform label attribute set, the generality of a program is enhanced and development cost is saved.
Description
Technical field
The present invention relates to mobile communication equipment, relate in particular to a kind of method and apparatus of updating list style of mobile terminal.
Background technology
At present, along with the continuous development of mobile communication technology, portable terminal has been deep in people's the life, and mobile communication has also become the most widely used communication mode.Here, the alleged portable terminal of the present invention is meant that mobile phone, personal digital assistant (PDA, Personal Digital Assistant) etc. have the small hand-held formula mobile communication equipment of wireless communication function.With the mobile phone is example, and it occupies an important position in user's life as the instrument of daily life and business.
After the menu list exploitation of mobile phone is finished, its pattern (border color, font color, literal show number of words, font size, displaing coordinate etc.) all is cured, form is single, if upgrade the pattern of tabulation, then need the developer to rewrite program, such workload is big, causes the waste of resource.
Summary of the invention
The method and apparatus that the purpose of this invention is to provide a kind of updating list style of mobile terminal, it can realize the renewal of list style of mobile terminal easily.
For achieving the above object, the present invention adopts following technical scheme:
A kind of method of updating list style of mobile terminal comprises:
Step 1: a pre-defined cover is about the tag attributes collection of list style data presented storage and event definition, is used to realize the parsing and the storage of the data of menu list, and the parsing of incident and response;
Step 2: portable terminal obtains according to the list style file after the defined tag attributes collection compiling, records the list style that is used for portable terminal in this list style file;
Step 3: portable terminal is resolved the list style file that is obtained according to defined tag attributes collection, and according to the list style display menu tabulation that parses.
Further, the list style in the described list style file adopts User Interface Script to describe.
Further, described tag attributes collection comprises following attribute: pattern title, regional label, word tag, picture tag, picture and literal assignment attribute, text color, font size, transparency setting, frame size, border color, background color, background picture path, X-axis coordinate, Y-axis coordinate, width, and height.
Further, also comprise before the described step 2:
Step 11: portable terminal reads the list style index from data Layer;
Described step 2 specifically comprises:
Step 21: portable terminal reads the list style file of storing on this machine, thus all list styles on this machine of obtaining;
Step 22: whether according to described list style index, judging has corresponding index to exist, if having, then to read this list style, and go to described step 3, if do not have, then carry out step 23 in resulting all list styles;
Step 23: connect network, from remote server, download and the corresponding network list pattern of described list style index file, go to described step 3.
Further, described list style file is list style bag compression, that record multiple list style.
A kind of portable terminal comprises:
Acquisition module, be used to obtain list style file according to after the predefined tag attributes collection compiling, record the list style that is used for portable terminal in this list style file, described tag attributes collection is the tag attributes collection of a cover about storage of list style data presented and event definition, be used to realize the parsing and the storage of the data of menu list, and the parsing of incident and response;
Parsing module is used for according to described tag attributes collection, resolves the list style file that is obtained;
Display module is used for according to the list style display menu tabulation that parses from described list style file.
Further, the list style in the described list style file adopts User Interface Script to describe.
Further, described tag attributes collection comprises following attribute: pattern title, regional label, word tag, picture tag, picture and literal assignment attribute, text color, font size, transparency setting, frame size, border color, background color, background picture path, X-axis coordinate, Y-axis coordinate, width, and height.
Further, described portable terminal also comprises:
The index read module is used for reading the list style index from data Layer;
Described acquisition module specifically comprises:
Reading submodule is used to read the list style file of storing on this machine, thus all list styles on this machine of obtaining;
Judge module is used for according to described list style index, and whether judge has corresponding index to exist, if having, then to read this list style, and go to described parsing display module, if do not have, then to go to the connection download module in resulting all list styles;
Connect download module, be used to connect network, from remote server, download and the corresponding network list pattern of described list style index file, go to described parsing display module.
Further, described list style file is list style bag compression, that record multiple list style.
The method and apparatus of updating list style of mobile terminal provided by the invention, a pre-defined cover is about the tag attributes collection of storage of list style data presented and event definition, portable terminal obtains earlier according to the list style file after this tag attributes collection compiling, then it is resolved, and come the display menu tabulation according to the list style that therefrom parses.Therefore, the present invention can realize the renewal of list style of mobile terminal easily, and owing to used unified tag attributes collection, has strengthened the versatility of program, has saved development cost.
Description of drawings
Fig. 1 is the schematic flow sheet of an embodiment of the method for updating list style of mobile terminal of the present invention;
Fig. 2 is the schematic flow sheet of another embodiment of the method for updating list style of mobile terminal of the present invention;
Fig. 3 is the structural representation of the device of updating list style of mobile terminal of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
As shown in Figure 1, the invention provides a kind of method of updating list style of mobile terminal, comprising:
Step 1: a pre-defined cover is about the tag attributes collection of list style data presented storage and event definition, is used to realize the parsing and the storage of the data of menu list, and the parsing of incident and response;
In this step, the tag attributes collection can define flexibly according to those skilled in the art's common practise.Wherein, the data of menu list comprise information such as picture that tabulation shows, corresponding program name, program location everywhere; Incident for example user is chosen certain list menu, clicks/double-click certain list menu, is dragged certain list menu or the like.In conjunction with follow-up step, those skilled in the art can have clearer, complete understanding to the definition of tag attributes collection.
Step 2: portable terminal obtains according to the list style file after the defined tag attributes collection compiling, records the list style that is used for portable terminal in this list style file;
Need rewrite the problem of program when in prior art, upgrading list style, the present invention in this step with the data storing of list style in the list style file.Like this, only need to upgrade this list style file, can realize the renewal of the list style of portable terminal easily.
Step 3: portable terminal is resolved the list style file that is obtained according to defined tag attributes collection, and according to the list style display menu tabulation that parses.
The method of updating list style of mobile terminal of the present invention, a pre-defined cover is about the tag attributes collection of storage of list style data presented and event definition, portable terminal obtains earlier according to the list style file after this tag attributes collection compiling, then it is resolved, and come the display menu tabulation according to the list style that therefrom parses.Therefore, the present invention can realize the renewal of list style of mobile terminal easily, and owing to used unified tag attributes collection, has strengthened the versatility of program, has saved development cost.
Among the present invention, in order to realize that conveniently the list style in the list style file preferably adopts UI (User Interface, user interface) script to describe, that is: use the UI script to describe each element of list menu style, various element combinations promptly form list style.Thus, just the freelist pattern is described menu.List style flexibility and changeability, menu style are also just no longer single.
Certainly, those skilled in the art should understand that, list style is except using the UI script describes, and the alternate manner that can also use those skilled in the art to expect easily waits as the relativeness (as position, size etc.) of direct use and mobile terminal screen and to describe.
Among the present invention, the tag attributes collection can define flexibly according to those skilled in the art's common practise, for example can be defined as form as shown in table 1 below, this tag attributes collection comprises following attribute: pattern title, regional label, word tag, picture tag, picture and literal assignment attribute, text color, font size, transparency setting, frame size, border color, background color, background picture path, X-axis coordinate, Y-axis coordinate, width, and height.
Table 1:
Certainly, it will be appreciated by those skilled in the art that the tag attributes collection shown in the table 1 only for giving an example, the tag attributes collection can also be according to the needs of actual list pattern renewal, on the basis of the above-mentioned attribute that comprises, increase new attribute or delete unwanted attribute.For example, when the list style that will upgrade does not relate to transparency, then " transparency setting " attribute can be deleted.
As shown in Figure 2, the method for present embodiment preferably also comprised before above-mentioned steps 2:
Step 11: portable terminal reads the list style index from data Layer;
Read the list style index in this step, in subsequent step, from a plurality of list styles, to find out a certain list style quickly and easily.The list style of the desired use of user promptly indicated in this list style index.In addition, for the table data that will show, also can in this step, from data Layer, read in the lump.
At this moment, step 2 preferably specifically comprises:
Step 21: portable terminal reads the list style file of storing on this machine, thus all list styles on this machine of obtaining;
Step 22: according to described list style index, whether in resulting all list styles have corresponding index exist, if (illustrating that this list style is the list style of the desired use of user) arranged if judging, then read this list style, and go to described step 3, if do not have, then carry out step 23;
Step 23: connect network, from remote server, download and the corresponding network list pattern of described list style index file, go to described step 3.
After the present invention resolves from the list style file process of network download, also can store in the local list style of portable terminal, only need read just passable next time in this locality when showing, need not resolve from network download and to it again, save the flow of network download and the time that data are resolved.
In above embodiment, to select for more list style is provided to the user, and take into account shared memory size, above-mentioned list style file is preferably list style bag compression, that record multiple list style.
Following mask body illustrates the operable list style bag of the present invention:
StyleNum=3//note: this list style bag comprises 3 kinds of list styles
Style1{
<Div:x=2y=0w=228h=36>
<Txt:x=12y=12w=180Color=255,255,255align=left?Value=Title>
}
Style2{
<Div:x=2y=0w=228h=36>
<Transparence:Degree=220>
<Border:x=2y=0w=228h=36BgColor=29,62,136BorderColor=0,0,0
BorderSize=1>
<Border:x=3y=1w=226h=34BgColor=29,62,136
BorderColor=255,255,255BorderSize=1>
<Txt:x=12y=12w=180Color=153,255,0align=left?Value=Title>
}
Style3{
<Div:x=2y=0w=228h=36>
<Txt:x=12y=12w=180Color=255,255,255align=left?Value=Song>
}
For above-mentioned list style bag, Style1, Style2, Style3 are its 3 kinds of list styles that comprise, keyword " Style " is exactly the list style index of mentioning in the abovementioned steps 11, and labels such as Div wherein, Transparence have all provided definition in tag attributes collection the inside.
Below the several keywords that relate among the present invention are made an explanation, conveniently to understand the present invention.
1, list style: the element set (as: area size, highlighted border color, display text color, pictorial information, literal displaing coordinate, text alignment mode or the like) of describing menu list.
2, list style bag: the combination bag of multiple list style, can adopt the zlib compression algorithm, can download from remote server.
Corresponding with the method for above-mentioned updating list style of mobile terminal, the present invention also provides a kind of portable terminal, as shown in Figure 3, comprising:
Parsing module 302 is used for according to described tag attributes collection, resolves the list style file that is obtained;
Portable terminal of the present invention, a pre-defined cover is about the tag attributes collection of storage of list style data presented and event definition, portable terminal obtains earlier according to the list style file after this tag attributes collection compiling, then it is resolved, and come the display menu tabulation according to the list style that therefrom parses.Therefore, the present invention can realize the renewal of list style of mobile terminal easily, and owing to used unified tag attributes collection, has strengthened the versatility of program, has saved development cost.
Preferably, the list style in the described list style file adopts the UI script to describe.
Preferably, described tag attributes collection comprises following attribute: pattern title, regional label, word tag, picture tag, picture and literal assignment attribute, text color, font size, transparency setting, frame size, border color, background color, background picture path, X-axis coordinate, Y-axis coordinate, width, and height.
Preferably, described portable terminal also comprises:
The index read module is used for reading the list style index from data Layer;
Described acquisition module specifically comprises:
Reading submodule is used to read the list style file of storing on this machine, thus all list styles on this machine of obtaining;
Judge module is used for according to described list style index, and whether judge has corresponding index to exist, if having, then to read this list style, and go to described parsing display module, if do not have, then to go to the connection download module in resulting all list styles;
Connect download module, be used to connect network, from remote server, download and the corresponding network list pattern of described list style index file, go to described parsing display module.
Preferably, described list style file is list style bag compression, that record multiple list style.
The present invention is by the tag attributes collection of a pre-defined cover about storage of list style data presented and event definition, be used to realize the parsing and the storage of the data of menu list, and the parsing of incident and response, strengthened the versatility of program, save development cost, and can realize the renewal of list style of mobile terminal easily.Simultaneously, the menu display styles is various, has the list style of multiple style in the list style bag, if we need change a kind of display styles of menu, just only need allow the backstage developer can with the list style index upgrade in the data.In addition, the present invention can realize dynamically updating of menu list pattern, need change the display styles of menu such as us, only need the backstage developer that the list style bag is updated after, upgrade to get final product by client downloads.
The above is preferred embodiment of the present invention only, is not to be used for limiting practical range of the present invention; If do not break away from the spirit and scope of the present invention, the present invention is made amendment or is equal to replacement, all should be encompassed in the middle of the protection range of claim of the present invention.
Claims (10)
1. the method for a updating list style of mobile terminal is characterized in that, comprising:
Step 1: a pre-defined cover is about the tag attributes collection of list style data presented storage and event definition, is used to realize the parsing and the storage of the data of menu list, and the parsing of incident and response;
Step 2: portable terminal obtains according to the list style file after the defined tag attributes collection compiling, records the list style that is used for portable terminal in this list style file;
Step 3: portable terminal is resolved the list style file that is obtained according to defined tag attributes collection, and according to the list style display menu tabulation that parses.
2. method according to claim 1 is characterized in that, the list style in the described list style file adopts User Interface Script to describe.
3. method according to claim 1, it is characterized in that, described tag attributes collection comprises following attribute: pattern title, regional label, word tag, picture tag, picture and literal assignment attribute, text color, font size, transparency setting, frame size, border color, background color, background picture path, X-axis coordinate, Y-axis coordinate, width, and height.
4. method according to claim 1 is characterized in that, also comprises before the described step 2:
Step 11: portable terminal reads the list style index from data Layer;
Described step 2 specifically comprises:
Step 21: portable terminal reads the list style file of storing on this machine, thus all list styles on this machine of obtaining;
Step 22: whether according to described list style index, judging has corresponding index to exist, if having, then to read this list style, and go to described step 3, if do not have, then carry out step 23 in resulting all list styles;
Step 23: connect network, from remote server, download and the corresponding network list pattern of described list style index file, go to described step 3.
5. according to the described method of arbitrary claim in the claim 1 to 4, it is characterized in that described list style file is list style bag compression, that record multiple list style.
6. a portable terminal is characterized in that, comprising:
Acquisition module, be used to obtain list style file according to after the predefined tag attributes collection compiling, record the list style that is used for portable terminal in this list style file, described tag attributes collection is the tag attributes collection of a cover about storage of list style data presented and event definition, be used to realize the parsing and the storage of the data of menu list, and the parsing of incident and response;
Parsing module is used for according to described tag attributes collection, resolves the list style file that is obtained;
Display module is used for according to the list style display menu tabulation that parses from described list style file.
7. portable terminal according to claim 6 is characterized in that, the list style in the described list style file adopts User Interface Script to describe.
8. portable terminal according to claim 6, it is characterized in that, described tag attributes collection comprises following attribute: pattern title, regional label, word tag, picture tag, picture and literal assignment attribute, text color, font size, transparency setting, frame size, border color, background color, background picture path, X-axis coordinate, Y-axis coordinate, width, and height.
9. portable terminal according to claim 6 is characterized in that, also comprises:
The index read module is used for reading the list style index from data Layer;
Described acquisition module specifically comprises:
Reading submodule is used to read the list style file of storing on this machine, thus all list styles on this machine of obtaining;
Judge module is used for according to described list style index, and whether judge has corresponding index to exist, if having, then to read this list style, and go to described parsing display module, if do not have, then to go to the connection download module in resulting all list styles;
Connect download module, be used to connect network, from remote server, download and the corresponding network list pattern of described list style index file, go to described parsing display module.
10. according to the described portable terminal of arbitrary claim in the claim 6 to 9, it is characterized in that described list style file is list style bag compression, that record multiple list style.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102821758A CN101917522A (en) | 2010-09-10 | 2010-09-10 | Method and device for updating list style of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102821758A CN101917522A (en) | 2010-09-10 | 2010-09-10 | Method and device for updating list style of mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101917522A true CN101917522A (en) | 2010-12-15 |
Family
ID=43324900
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102821758A Pending CN101917522A (en) | 2010-09-10 | 2010-09-10 | Method and device for updating list style of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101917522A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013010450A1 (en) * | 2011-07-18 | 2013-01-24 | 百度在线网络技术(北京)有限公司 | Method and device for presenting state of page window |
WO2013097319A1 (en) * | 2011-12-27 | 2013-07-04 | 中兴通讯股份有限公司 | Method and device for displaying menu of mobile terminal, and mobile terminal |
CN104010217A (en) * | 2014-05-22 | 2014-08-27 | Tcl集团股份有限公司 | Method and device for mixed display |
CN104615340A (en) * | 2015-01-23 | 2015-05-13 | 深圳市金立通信设备有限公司 | Terminal |
CN108089860A (en) * | 2017-12-28 | 2018-05-29 | 大唐软件技术股份有限公司 | A kind of menu selector and pop-up menu generation control method and device |
CN104010217B (en) * | 2014-05-22 | 2018-08-31 | Tcl集团股份有限公司 | A kind of mixed display method and apparatus |
CN110399071A (en) * | 2019-07-31 | 2019-11-01 | 中国南方电网有限责任公司 | Menu self adaptation display methods, device, storage medium and terminal device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101072250A (en) * | 2006-05-12 | 2007-11-14 | 上海晨兴电子科技有限公司 | Method for fast-automatically generating menu resource for mobile device |
JP2008003648A (en) * | 2006-06-20 | 2008-01-10 | Fuji Xerox Co Ltd | Control screen generating method, control screen generator, electronic appliance and program |
CN101222710A (en) * | 2008-01-31 | 2008-07-16 | 中兴通讯股份有限公司 | System and method for implementing menu dynamic configuration on mobile terminal |
CN101400167A (en) * | 2008-10-21 | 2009-04-01 | 北京闪联互动网络科技有限责任公司 | Dynamic menu implementing method, apparatus and system for mobile terminal |
CN101714083A (en) * | 2009-12-16 | 2010-05-26 | 金蝶软件(中国)有限公司 | Method and device for generating application menu and application system |
-
2010
- 2010-09-10 CN CN2010102821758A patent/CN101917522A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101072250A (en) * | 2006-05-12 | 2007-11-14 | 上海晨兴电子科技有限公司 | Method for fast-automatically generating menu resource for mobile device |
JP2008003648A (en) * | 2006-06-20 | 2008-01-10 | Fuji Xerox Co Ltd | Control screen generating method, control screen generator, electronic appliance and program |
CN101222710A (en) * | 2008-01-31 | 2008-07-16 | 中兴通讯股份有限公司 | System and method for implementing menu dynamic configuration on mobile terminal |
CN101400167A (en) * | 2008-10-21 | 2009-04-01 | 北京闪联互动网络科技有限责任公司 | Dynamic menu implementing method, apparatus and system for mobile terminal |
CN101714083A (en) * | 2009-12-16 | 2010-05-26 | 金蝶软件(中国)有限公司 | Method and device for generating application menu and application system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013010450A1 (en) * | 2011-07-18 | 2013-01-24 | 百度在线网络技术(北京)有限公司 | Method and device for presenting state of page window |
WO2013097319A1 (en) * | 2011-12-27 | 2013-07-04 | 中兴通讯股份有限公司 | Method and device for displaying menu of mobile terminal, and mobile terminal |
CN104010217A (en) * | 2014-05-22 | 2014-08-27 | Tcl集团股份有限公司 | Method and device for mixed display |
CN104010217B (en) * | 2014-05-22 | 2018-08-31 | Tcl集团股份有限公司 | A kind of mixed display method and apparatus |
CN104615340A (en) * | 2015-01-23 | 2015-05-13 | 深圳市金立通信设备有限公司 | Terminal |
CN108089860A (en) * | 2017-12-28 | 2018-05-29 | 大唐软件技术股份有限公司 | A kind of menu selector and pop-up menu generation control method and device |
CN110399071A (en) * | 2019-07-31 | 2019-11-01 | 中国南方电网有限责任公司 | Menu self adaptation display methods, device, storage medium and terminal device |
CN110399071B (en) * | 2019-07-31 | 2022-12-27 | 中国南方电网有限责任公司 | Menu self-adaption display method and device, storage medium and terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106168978A (en) | The treating method and apparatus of pop-up in a kind of webpage | |
CN103455582A (en) | Display method of navigation page of browser and mobile terminal | |
CN105677313A (en) | Display method, device and terminal equipment for notification messages | |
CN103051652B (en) | A kind of mobile terminal cloud computing distribution platform | |
CN102710739A (en) | Mobile terminal and object change support method for the same | |
CN108334534A (en) | Operation system field configuration method, apparatus, server and readable storage medium storing program for executing | |
CN101782913A (en) | Update notifying method and browser | |
WO2010116025A1 (en) | Method and apparatus for providing visual search engine results | |
CN102033917A (en) | Webpage browsing method for mobile terminal and mobile terminal applying same | |
US20080176544A1 (en) | Methods and apparatus for generating mobile internet pages for viewing by mobile communication devices | |
CN101917522A (en) | Method and device for updating list style of mobile terminal | |
CN108628900B (en) | Data format obtaining method and related device | |
EP2866158A1 (en) | Method for reader to provide service, reader, terminal and computer storage medium | |
CN107656729A (en) | Updating device, method and the computer-readable recording medium of List View | |
CN105930390A (en) | Relation-type database expansion method and relation-type database expansion system | |
CN104216929A (en) | Method and device for intercepting page elements | |
CN113900650A (en) | Data processing method and device, electronic equipment and readable storage medium | |
CN102253986A (en) | Method and device for improving webpage displaying effect in multiple terminals | |
CN108921855A (en) | Image processing method and system based on information | |
CN109582888A (en) | Web page bookmark method for sorting and system | |
CN104063400A (en) | Data search method and data search device | |
CN104572981A (en) | Web page caching method and mobile terminal device | |
KR20140039509A (en) | System and method for providing contextual user-interface based on mark-up language | |
CN107943869A (en) | The method and apparatus for reading third party's webpage | |
WO2017195151A1 (en) | Electronic business cards |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20101215 |