CN107329759A - A kind of method of content scrolling display - Google Patents

A kind of method of content scrolling display Download PDF

Info

Publication number
CN107329759A
CN107329759A CN201710522052.9A CN201710522052A CN107329759A CN 107329759 A CN107329759 A CN 107329759A CN 201710522052 A CN201710522052 A CN 201710522052A CN 107329759 A CN107329759 A CN 107329759A
Authority
CN
China
Prior art keywords
content
text
display
scrolling display
maximum allowable
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
Application number
CN201710522052.9A
Other languages
Chinese (zh)
Inventor
王旭东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kuwo Technology Co Ltd
Original Assignee
Beijing Kuwo Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kuwo Technology Co Ltd filed Critical Beijing Kuwo Technology Co Ltd
Priority to CN201710522052.9A priority Critical patent/CN107329759A/en
Publication of CN107329759A publication Critical patent/CN107329759A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention relates to a kind of method of content scrolling display, when needing display content of text, for that can be updated so as to cause the uncertain content of text of content, first it is stored as a List lists, in updating list can the corresponding content of text in viewing area when, the conventional display mode being first truncated by content of text is handled, then, the content of text of display will be needed, split by corresponding maximum allowable word number in List lists, obtain content of text and split data, subsequently, start a timer;After timer expiry, content is called to scroll algorithm, content of text is split into data carries out content scrolling display.The present invention, realizes that smooth content scrolls effect using control, the content of text for being unable to the display of single file completely is according to circumstances scrolled, easy to use in horse race lamp display effect, Consumer's Experience is good, more reasonably occupying system resources, improve equipment fluency.

Description

A kind of method of content scrolling display
Technical field
The present invention relates to content of text display technology field, specifically a kind of method of content scrolling display.Espespecially The method of android system Chinese version content scrolling display.
Background technology
Existing android system has been widely used in various equipment, including TV, set top box, mobile phone, flat board Computer, integrated computer etc..Because the size of distinct device display screen is different, this cause can viewing area size exist it is poor It is different, the difference such as font size, character font, display styles that different user is selected in addition, this results in going out for problems with It is existing:
When showing content of text, to same content of text, the display that single file can be complete in some equipment, and other set The display of single file completely is then unable in standby, in the case where being unable to the display of single file completely, because content of text is truncated, to use The use at family brings very big inconvenience, is that system version number is truncated shown in Fig. 1, it is impossible to the display of single file completely, is shown in Fig. 2 WIFI title(SSID)It is truncated, it is impossible to the display of single file completely.Although attempting the side shown using multirow in the prior art Formula ensures the complete display of content of text, but Fig. 1, situation shown in 2 are not appropriate for being changed into the mode that multirow is shown.
Even more serious hidden danger is:Because content of text is truncated, being sometimes can not be only according to the text shown This content goes specifically to judge the implication of its truly expressed, once the problem of maloperation will bring more serious., should by taking Fig. 1 as an example System version update needed for download file size, can not the display of single file completely, if in the environment of without WIFI, use Download this document and carry out system version renewal, or the campus network that great number will be produced in family(Such as overseas using feelings such as flow downloads Condition), this will bring a series of troubles such as unnecessary expenditure to certain user.
The content of the invention
For defect present in prior art, it is an object of the invention to provide a kind of method of content scrolling display, Realize that smooth content scrolls effect using control, allow to be unable to the content of text of the display of single file completely according to circumstances Scrolling display, easy to use in horse race lamp display effect, Consumer's Experience is good, more reasonably occupying system resources, improves equipment stream Smooth degree.
To achieve the above objectives, the present invention is adopted the technical scheme that:
A kind of method of content scrolling display, it is characterised in that comprise the following steps:
Step 1, obtain and be currently presented in the interface of user, there is which place to need to show content of text;
Step 2, judge to need display content of text everywhere, be the content of text of acquiescence, still can be updated to cause The uncertain content of text of content;
Step 3, it is uncertain to the content picked out everywhere, be stored as a List lists;
Step 4, update need show content of text when, judge its whether belong to it is corresponding in List lists can viewing area In, it is necessary to display content of text;
5 are then gone to step in this way,
It is not that then routinely display mode is handled;
Step 5, the conventional display mode being first truncated by content of text is handled,
Then, it would be desirable to the content of text of display, split, obtained by corresponding maximum allowable word number in List lists Content of text splits data,
Subsequently, a timer is started;
Step 6, within the time limit of timer, judge whether user has default operation, if any going to step 7,
After timer expiry, 8 are gone to step;
Step 7, the conventional display mode for maintaining content of text to be truncated is motionless,
Step 8, content is called to scroll algorithm, content of text is split into data carries out content scrolling display.
Include but is not limited to record in less than at least one on the basis of above-mentioned technical proposal, in the List lists Hold:
Can unique mark this can viewing area identification string, for quickly position this can viewing area position,
This can the maximum allowable word number in viewing area,
Maximum allowable word number and the corresponding relation of font size,
Maximum allowable word number and the corresponding relation of character font,
Maximum allowable word number and the corresponding relation of screen size,
Maximum allowable word number and the corresponding relation of system version,
Maximum allowable word number and the corresponding relation of unit type.
On the basis of above-mentioned technical proposal, List lists are sent to server end, make the equipment or biconditional operation of same model The equipment of system version or equipment with brand can pass through server end synchronized update List lists.
On the basis of above-mentioned technical proposal, the default operation refers to that user has carried out contact action and/or button Operation, the operation is unrelated with being truncated the content of text of display.
On the basis of above-mentioned technical proposal, the default operation refers to that user has carried out contact action and/or button Operation, the operation is to enter the corresponding next stage interface of content of text for being truncated display.
It is described to call content to scroll algorithm on the basis of above-mentioned technical proposal, laterally rolled using customized Control, or:Utilize customized longitudinal scroll control.
It is described to call content to scroll algorithm on the basis of above-mentioned technical proposal, utilize RecyclerView controls.
It is described to call content to scroll algorithm on the basis of above-mentioned technical proposal, utilize TextView controls.
It is described to call content to scroll algorithm on the basis of above-mentioned technical proposal, utilize Canvas controls.
The method of content scrolling display of the present invention, realizes that smooth content scrolls effect using control, makes Being unable to the content of text of the display of single file completely can according to circumstances scroll, easy to use in horse race lamp display effect, use Family is experienced, more reasonably occupying system resources, improves equipment fluency.
Brief description of the drawings
The present invention has drawings described below:
Fig. 1 content of text can not complete display schematic diagram one.
Fig. 2 content of text can not complete display schematic diagram two.
Font size schematic diagram may be selected in Fig. 3.
The flow chart of Fig. 4 present invention.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
As shown in figure 4, the method for content scrolling display of the present invention, when needing display content of text, for meeting It is updated to cause the uncertain content of text of content, is first stored as a List lists, can viewing area in list is updated During the corresponding content of text in domain, the conventional display mode being first truncated by content of text is handled, then, it would be desirable to the text of display Content, is split by corresponding maximum allowable word number in List lists, is obtained content of text and is split data, subsequently, Start a timer;After timer expiry, content is called to scroll algorithm, content of text is split into data carries out content rolling Dynamic display.Specifically include following steps:
Step 1, obtain and be currently presented in the interface of user, there is which place(Region)Need to show content of text;
Handled present invention is generally directed to the situation for being unable to the display content of text of single file completely, therefore, non-required display text This content everywhere without further processing;
Step 2, judge to need display content of text everywhere, be the content of text of acquiescence, still can be updated to cause The uncertain content of text of content;
Generally, its word length of the content of text of acquiescence be it is changeless, its according to can viewing area calculated text Content how arranged, be substantially not present be unable to single file completely display content of text situation, therefore, for the text of acquiescence This content, without further processing;
Understood with reference to shown in Fig. 1,2, system version number, WIFI title(SSID)Deng content of text, be not it is changeless, But can be updated so as to cause content not know, because content is uncertain, it is necessary to which the content of text shown, there is its text Word length beyond can viewing area situation, here it is be unable to single file completely display content of text the very crux, to this portion Point content needs to be further processed;
Step 3, it is uncertain to the content picked out everywhere, be stored as a List lists;
Include but is not limited to record at least one herein below in the List lists:
Can unique mark this can viewing area identification string, for quickly position this can viewing area position,
This can the maximum allowable word number in viewing area,
Maximum allowable word number and the corresponding relation of font size, in the case of different font sizes(Referring to Fig. 3), it is There is certain influence to maximum allowable word number, dependency number can be collected according to test case and user's service condition According to, and record collect,
Maximum allowable word number and the corresponding relation of character font,
Maximum allowable word number and the corresponding relation of screen size,
Maximum allowable word number and the corresponding relation of system version,
Maximum allowable word number and the corresponding relation of unit type,
Content in the List lists can at least choose wherein one record according to actual needs;
Further, List lists are sent to server end, make the equipment of same model or the equipment of biconditional operation system version or same The equipment of brand can be by server end synchronized update List lists, to realize that highly efficient, unified scrolling display is serviced;
Step 4, update need show content of text when, judge its whether belong to it is corresponding in List lists can viewing area In, it is necessary to display content of text;
5 are then gone to step in this way,
It is not that then routinely display mode is handled;
Step 5, the conventional display mode being first truncated by content of text is handled,
Then, it would be desirable to the content of text of display, split, obtained by corresponding maximum allowable word number in List lists Content of text splits data,
Subsequently, a timer is started;
Had calculated that in List lists under different situations, can be quickly right accordingly on maximum allowable alpha-numeric influence The content of text of display is needed to be split, with the optimal current display situation for agreeing with current device;
Although content of text is to be truncated to show, it is contemplated that the occupancy to system resource is scrolled, is not every Once there is the necessity scrolled, therefore start whether a timer is necessary further to be located with auxiliary judgment Reason, situations such as being not only preferably adapted to existing system, App, also can effectively save system resource, make the present invention optimization more Practicality, more targetedly;
Step 6, within the time limit of timer, judge whether user has default operation, if any going to step 7,
After timer expiry, 8 are gone to step;
Step 7, the conventional display mode for maintaining content of text to be truncated is motionless, and next step is carried out by the operation of user,
Step 8, content is called to scroll algorithm, content of text is split into data carries out content scrolling display.
On the basis of above-mentioned technical proposal, the default operation refers to that user has carried out contact action and/or button Operation, the operation is unrelated with being truncated the content of text of display.
Although content of text is truncated display, but if the focus of user's current operation is not here, then user is once Corresponding operation has been carried out, content scrolling display just need not should not be also carried out.
On the basis of above-mentioned technical proposal, the default operation refers to that user has carried out contact action and/or button Operation, the operation is to enter the corresponding next stage interface of content of text for being truncated display.
Although content of text is truncated display, but if user selection enter be truncated the content of text of display it is corresponding under One-level interface, then it is assumed that user is not exposed to the puzzlement for the content of text for being truncated display, now also It is not necessary to carry out content Scrolling display.
If as described above, user does not carry out contact action and/or button operation, but waiting one in current interface The section time(That is the setting time of timer, the length of specific time can be default value, such as 1 to 3 seconds, or User Defined Setting)Once, exceed this time, it is likely that user wishes to the complete information for the content of text for being truncated display, then After timer expiry, content is called to scroll algorithm, content of text is split into data carries out content scrolling display.Now, The occupancy of this system resource is relatively reasonable.
It is described to call content to scroll algorithm on the basis of above-mentioned technical proposal, laterally rolled using customized Control, or:Utilize customized longitudinal scroll control.
It is described to call content to scroll algorithm on the basis of above-mentioned technical proposal, utilize RecyclerView controls.
It is described to call content to scroll algorithm on the basis of above-mentioned technical proposal, utilize TextView controls.
It is described to call content to scroll algorithm on the basis of above-mentioned technical proposal, utilize Canvas controls.
The content not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.

Claims (9)

1. a kind of method of content scrolling display, it is characterised in that comprise the following steps:
Step 1, obtain and be currently presented in the interface of user, there is which place to need to show content of text;
Step 2, judge to need display content of text everywhere, be the content of text of acquiescence, still can be updated to cause The uncertain content of text of content;
Step 3, it is uncertain to the content picked out everywhere, be stored as a List lists;
Step 4, update need show content of text when, judge its whether belong to it is corresponding in List lists can viewing area In, it is necessary to display content of text;
5 are then gone to step in this way,
It is not that then routinely display mode is handled;
Step 5, the conventional display mode being first truncated by content of text is handled,
Then, it would be desirable to the content of text of display, split, obtained by corresponding maximum allowable word number in List lists Content of text splits data,
Subsequently, a timer is started;
Step 6, within the time limit of timer, judge whether user has default operation, if any going to step 7,
After timer expiry, 8 are gone to step;
Step 7, the conventional display mode for maintaining content of text to be truncated is motionless,
Step 8, content is called to scroll algorithm, content of text is split into data carries out content scrolling display.
2. the method for content scrolling display as claimed in claim 1, it is characterised in that:The List lists include but not limited In recording at least one herein below:
Can unique mark this can viewing area identification string, for quickly position this can viewing area position,
This can the maximum allowable word number in viewing area,
Maximum allowable word number and the corresponding relation of font size,
Maximum allowable word number and the corresponding relation of character font,
Maximum allowable word number and the corresponding relation of screen size,
Maximum allowable word number and the corresponding relation of system version,
Maximum allowable word number and the corresponding relation of unit type.
3. the method for content scrolling display as claimed in claim 1, it is characterised in that:List lists are sent to server end, The equipment of same model or the equipment of biconditional operation system version or the equipment with brand is set to pass through server end synchronized update List List.
4. the method for content scrolling display as claimed in claim 1, it is characterised in that:It is described it is default operation refer to, user Contact action and/or button operation are carried out, the operation is unrelated with the content of text for being truncated display.
5. the method for content scrolling display as claimed in claim 1, it is characterised in that:It is described it is default operation refer to, user Contact action and/or button operation are carried out, the operation is to enter corresponding next stage circle of content of text for being truncated display Face.
6. the method for content scrolling display as claimed in claim 1, it is characterised in that:It is described to call content scrolling display calculation Method, using customized horizontal scroll control, or:Utilize customized longitudinal scroll control.
7. the method for content scrolling display as claimed in claim 1, it is characterised in that:It is described to call content scrolling display calculation Method, utilizes RecyclerView controls.
8. the method for content scrolling display as claimed in claim 1, it is characterised in that:It is described to call content scrolling display calculation Method, utilizes TextView controls.
9. the method for content scrolling display as claimed in claim 1, it is characterised in that:It is described to call content scrolling display calculation Method, utilizes Canvas controls.
CN201710522052.9A 2017-06-30 2017-06-30 A kind of method of content scrolling display Pending CN107329759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710522052.9A CN107329759A (en) 2017-06-30 2017-06-30 A kind of method of content scrolling display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710522052.9A CN107329759A (en) 2017-06-30 2017-06-30 A kind of method of content scrolling display

Publications (1)

Publication Number Publication Date
CN107329759A true CN107329759A (en) 2017-11-07

Family

ID=60198532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710522052.9A Pending CN107329759A (en) 2017-06-30 2017-06-30 A kind of method of content scrolling display

Country Status (1)

Country Link
CN (1) CN107329759A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413479A (en) * 2018-09-28 2019-03-01 四川长虹电器股份有限公司 The method that smart television voice Interaction Interface content of text is completely shown
CN111124586A (en) * 2019-12-30 2020-05-08 南京汉隆科技有限公司 Method and module for automatically managing character rolling of non-control on embedded network phone

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090755A (en) * 2014-06-19 2014-10-08 上海斐讯数据通信技术有限公司 Vertical scrolling display method for long application names in Android Launcher interface
CN106604098A (en) * 2016-12-29 2017-04-26 深圳Tcl数字技术有限公司 Intelligent television marquee effect realization method and device
CN106874387A (en) * 2017-01-11 2017-06-20 中科院微电子研究所昆山分所 A kind of adaptive H TML roll screens show the method for real time information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090755A (en) * 2014-06-19 2014-10-08 上海斐讯数据通信技术有限公司 Vertical scrolling display method for long application names in Android Launcher interface
CN106604098A (en) * 2016-12-29 2017-04-26 深圳Tcl数字技术有限公司 Intelligent television marquee effect realization method and device
CN106874387A (en) * 2017-01-11 2017-06-20 中科院微电子研究所昆山分所 A kind of adaptive H TML roll screens show the method for real time information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413479A (en) * 2018-09-28 2019-03-01 四川长虹电器股份有限公司 The method that smart television voice Interaction Interface content of text is completely shown
CN111124586A (en) * 2019-12-30 2020-05-08 南京汉隆科技有限公司 Method and module for automatically managing character rolling of non-control on embedded network phone
CN111124586B (en) * 2019-12-30 2023-08-29 南京汉隆科技有限公司 Non-control automatic management character scrolling method and module implemented on embedded network telephone

Similar Documents

Publication Publication Date Title
AU2020200339B2 (en) Activity continuation between electronic devices
CN102682093B (en) Web page sectionally-loading method and web page sectionally-loading system for mobile browser
CN113473204A (en) Information display method and device, electronic equipment and storage medium
WO2016066092A1 (en) Multimedia playing controlling method and device, and storage medium
CN106970868A (en) Method for information display, device and terminal
RU2597468C2 (en) Method and device for browsing web pages at weak illumination by browser for mobile terminal
CN106708496B (en) Processing method and device for label page in graphical interface
CN110209879B (en) Video playing method, device, equipment and storage medium
CN110162343A (en) Using starting method and device, electronic equipment and storage medium
KR20160016945A (en) Synchronizing an application on a companion device
CN108174226A (en) Transcoding device, method and the computer readable storage medium of live video
CN102769641B (en) The methods of exhibiting of a kind of web page contents Self Adaptive Control and system
CN106652819B (en) Method and system for realizing bright screen advertisement based on intelligent household equipment
US10678427B2 (en) Media file processing method and terminal
CN103744810A (en) Terminal, electronic device and synchronous display system and method
CN107291335A (en) A kind of content rolls the method presented
CN109756767A (en) Preview data playback method, device and storage medium
CN103747358A (en) Video playing method and apparatus
CN104010223B (en) Adapter terminal system carries out the method and system of video playback
CN108170266A (en) Smart machine control method, device and equipment
WO2015011877A1 (en) Video receiving device, appended information display method, and appended information display system
CN107329759A (en) A kind of method of content scrolling display
CN106993211A (en) Web TV control method and device based on artificial intelligence
WO2017088395A1 (en) Method and apparatus for multimedia preview, and mobile terminal device and computer device
CN101924791B (en) Method, device and system for displaying multimedia information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171107