CN103914213A - Method and device for eliminating page dithering - Google Patents
Method and device for eliminating page dithering Download PDFInfo
- Publication number
- CN103914213A CN103914213A CN201210592706.2A CN201210592706A CN103914213A CN 103914213 A CN103914213 A CN 103914213A CN 201210592706 A CN201210592706 A CN 201210592706A CN 103914213 A CN103914213 A CN 103914213A
- Authority
- CN
- China
- Prior art keywords
- data
- list box
- page
- module
- display mode
- 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.)
- Granted
Links
Abstract
The invention discloses a method and a device for eliminating page dithering. The method and the device for eliminating the page dithering are applicable to a mobile terminal and used for eliminating dithering in page display, wherein the method comprises the steps of presetting a plurality of templates for loading and displaying contents, reading data, selecting the corresponding templates according to the contents of all the data, binding the data with a list box control to generate a list box, next, when a page is displayed initially or rolled, selecting data needing to be displayed in the list box frame, loading the data needing to be displayed in an internal memory and generating user interface elements, and displaying the user interface elements. The method and the device are capable of eliminating the page dithering while guaranteeing low enough use of the internal memory.
Description
Technical field
The present invention relates to computing machine and the communications field, particularly a kind of for eliminating the method and apparatus of page shake.
Background technology
Mobile terminal, for example smart mobile phone, at browsing pages, for example, while browsing the page of microblogging, the general modes that adopt unlimited loading present more, for the displaying of mass data, can be subject to some restrictions of mobile phone EMS memory, so adopt the virtual UI(user of support interface, user interface) the multiplexing use that reduces internal memory, for the list box (ListBox) of complex topology, support the virtualized phenomenon that simultaneously can bring page shake.For example, when ListBox slides, need Asynchronous loading for contents such as some pictures on the page, for the list of complex topology, due to each content difference, need the form of showing to be also not quite similar, the height of content is fixing, and list is playing up in displaying process, can constantly calculate the height that needs displaying, for some contents such as pictures, be Asynchronous loading in list render process, now can cause error to the calculating of list height.Cause the page to show incomplete, and along with the loading of picture can cause the shake of the page.
Summary of the invention
The invention provides a kind of for eliminating the method and apparatus of page shake, to reach the effect of eliminating page shake when the mobile terminal display page.For achieving the above object, the present invention adopts following technical scheme:
The invention discloses a kind of method of shaking for eliminating the page, the method is applicable to mobile terminal, comprising:
Default multiple templates that load and show for content;
Reading out data;
Select successively corresponding template according to the content of each data, by data and list box control binding, generate list box;
In the time of the initial demonstration of the page or page rolling, choose the data that need demonstration in list box, the data that needs are shown are loaded in internal memory, generate user interface element;
Show user interface element.
Wherein, the method further comprises: monitor the rolling of list box, in the time that the page rolls, will show the element of focal point settings outside list box; In the time that page rolling stops, showing that focal point settings is in list box.
Wherein, the method further comprises: judge that whether the data in internal memory need to show, if be judged as NO, remove these data from internal memory.
Wherein, the method further comprises: judge the display mode of data, if the display mode of data is the display mode of acquiescence, cache mode is set to default mode; If the display mode of data is the display mode of circulation, cache mode is set to circulation pattern.
Wherein, described in choose and in list box, need the data that show, comprising: choose the data in list box visual range.
The invention also discloses a kind of device of realizing application cutover, this device is applicable to mobile terminal, comprising: presetting module, data read module, list box generation module, data load-on module and display module,
Presetting module, for default multiple templates that load and show for content;
Data read module, for reading out data;
List box generation module, for selecting successively corresponding template according to the content of each data, by data and list box control binding, generates list box;
Data load-on module, in the time of the initial demonstration of the page or page rolling, chooses the data that need demonstration in list box, and the data that needs are shown are loaded in internal memory, generate user interface element;
Display module, for showing user interface element.
Wherein, this device also comprises: focal point settings module, for monitoring the rolling of list box, in the time that the page rolls, will show the element of focal point settings outside list box; In the time that page rolling stops, showing that focal point settings is in list box.
Wherein, described data load-on module, is further used for judging whether the data in internal memory need to show, if be judged as NO, these data is removed from internal memory.
Wherein, this device further comprises: buffer setting module, and for judging the display mode of data, if the display mode of data is the display mode of acquiescence, cache mode is set to default mode; If the display mode of data is the display mode of circulation, cache mode is set to circulation pattern.
Wherein, described data load-on module, specifically for choosing the data in list box visual range, is loaded in internal memory, generates user interface element.
The beneficial effect of the embodiment of the present invention is: by using default template to load corresponding data content, by data and list box control binding, generate list box, thereby can in the time showing, not shake because of Asynchronous loading.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 for preferred embodiment of the present invention provide a kind of for eliminating the process flow diagram of method of page shake;
Fig. 2 for preferred embodiment of the present invention provide a kind of for eliminating the block diagram of device of page shake.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described in further detail.
Fig. 1 for the present invention's the first preferred embodiment provide a kind of for eliminating the process flow diagram of method of page shake.The method is applicable to mobile terminal, comprises the following steps:
S100: default multiple templates that load and show for content.
S200: reading out data.
S300: select successively corresponding template according to the content of each data, by data and list box control binding, generate list box.
S400: in the time of the initial demonstration of the page or page rolling, choose the data that need demonstration in list box, the data that needs are shown are loaded in internal memory, generate user interface element.
S500: show user interface element.
Among the present embodiment, among step S200, the data that read can be the local file of mobile terminal or information of obtaining by network etc.The choosing of step S400 needs the data that show in list box, be the data of choosing in list box visual range, chooses in other words the data that need be presented in the user visual field.Can certainly select in the lump with list box visual range in the adjacent data of data, in other words, be presented at need the data that data in the user visual field are adjacent and be loaded in internal memory.By only the data of selection being loaded in internal memory, can reduce memory cost.
In addition, the method further comprises shift the focus, further to reduce the shake of the page.The operation of shift the focus, specifically comprises: monitor the rolling of list box, in the time that the page rolls, will show the element of focal point settings outside list box; In the time that page rolling stops, showing that focal point settings is in list box.
Further, in the time that the page rolls, can judge whether the data in internal memory need to show, if be judged as NO, these data be removed from internal memory.Like this, for the content of the list box of having shown, if not list box show visual range in (in other words, user not within sweep of the eye) from internal memory, remove.Can reduce the expense of internal memory, the running quality of maintenance system.
Further, the present embodiment can arrange cache mode, particularly, and can be by cache mode (CacheMode) parameter of virtual stack panel (VSP, Virtualizing Stack Panel) be set.Comprise: judge the display mode of data, if the display mode of data is the display mode of acquiescence, cache mode is set to acquiescence (Standard) pattern; If the display mode of data is the display mode of circulation, cache mode is set to circulation (Recycling) pattern, and system can reclaim the content of producing and showed, ensures the content that enough memory headrooms are shown needs.Can cache mode be set according to the difference of display mode like this, improve treatment effeciency.
Fig. 2 for the present invention's the first preferred embodiment provide a kind of for eliminating the block diagram of device of page shake.This device is applicable to mobile terminal, comprising: presetting module 100, data read module 200, list box generation module 300, data load-on module 400 and display module 500.
Presetting module 100, for default multiple templates that load and show for content.
Data read module 200, for reading out data.
List box generation module 300, for selecting successively corresponding template according to the content of each data, by data and list box control binding, generates list box.
Data load-on module 400, in the time of the initial demonstration of the page or page rolling, chooses the data that need demonstration in list box, and the data that needs are shown are loaded in internal memory, generate user interface element.
Display module 500, for showing user interface element.
Data load-on module 400 among the present embodiment, specifically for choosing the data in list box visual range, the data in the user visual field, are loaded in internal memory in other words, generate user interface (UI) element.Can certainly select in the lump with list box visual range in the adjacent data of data, in other words, the data adjacent with data in the user visual field are loaded in internal memory.
Among the present embodiment, this device also comprises focal point settings module 600, can shift the focus, and further to reduce the shake of the page.Focal point settings module 600, for monitoring the rolling of list box, in the time that the page rolls, will show the element of focal point settings outside list box; In the time that page rolling stops, showing that focal point settings is in list box.
Further, when the page is initial when showing or rolling, data load-on module 400 can judge whether the data in internal memory need to show, in the time judging that data in internal memory do not need to show, these data is removed from internal memory.Like this, for the content of having shown, if not show visual range in (in other words, user not within sweep of the eye) from internal memory, remove.Can reduce the expense of internal memory, the running quality of maintenance system.
This device further comprises buffer setting module 700, for judging the display mode of data, thereby virtual stack panel (VSP is set, Virtualizing Stack Panel) cache mode (CacheMode), if the display mode of data is the display mode of acquiescence, cache mode is set to default mode; If the display mode of data is the display mode of circulation, cache mode is set to circulation pattern, and system can reclaim the content of producing and showed, ensures the content that enough memory headrooms are shown needs.
With WindowsPhone platform, especially, carrying out exemplary explanation as an example of WindowsPhone7 platform example below, is only application examples more of the present invention.
Due to the form difference of the content that will show in list box, can preset different templates, giving in the process of list assignment, need to be filled into each the content of list, increase an attribute, it is template attribute, illustrate and need to select any template to show, be used to provide to list, show by that template with selection, for example template A exhibiting pictures content, template B shows word content, need to be in generating the data of list box (listbox), be use template A by template setup of attribute corresponding word content, the template setup of attribute that image content is corresponding is use template B, ListTemplate Selector class is according to the template attribute arranging, select template.
In the time that list stops by focus to scroll bar, can know that scroll bar is in rolling or halted state by catching scroll bar state in ListBox.When scroll bar is during in rolling condition, give scroll bar page focus, now can prevent that all the other elements from obtaining focuses and affecting the calculating of list element height.In the time that scroll bar stops, focus is given back to current page:
Embodiments of the invention have advantages of following:
(1) by using default template to load corresponding data content, by data and list box control binding, generate list box, thereby can in the time showing, not shake because of Asynchronous loading;
(2) by shift the focus, further reduce the shake of the page;
(3) by will not needing to show that data remove from internal memory, can reduce the expense of internal memory, the running quality of maintenance system;
(4) by according to the difference of acquiescence display mode, circulation display mode, cache mode is set, can improves treatment effeciency.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.
Claims (10)
1. for eliminating a method for page shake, it is characterized in that, the method is applicable to mobile terminal, comprising:
Default multiple templates that load and show for content;
Reading out data;
Select successively corresponding template according to the content of each data, by data and list box control binding, generate list box;
In the time of the initial demonstration of the page or page rolling, choose the data that need demonstration in list box, the data that needs are shown are loaded in internal memory, generate user interface element;
Show user interface element.
2. method according to claim 1, is characterized in that, the method further comprises:
Monitor the rolling of list box, in the time that the page rolls, give the page by focus; In the time that scroll bar stops, giving scroll bar by focus.
3. method according to claim 1 and 2, is characterized in that, the method further comprises:
Judge that whether the data in internal memory need to show, if be judged as NO, remove these data from internal memory.
4. method according to claim 1 and 2, is characterized in that, the method further comprises:
Judge the display mode of data, if the display mode of data is the display mode of acquiescence, cache mode is set to default mode; If the display mode of data is the display mode of circulation, cache mode is set to circulation pattern.
5. method according to claim 1 and 2, is characterized in that:
The described data that need demonstration in list box of choosing, comprising: choose the data in list box visual range.
6. for eliminating a device for page shake, it is characterized in that, this device is applicable to mobile terminal, comprising: presetting module, data read module, list box generation module, data load-on module and display module,
Presetting module, for default multiple templates that load and show for content;
Data read module, for reading out data;
List box generation module, for selecting successively corresponding template according to the content of each data, by data and list box control binding, generates list box;
Data load-on module, in the time of the initial demonstration of the page or page rolling, chooses the data that need demonstration in list box, and the data that needs are shown are loaded in internal memory, generate user interface element;
Display module, for showing user interface element.
7. device according to claim 6, is characterized in that, this device also comprises:
Focal point settings module, for monitoring the rolling of list box, in the time that the page rolls, will show the element of focal point settings outside list box; In the time that page rolling stops, showing that focal point settings is in list box.
8. according to the device described in claim 6 or 7, it is characterized in that,
Described data load-on module, is further used for judging whether the data in internal memory need to show, if be judged as NO, these data is removed from internal memory.
9. according to the device described in claim 6 or 7, it is characterized in that, this device further comprises:
Buffer setting module, for judging the display mode of data, if the display mode of data is the display mode of acquiescence, cache mode is set to default mode; If the display mode of data is the display mode of circulation, cache mode is set to circulation pattern.
10. according to the device described in claim 6 or 7, it is characterized in that,
Described data load-on module, specifically for choosing the data in list box visual range, is loaded in internal memory, generates user interface element.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210592706.2A CN103914213B (en) | 2012-12-31 | 2012-12-31 | Method and device for eliminating page dithering |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210592706.2A CN103914213B (en) | 2012-12-31 | 2012-12-31 | Method and device for eliminating page dithering |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103914213A true CN103914213A (en) | 2014-07-09 |
CN103914213B CN103914213B (en) | 2017-02-15 |
Family
ID=51039940
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210592706.2A Active CN103914213B (en) | 2012-12-31 | 2012-12-31 | Method and device for eliminating page dithering |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103914213B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105630411A (en) * | 2015-12-18 | 2016-06-01 | 小米科技有限责任公司 | Memory management method and apparatus |
CN106227560A (en) * | 2016-07-19 | 2016-12-14 | 福建天泉教育科技有限公司 | A kind of list control display packing and system |
CN106649299A (en) * | 2015-07-28 | 2017-05-10 | 阿里巴巴集团控股有限公司 | Method and device for lazy loading of webpage block |
CN107229642A (en) * | 2016-03-24 | 2017-10-03 | 阿里巴巴集团控股有限公司 | The page resource of target pages is shown, page resource loading method and device |
CN107872726A (en) * | 2017-11-27 | 2018-04-03 | 山东浪潮商用系统有限公司 | A kind of focus control method and device |
CN109656639A (en) * | 2018-12-25 | 2019-04-19 | 深圳创维数字技术有限公司 | A kind of interface rolling motion method, apparatus, equipment and medium |
CN111489122A (en) * | 2020-04-09 | 2020-08-04 | 山东山大华天软件有限公司 | Method, equipment and readable storage medium for editing and displaying multiple pieces of BOM data based on browser |
CN112004160A (en) * | 2020-07-15 | 2020-11-27 | 福建新大陆通信科技股份有限公司 | Interface interaction method, device and medium based on page list control |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040210849A1 (en) * | 2000-09-29 | 2004-10-21 | Apple Computer, Inc. | Combined menu-list control element in a graphical user interface |
CN1716974A (en) * | 2004-06-14 | 2006-01-04 | 三星电子株式会社 | The method of menu effect layer is provided on portable terminal and uses menu effect layer that the method for menu effect is provided |
CN101872282A (en) * | 2010-05-25 | 2010-10-27 | 中兴通讯股份有限公司 | User interface generating method and device and mobile terminal |
CN102298503A (en) * | 2011-09-27 | 2011-12-28 | 汉王科技股份有限公司 | Method and device for displaying contents on mobile terminal list interface |
CN102707887A (en) * | 2012-05-11 | 2012-10-03 | 广东欧珀移动通信有限公司 | Glidingly-selecting method for list items in listView based on Android platform |
-
2012
- 2012-12-31 CN CN201210592706.2A patent/CN103914213B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040210849A1 (en) * | 2000-09-29 | 2004-10-21 | Apple Computer, Inc. | Combined menu-list control element in a graphical user interface |
CN1716974A (en) * | 2004-06-14 | 2006-01-04 | 三星电子株式会社 | The method of menu effect layer is provided on portable terminal and uses menu effect layer that the method for menu effect is provided |
CN101872282A (en) * | 2010-05-25 | 2010-10-27 | 中兴通讯股份有限公司 | User interface generating method and device and mobile terminal |
CN102298503A (en) * | 2011-09-27 | 2011-12-28 | 汉王科技股份有限公司 | Method and device for displaying contents on mobile terminal list interface |
CN102707887A (en) * | 2012-05-11 | 2012-10-03 | 广东欧珀移动通信有限公司 | Glidingly-selecting method for list items in listView based on Android platform |
Non-Patent Citations (3)
Title |
---|
王晓峰: "VFP控件及其数据绑定", 《应用科技》 * |
胡武强: "ASP.NET中实现DataGrid控件动态绑定数据的方法", 《电脑编程技巧与维护》 * |
里伯尔提(LIBERTY,J)等: "《学习ASP.NET2.0和AJAX》", 12 December 2008 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106649299B (en) * | 2015-07-28 | 2020-09-15 | 阿里巴巴集团控股有限公司 | Method and device for lazy loading of webpage block |
CN106649299A (en) * | 2015-07-28 | 2017-05-10 | 阿里巴巴集团控股有限公司 | Method and device for lazy loading of webpage block |
CN105630411B (en) * | 2015-12-18 | 2019-09-27 | 小米科技有限责任公司 | EMS memory management process and device |
CN105630411A (en) * | 2015-12-18 | 2016-06-01 | 小米科技有限责任公司 | Memory management method and apparatus |
CN107229642A (en) * | 2016-03-24 | 2017-10-03 | 阿里巴巴集团控股有限公司 | The page resource of target pages is shown, page resource loading method and device |
CN106227560B (en) * | 2016-07-19 | 2019-04-09 | 福建天泉教育科技有限公司 | A kind of list control display methods and system |
CN106227560A (en) * | 2016-07-19 | 2016-12-14 | 福建天泉教育科技有限公司 | A kind of list control display packing and system |
CN107872726A (en) * | 2017-11-27 | 2018-04-03 | 山东浪潮商用系统有限公司 | A kind of focus control method and device |
CN109656639A (en) * | 2018-12-25 | 2019-04-19 | 深圳创维数字技术有限公司 | A kind of interface rolling motion method, apparatus, equipment and medium |
CN109656639B (en) * | 2018-12-25 | 2022-04-15 | 深圳创维数字技术有限公司 | Interface rolling method, device, equipment and medium |
CN111489122A (en) * | 2020-04-09 | 2020-08-04 | 山东山大华天软件有限公司 | Method, equipment and readable storage medium for editing and displaying multiple pieces of BOM data based on browser |
CN112004160A (en) * | 2020-07-15 | 2020-11-27 | 福建新大陆通信科技股份有限公司 | Interface interaction method, device and medium based on page list control |
CN112004160B (en) * | 2020-07-15 | 2022-04-05 | 福建新大陆通信科技股份有限公司 | Interface interaction method, device and medium based on page list control |
Also Published As
Publication number | Publication date |
---|---|
CN103914213B (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103914213A (en) | Method and device for eliminating page dithering | |
CN103544207B (en) | A kind of method and system of picture loaded and displayed | |
CN103544253B (en) | A kind of realization method and system that picture is shown in a manner of waterfall stream | |
CN104503655A (en) | Application program interface display control method and device | |
CN104820589B (en) | A kind of method and its device of dynamic adaptation webpage | |
CN106155692A (en) | A kind of terminal brightness control method and terminal | |
CN104978433A (en) | Web page display method and device | |
CN107526592B (en) | Page adaptation method and device | |
EP2874054B1 (en) | Application text adjusting method, device, and terminal | |
CN104765600A (en) | Page processing method | |
CN103823546A (en) | Information control method and electronic equipment | |
CN102511169B (en) | Video reproduction apparatus, and control method thereof | |
CN102831209A (en) | Rendering method and rendering device for webpage browsing and mobile terminal | |
CN105868420A (en) | Network resource loading mode configuration method and device | |
CN106406839A (en) | Processing method and device of screen adaption file | |
CN104813393A (en) | Displaying applications on a fixed orientation display | |
CN103365621A (en) | Image processing method and device | |
CN109361947A (en) | Internet resources batch loading method, smart television, storage medium and device | |
CN109767401A (en) | Picture optimization method, device, terminal and corresponding storage medium | |
CN107079198B (en) | Display device, system and control method thereof | |
CN106990962A (en) | Dynamic screen locking wallpaper switching method and device and terminal | |
CN104765599A (en) | Terminal | |
CN102436369B (en) | Method and device for displaying data | |
CN103631577A (en) | Image display adjusting method and device | |
WO2019130492A1 (en) | Comic data display system, method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080 Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building 6 storey block A room 602 Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. |