CN113672317A - Method and device for rendering title page - Google Patents

Method and device for rendering title page Download PDF

Info

Publication number
CN113672317A
CN113672317A CN202010410439.7A CN202010410439A CN113672317A CN 113672317 A CN113672317 A CN 113672317A CN 202010410439 A CN202010410439 A CN 202010410439A CN 113672317 A CN113672317 A CN 113672317A
Authority
CN
China
Prior art keywords
title
displayed
basic
unit
rendering
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
CN202010410439.7A
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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010410439.7A priority Critical patent/CN113672317A/en
Publication of CN113672317A publication Critical patent/CN113672317A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a method and a device for rendering a title page. One embodiment of the method comprises: acquiring a question to be displayed and type information of the question to be displayed; acquiring at least one basic rendering unit and at least one basic operation unit corresponding to the type information; and rendering the title to be displayed according to the acquired at least one basic rendering unit and at least one basic operation unit to generate a title page. The embodiment enriches the theme page rendering mode and increases the theme page rendering flexibility.

Description

Method and device for rendering title page
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for rendering a title page.
Background
With the development of computer technology, computer-aided education has also gained more and more applications. Currently, many educational Applications (APP) can support the display of on-line topic answers and topic amendments. Because the types of subjects have diversification, the display logic and the operation logic of different subject types are different. Therefore, when a new theme type is added, the related method usually needs to design a rendering method of the theme page corresponding to the new theme type.
Disclosure of Invention
The embodiment of the application provides a method and a device for rendering a title page.
In a first aspect, an embodiment of the present application provides a method for rendering a title page, where the method includes: acquiring a question to be displayed and type information of the question to be displayed; acquiring at least one basic rendering unit and at least one basic operation unit corresponding to the type information; and rendering the to-be-displayed title according to the acquired at least one basic rendering unit and at least one basic operation unit to generate a title page. .
In some embodiments, the type information of the titles to be displayed includes arithmetic titles. The obtaining of the at least one basic rendering unit corresponding to the type information includes: and acquiring an icon display unit, wherein the icon display unit is used for indicating the correctness of the answer of the question to be displayed.
In some embodiments, the type information of the to-be-displayed topic includes an application topic. The obtaining of the at least one basic rendering unit corresponding to the type information includes: the method comprises the steps of obtaining an icon display unit and a quadrilateral frame unit, wherein the icon display unit is used for indicating the correctness of answers of questions to be displayed, and the quadrilateral frame unit is used for indicating the area where the questions to be displayed are located.
In some embodiments, the basic operation unit comprises at least one of: highlighting, canceling highlighting and displaying the area where the title is located in a rolling way.
In some embodiments, the basic operation unit includes a highlight display. The rendering the to-be-displayed title according to the obtained at least one basic rendering unit and the at least one basic operation unit to generate a title page includes: drawing a to-be-displayed question according to the obtained at least one basic rendering unit to generate a question page; detecting whether a clicked basic rendering unit exists in at least one basic rendering unit; in response to determining that there is a clicked base rendering unit, highlighting on the title page an area where a title to be displayed is located.
In some embodiments, the basic operation unit further comprises canceling the highlighting. The rendering the to-be-displayed title according to the obtained at least one basic rendering unit and the at least one basic operation unit to generate a title page includes: and in response to the fact that the area where the to-be-displayed title is highlighted is determined and the fact that the clicked basic rendering unit exists in the at least one basic rendering unit is detected, the area where the to-be-displayed title is highlighted is cancelled on the title page.
In some embodiments, the basic operation unit comprises a scrolling display of the area where the title is located. The rendering the to-be-displayed title according to the obtained at least one basic rendering unit and the at least one basic operation unit to generate a title page includes: drawing a to-be-displayed question according to the obtained at least one basic rendering unit to generate a question page; detecting whether a clicked basic rendering unit exists in at least one basic rendering unit; and responding to the fact that the basic rendering unit corresponding to the region where the to-be-displayed title is located detects the preset operation, and scrolling and displaying the to-be-displayed title in the region where the to-be-displayed title is located.
In a second aspect, an embodiment of the present application provides an apparatus for rendering a title page, where the apparatus includes: a first acquisition unit configured to acquire a title to be displayed and type information of the title to be displayed; a second acquisition unit configured to acquire at least one basic rendering unit and at least one basic operation unit corresponding to the type information; and the rendering unit is configured to render the to-be-displayed title according to the acquired at least one basic rendering unit and at least one basic operation unit so as to generate a title page. .
In some embodiments, the type information of the titles to be displayed includes arithmetic titles. The second acquiring unit is further configured to: and acquiring an icon display unit, wherein the icon display unit is used for indicating the correctness of the answer of the question to be displayed.
In some embodiments, the type information of the to-be-displayed topic includes an application topic. The second acquiring unit is further configured to: the method comprises the steps of obtaining an icon display unit and a quadrilateral frame unit, wherein the icon display unit is used for indicating the correctness of answers of questions to be displayed, and the quadrilateral frame unit is used for indicating the area where the questions to be displayed are located.
In some embodiments, the basic operation unit comprises at least one of: highlighting, canceling highlighting and displaying the area where the title is located in a rolling way.
In some embodiments, the basic operation unit includes a highlight display. The rendering unit includes: the first drawing module is configured to draw the to-be-displayed title according to the acquired at least one basic rendering unit so as to generate a title page; a first detection module configured to detect whether there is a clicked basic rendering unit in the at least one basic rendering unit; and the highlight display module is configured to highlight a region where the theme to be displayed is located on the theme page in response to determining that the clicked basic rendering unit exists.
In some embodiments, the basic operation unit further comprises canceling the highlighting. The rendering unit is further configured to cancel highlighting of the area where the to-be-displayed title is located on the title page in response to determining that the area where the to-be-displayed title is located is highlighted and detecting that the clicked basic rendering unit exists in the at least one basic rendering unit.
In some embodiments, the basic operation unit comprises a scrolling display of the area where the title is located. The rendering unit includes: the second drawing module is configured to draw the to-be-displayed title according to the acquired at least one basic rendering unit so as to generate a title page; a second detection module configured to detect whether there is a clicked basic rendering unit in the at least one basic rendering unit; and the scrolling display module is configured to respond to the fact that the basic rendering unit corresponding to the region where the to-be-displayed title is located detects the preset operation, and scroll and display the to-be-displayed title in the region where the to-be-displayed title is located.
In a third aspect, an embodiment of the present application provides a terminal, where the terminal includes: one or more processors; a storage device having one or more programs stored thereon; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, which when executed by a processor implements the method described in any implementation manner of the first aspect.
According to the method and the device for rendering the title page, provided by the embodiment of the application, the title to be displayed and the type information of the title to be displayed are obtained. Then, at least one basic rendering unit and at least one basic operation unit corresponding to the type information are acquired. And finally, rendering the to-be-displayed title according to the acquired at least one basic rendering unit and the acquired at least one basic operation unit to generate a title page. Therefore, the method enriches the theme page rendering mode and increases the theme page rendering flexibility. And the multiplexing of similar rendering processes and operations can be realized by only changing the combination relationship between the basic rendering unit and the basic operation unit, thereby reducing the waste of human resources for repeated development.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for rendering a title page according to the present application;
FIG. 3 is a schematic diagram of one application scenario of a method for rendering a title page according to an embodiment of the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for rendering a title page according to the present application;
FIG. 5 is a schematic diagram of an embodiment of an apparatus for rendering a title page according to the present application;
FIG. 6 is a schematic block diagram of an electronic device suitable for use in implementing embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
FIG. 1 illustrates an exemplary architecture 100 to which the method for rendering a title page or the apparatus for rendering a title page of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 101, 102, 103 interact with a server 105 via a network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, an instant messaging tool, a mailbox client, social platform software, a text editing application, an education application, and the like.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen and supporting page display, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103. The background server can send the titles to be displayed to the terminal equipment so that the terminal equipment can be presented to the user.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for rendering a topic page provided in the embodiment of the present application is generally executed by the terminal devices 101, 102, and 103, and accordingly, the apparatus for rendering a topic page is generally disposed in the terminal devices 101, 102, and 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for rendering a title page in accordance with the present application is shown. The method for rendering a title page includes the steps of:
step 201, obtaining the title to be displayed and the type information of the title to be displayed.
In this embodiment, an execution main body (such as the terminal devices 101, 102, and 103 shown in fig. 1) of the method for rendering a title page may acquire a title to be displayed and type information of the title to be displayed in a wired connection manner or a wireless connection manner. The title to be displayed may include various title information capable of being displayed, such as text and/or images. The type information of the questions to be displayed may include various question types, such as a text description question, a selection question, a question and answer question, and the like.
As an example, the execution subject may obtain the to-be-displayed title and the type information of the to-be-displayed title, which are stored locally in advance. As yet another example, the execution subject described above may transmit type information of a title to be displayed to an electronic device (e.g., the server 105 shown in fig. 1) to which the execution subject is communicatively connected. As still another example, the execution body may further acquire a title to be displayed, which is obtained through an OCR (Optical Character Recognition) process. The executing body may further analyze the acquired to-be-displayed title (for example, detect whether there is an image or not, whether there is an option or not, and the like), so as to generate the type information of the to-be-displayed title.
In some optional implementations of this embodiment, the type information of the to-be-displayed title may include an arithmetic title.
In some optional implementation manners of this embodiment, the type information of the to-be-displayed title may include an application title.
At step 202, at least one basic rendering unit and at least one basic operation unit corresponding to the type information are obtained.
In this embodiment, the execution main body may obtain at least one basic rendering unit and at least one basic operation unit corresponding to the type information according to a preset correspondence table. The preset correspondence table may be used to represent a correspondence between the type information and the basic rendering unit and the basic operation unit. The basic rendering unit may be used to characterize the elements to be drawn, such as circles, rectangular boxes, and the like. The basic operation unit can be used for representing operations (actions) supported by the page, such as clicking, scrolling and the like.
In some optional implementations of this embodiment, based on an arithmetic question included in the type information of the to-be-displayed question, the execution main body may acquire an icon display unit as at least one basic rendering unit corresponding to the type information. The icon display unit can be used for indicating the correctness of the answer of the question to be displayed. In practice, if the correction of the response to the title is displayed, "√" and "x" are displayed as the above-described icon display unit.
In some optional implementation manners of this embodiment, based on the application topic included in the type information of the topic to be displayed, the execution main body may obtain an icon display unit and a quadrilateral frame unit. The icon display unit can be used for indicating the correctness of the answer of the question to be displayed. The quadrilateral frame unit can be used for indicating the area where the title to be displayed is located. In practice, the shot subject image often cannot be guaranteed to be completely opposite to the shot subject when the shot subject image is shot, so that the shot subject image usually has certain degree of distortion, the quadrangle frame unit can be adopted to realize the adaptation to the image deviation, and the region where the subject is located can be displayed more accurately.
In some optional implementations of this embodiment, the basic operation unit may include at least one of: highlighting, canceling highlighting and displaying the area where the title is located in a rolling way.
And step 203, rendering the to-be-displayed title according to the acquired at least one basic rendering unit and at least one basic operation unit to generate a title page.
In this embodiment, according to the obtained at least one basic rendering unit and at least one basic operation unit, the execution main body may render the title to be displayed in various ways to generate a title page. As an example, the execution subject may draw the obtained at least one basic rendering unit through a custom UI component (e.g., custom View) provided by an Android SDK (Software Development Kit). Then, the execution main body can execute the relevant operation according to the operation logic indicated by the obtained basic operation unit, so as to generate a display page of the to-be-displayed title.
In some optional implementation manners of this embodiment, based on the scrolling display of the area where the title included in the basic operation unit is located, the execution main body may render a display page of the title to be displayed according to the following steps:
the method comprises the following steps that firstly, a to-be-displayed title is drawn according to at least one acquired basic rendering unit, so that a title page is generated.
In these implementation manners, according to the obtained at least one basic rendering unit, the execution main body may draw the to-be-displayed title according to the parameter in the basic rendering unit, so as to generate a title page. The parameter may include, for example, the abscissa and the ordinate of the drawing position.
And secondly, detecting whether the clicked basic rendering unit exists in the at least one basic rendering unit.
In these implementations, the execution subject may detect whether there is a clicked basic rendering unit in the at least one basic rendering unit in various ways. As an example, the execution subject may detect whether the each level rendering unit triggers a click event through the custom View.
And thirdly, responding to the fact that the basic rendering unit corresponding to the region where the to-be-displayed title is located detects preset operation, and displaying the to-be-displayed title in a rolling mode in the region where the to-be-displayed title is located.
In these implementation manners, in response to determining that a preset operation is detected by a basic rendering unit corresponding to a region where a to-be-displayed title is located (that is, a union of regions where the basic rendering units are located is detected), the execution main body may scroll and display the to-be-displayed title in the region where the to-be-displayed title is located, so as to implement an effect that the to-be-displayed title may scroll up and down or left and right in the region where the to-be-displayed title is located.
With continued reference to FIG. 3, FIG. 3 is a schematic diagram of an application scenario of a method for rendering a title page according to an embodiment of the present application. In the application scenario of fig. 3, the terminal device 301 obtains a word description question 303 belonging to the type of word description question from the backend server 302. The background server 302 may store topics of various topic types, such as an arithmetic topic, an application topic, a text description topic, and the like. After that, the terminal device 301 acquires the rectangular frame and the entry animation 304 as a basic rendering unit and a basic operation unit, respectively, corresponding to the word-description question. Finally, according to the acquired rectangular box and the entry animation 304, the terminal device 301 may draw the text portion 305 and the image portion 306, respectively, and generate a dynamic effect of the entry animation to generate a display page of the text description title 303 for the user 307 to view.
At present, one of the prior arts generally designs a rendering mode of a theme page corresponding to each theme type, which results in similar rendering flow and operation logic needing to be rewritten, thereby bringing higher development cost. According to the method provided by the embodiment of the application, the complete theme rendering mode corresponding to the theme type is disassembled into the basic rendering unit and the basic operation unit, and then the rendering support of any theme type is realized through the arrangement and combination between the basic rendering unit and the basic operation unit, so that the theme page rendering mode is enriched, and the theme page rendering flexibility is improved. And the multiplexing of similar rendering processes and operations can be realized by only changing the combination relationship between the basic rendering unit and the basic operation unit, thereby reducing the waste of human resources for repeated development.
With further reference to FIG. 4, a flow 400 of yet another embodiment of a method for rendering a title page is illustrated. The flow 400 of the method for rendering a title page includes the steps of:
step 401, obtaining a title to be displayed and type information of the title to be displayed.
Step 402, at least one basic rendering unit and at least one basic operation unit corresponding to the type information are obtained.
In the present embodiment, the above-described basic operation unit may include a highlight display.
In some optional implementations of this embodiment, the basic operation unit may further include canceling the highlight display.
Step 401 and step 402 are respectively consistent with step 201, step 202 and their optional implementation manners in the foregoing embodiment, and the above description on step 201, step 202 and their optional implementation manners also applies to step 401 and step 402, which is not described herein again.
And step 403, drawing the to-be-displayed title according to the acquired at least one basic rendering unit to generate a title page.
In this embodiment, an execution body (for example, terminal devices 101, 102, and 103 shown in fig. 1) of the method for rendering a title page may draw a title to be displayed by a method consistent with the implementation manner selectable in step 203 in the foregoing embodiment, which is not described herein again.
Step 404, detecting whether there is a clicked basic rendering unit in at least one basic rendering unit.
In this embodiment, the executing body may detect whether there is a clicked basic rendering unit in at least one basic rendering unit by using a method consistent with the optional implementation manner in step 203 of the foregoing embodiment, which is not described herein again.
Step 405, in response to determining that the clicked basic rendering unit exists, highlighting an area where the title to be displayed is located on the title page.
In this embodiment, in response to determining that there is a clicked basic rendering unit, the execution main body may highlight, on the generated title page, a region where a title to be displayed is located. Therefore, the effect of highlighting the area where the title to be displayed is located is achieved.
In some optional implementation manners of this embodiment, based on the cancellation of highlighting included in the basic operation unit, in response to determining that the region where the to-be-displayed title is highlighted and detecting that the clicked basic rendering unit exists in the at least one basic rendering unit, the execution main body may cancel highlighting of the region where the to-be-displayed title is located on the title page.
As can be seen from fig. 4, a flow 400 of the method for rendering a theme page in the present embodiment embodies a step of detecting whether the acquired at least one basic rendering unit is clicked, and a step of highlighting a theme zone according to the clicked condition. Therefore, according to the scheme described in the embodiment, the topic area can be highlighted when the fact that the topic area is clicked is detected, so that the effect of highlighting the topic according to user operation is achieved, the rendering mode of the topic page is enriched, and the user experience is improved.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for rendering a title page, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2 or fig. 4, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 5, the apparatus 500 for rendering a title page provided by the present embodiment includes a first obtaining unit 501, a second obtaining unit 502, and a rendering unit 503. The first obtaining unit 501 is configured to obtain a title to be displayed and type information of the title to be displayed; a second obtaining unit 502 configured to obtain at least one basic rendering unit and at least one basic operation unit corresponding to the type information; and a rendering unit 503 configured to render the to-be-displayed title according to the obtained at least one basic rendering unit and at least one basic operation unit to generate a title page.
In the present embodiment, in the apparatus 500 for rendering a title page: the specific processing of the first obtaining unit 501, the second obtaining unit 502, and the rendering unit 503 and the technical effects thereof can refer to the related descriptions of step 201, step 202, and step 203 in the corresponding embodiment of fig. 2, which are not repeated herein.
In some optional implementations of this embodiment, the type information of the to-be-displayed title may include an arithmetic title. The second obtaining unit 502 may be further configured to: an icon display unit is acquired. The icon display unit can be used for indicating whether the answers of the questions to be displayed are correct or incorrect.
In some optional implementation manners of this embodiment, the type information of the to-be-displayed title may include an application title. The second obtaining unit 502 may be further configured to: an icon display unit and a quadrangular frame unit are acquired. The icon display unit can be used for indicating whether the answers of the questions to be displayed are correct or incorrect. The quadrilateral frame unit can be used for indicating the area where the title to be displayed is located.
In some optional implementations of this embodiment, the basic operation unit may include at least one of: highlighting, canceling highlighting and displaying the area where the title is located in a rolling way.
In some optional implementations of this embodiment, the basic operation unit may include a highlight display. The rendering unit 503 may include a first drawing module (not shown), a first detection module (not shown), and a highlighting module (not shown). The first drawing module may be configured to draw the to-be-displayed title according to the acquired at least one basic rendering unit, so as to generate a title page. The first detection module may be configured to detect whether there is a clicked basic rendering unit in the at least one basic rendering unit. The highlighting module can be configured to highlight a region on the title page where the title is to be displayed in response to determining that there is a clicked base rendering unit.
In some optional implementations of this embodiment, the basic operation unit may further include canceling the highlight display. The rendering unit 503 may be further configured to cancel highlighting of the area where the to-be-displayed title is located on the title page in response to determining that the area where the to-be-displayed title is located is highlighted and detecting that there is a clicked basic rendering unit in at least one basic rendering unit.
In some optional implementation manners of this embodiment, the basic operation unit may include a scroll display of an area where the title is located. The rendering unit 503 may include a second drawing module (not shown), a second detection module (not shown), and a scrolling display module (not shown). The second rendering module may be configured to render a to-be-displayed title according to the obtained at least one basic rendering unit, so as to generate a title page. The second detection module may be configured to detect whether there is a clicked basic rendering unit in the at least one basic rendering unit. The scrolling display module can be configured to, in response to determining that a basic rendering unit corresponding to a region where a to-be-displayed title is located detects a preset operation, scroll-display the to-be-displayed title in the region where the to-be-displayed title is located.
In the apparatus provided by the foregoing embodiment of the present application, the first obtaining unit 501 obtains the titles to be displayed and the type information of the titles to be displayed. Then, the second acquisition unit 502 acquires at least one basic rendering unit and at least one basic operation unit corresponding to the type information. Finally, the rendering unit 503 renders the to-be-displayed title according to the obtained at least one basic rendering unit and at least one basic operation unit to generate a title page. Therefore, the method enriches the theme page rendering mode and increases the theme page rendering flexibility. And the multiplexing of similar rendering processes and operations can be realized by only changing the combination relationship between the basic rendering unit and the basic operation unit, thereby reducing the waste of human resources for repeated development.
Referring now to fig. 6, shown is a schematic diagram of an electronic device (e.g., the terminal device in fig. 1) 600 suitable for implementing embodiments of the present application. The terminal device in the embodiments of the present application may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; a storage device 608 including, for example, a flash memory; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present application.
It should be noted that the computer readable medium described in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be included in the terminal device; or may exist separately without being assembled into the terminal device. The computer readable medium carries one or more programs which, when executed by the terminal device, cause the terminal device to: acquiring a question to be displayed and type information of the question to be displayed; acquiring at least one basic rendering unit and at least one basic operation unit corresponding to the type information; and rendering the display page of the topic to be displayed according to the acquired at least one basic rendering unit and at least one basic operation unit.
Computer program code for carrying out operations for embodiments of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first acquisition unit, a second acquisition unit, and a rendering unit. Here, the names of these units do not constitute a limitation to the unit itself in some cases, and for example, the first acquisition unit may also be described as "a unit that acquires a title to be displayed and type information of the title to be displayed".
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present application is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) the features with similar functions disclosed in the embodiments of the present application are mutually replaced to form the technical solution.

Claims (10)

1. A method for rendering a title page, comprising:
acquiring a question to be displayed and type information of the question to be displayed;
acquiring at least one basic rendering unit and at least one basic operation unit corresponding to the type information;
and rendering the to-be-displayed title according to the acquired at least one basic rendering unit and at least one basic operation unit to generate a title page.
2. The method according to claim 1, wherein the type information of the subject to be displayed includes an arithmetic subject; and
the obtaining of the at least one basic rendering unit corresponding to the type information includes:
and acquiring an icon display unit, wherein the icon display unit is used for indicating the correctness of the answer of the question to be displayed.
3. The method according to claim 1, wherein the type information of the to-be-displayed topic includes an application topic; and
the obtaining of the at least one basic rendering unit corresponding to the type information includes:
acquiring an icon display unit and a quadrilateral frame unit, wherein the icon display unit is used for indicating the correctness of the answer of the to-be-displayed question, and the quadrilateral frame unit is used for indicating the area where the to-be-displayed question is located.
4. The method according to one of claims 1-3, wherein the basic operation unit comprises at least one of: highlighting, canceling highlighting and displaying the area where the title is located in a rolling way.
5. The method of claim 4, wherein the basic unit of operation comprises highlighting; and
the rendering the theme to be displayed according to the obtained at least one basic rendering unit and at least one basic operation unit to generate a theme page includes:
drawing the to-be-displayed title according to the obtained at least one basic rendering unit to generate a title page;
detecting whether a clicked basic rendering unit exists in the at least one basic rendering unit;
and responding to the fact that the clicked basic rendering unit exists, and highlighting the area where the to-be-displayed title is located on the title page.
6. The method of claim 5, wherein the base operating unit further comprises de-highlighting; and
the rendering the theme to be displayed according to the obtained at least one basic rendering unit and at least one basic operation unit to generate a theme page includes:
and in response to the fact that the area where the to-be-displayed title is located is highlighted and the fact that the clicked basic rendering unit exists in the at least one basic rendering unit is detected, the area where the to-be-displayed title is located is not highlighted on the title page.
7. The method of claim 4, wherein the basic operation unit comprises a scroll display of the area where the title is located; and
the rendering the theme to be displayed according to the obtained at least one basic rendering unit and at least one basic operation unit to generate a theme page includes:
drawing the to-be-displayed title according to the obtained at least one basic rendering unit to generate a title page;
detecting whether a clicked basic rendering unit exists in the at least one basic rendering unit;
and in response to the fact that the basic rendering unit corresponding to the area where the to-be-displayed title is located detects the preset operation, displaying the to-be-displayed title in a rolling mode in the area where the to-be-displayed title is located.
8. An apparatus for rendering a title page, comprising:
a first obtaining unit configured to obtain a title to be displayed and type information of the title to be displayed;
a second acquisition unit configured to acquire at least one basic rendering unit and at least one basic operation unit corresponding to the type information;
and the rendering unit is configured to render the display page of the title to be displayed according to the acquired at least one basic rendering unit and at least one basic operation unit.
9. A terminal, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202010410439.7A 2020-05-15 2020-05-15 Method and device for rendering title page Pending CN113672317A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010410439.7A CN113672317A (en) 2020-05-15 2020-05-15 Method and device for rendering title page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010410439.7A CN113672317A (en) 2020-05-15 2020-05-15 Method and device for rendering title page

Publications (1)

Publication Number Publication Date
CN113672317A true CN113672317A (en) 2021-11-19

Family

ID=78537530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010410439.7A Pending CN113672317A (en) 2020-05-15 2020-05-15 Method and device for rendering title page

Country Status (1)

Country Link
CN (1) CN113672317A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661196A (en) * 2022-04-18 2022-06-24 北京高途云集教育科技有限公司 Exercise display method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104851329A (en) * 2015-05-14 2015-08-19 锐达互动科技股份有限公司 Method and system for electronic paper marking at video exhibition stand
CN105185171A (en) * 2015-09-30 2015-12-23 夏竹兵 Learning method and apparatus used for intelligent terminal, and intelligent terminal
CN106803427A (en) * 2016-12-15 2017-06-06 网易(杭州)网络有限公司 Method and system and computer-readable recording medium for information to be presented
CN107480193A (en) * 2017-07-13 2017-12-15 广东小天才科技有限公司 A kind of method and system for aiding in user to answer examination question
CN107908612A (en) * 2017-11-14 2018-04-13 杭州汉林文化创意股份有限公司 Answering card generation method, answer card identification method, operating system
CN108460040A (en) * 2017-02-20 2018-08-28 阿里巴巴集团控股有限公司 Display methods, display device and the intelligent display device of interface content
CN109376351A (en) * 2018-09-11 2019-02-22 宁波思骏科技有限公司 A method of to content of courses self-adaption typesetting in tablet device
CN109460523A (en) * 2018-09-21 2019-03-12 广州神马移动信息科技有限公司 Method for exhibiting data, device, terminal device and computer storage medium
CN110413916A (en) * 2019-07-31 2019-11-05 百度在线网络技术(北京)有限公司 The method and apparatus of the topic page for rendering

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104851329A (en) * 2015-05-14 2015-08-19 锐达互动科技股份有限公司 Method and system for electronic paper marking at video exhibition stand
CN105185171A (en) * 2015-09-30 2015-12-23 夏竹兵 Learning method and apparatus used for intelligent terminal, and intelligent terminal
CN106803427A (en) * 2016-12-15 2017-06-06 网易(杭州)网络有限公司 Method and system and computer-readable recording medium for information to be presented
CN108460040A (en) * 2017-02-20 2018-08-28 阿里巴巴集团控股有限公司 Display methods, display device and the intelligent display device of interface content
CN107480193A (en) * 2017-07-13 2017-12-15 广东小天才科技有限公司 A kind of method and system for aiding in user to answer examination question
CN107908612A (en) * 2017-11-14 2018-04-13 杭州汉林文化创意股份有限公司 Answering card generation method, answer card identification method, operating system
CN109376351A (en) * 2018-09-11 2019-02-22 宁波思骏科技有限公司 A method of to content of courses self-adaption typesetting in tablet device
CN109460523A (en) * 2018-09-21 2019-03-12 广州神马移动信息科技有限公司 Method for exhibiting data, device, terminal device and computer storage medium
CN110413916A (en) * 2019-07-31 2019-11-05 百度在线网络技术(北京)有限公司 The method and apparatus of the topic page for rendering

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661196A (en) * 2022-04-18 2022-06-24 北京高途云集教育科技有限公司 Exercise display method and device, electronic equipment and storage medium
CN114661196B (en) * 2022-04-18 2024-03-22 北京高途云集教育科技有限公司 Problem display method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109976620B (en) Method, device, equipment and storage medium for determining list item display attribute information
CN111966255B (en) Information display method and device, electronic equipment and computer readable medium
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
CN111459364A (en) Icon updating method and device and electronic equipment
CN110058854B (en) Method, terminal device and computer-readable medium for generating application
CN111931464A (en) Document editing method and device and electronic equipment
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN111061860A (en) Abstract generation method and device
CN110618811B (en) Information presentation method and device
CN113672317A (en) Method and device for rendering title page
CN110069186B (en) Method and equipment for displaying operation interface of application
CN110619101B (en) Method and apparatus for processing information
CN114528816B (en) Collaborative editing information display method and device, electronic equipment and readable medium
CN110673908A (en) Interface generation method, device, medium and electronic equipment
CN112307393A (en) Information issuing method and device and electronic equipment
CN113296771A (en) Page display method, device, equipment and computer readable medium
CN113568695A (en) Corner mark processing method and device for boarder application
CN112307717A (en) Text labeling information display method and device, electronic equipment and medium
CN113220293B (en) Page display method, page display device, electronic equipment and computer readable medium
CN111835917A (en) Method, device and equipment for showing activity range and computer readable medium
CN111324349A (en) Method, device, terminal and storage medium for generating interactive interface
CN111367517B (en) Information generation method and device
CN114428823B (en) Data linkage method, device, equipment and medium based on multidimensional variable expression
CN112346630B (en) State determination method, device, equipment and computer readable medium
CN114697760B (en) Processing method, processing device, electronic equipment and medium

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