CN113672317B - Method and device for rendering topic pages - Google Patents

Method and device for rendering topic pages Download PDF

Info

Publication number
CN113672317B
CN113672317B CN202010410439.7A CN202010410439A CN113672317B CN 113672317 B CN113672317 B CN 113672317B CN 202010410439 A CN202010410439 A CN 202010410439A CN 113672317 B CN113672317 B CN 113672317B
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.)
Active
Application number
CN202010410439.7A
Other languages
Chinese (zh)
Other versions
CN113672317A (en
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/CN113672317B/en
Publication of CN113672317A publication Critical patent/CN113672317A/en
Application granted granted Critical
Publication of CN113672317B publication Critical patent/CN113672317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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 question page. One embodiment of the method comprises the following steps: acquiring a title to be displayed and type information of the title to be displayed; acquiring at least one basic rendering unit and at least one basic operation unit corresponding to the type information; rendering the title to be displayed according to the acquired at least one basic rendering unit and the at least one basic operation unit to generate a title page. The embodiment enriches the rendering modes of the topic pages and increases the flexibility of the rendering of the topic pages.

Description

Method and device for rendering topic pages
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 question page.
Background
With the development of computer technology, computer-aided teaching has also gained increasing application. Currently, many educational Applications (APP) can support the display of on-line questions answers and questions modification. Because of the multiple types of topics, the display logic and the operation logic for different topic types tend to be different. Therefore, when a question type is newly added, the related method generally needs to design a rendering method of the question page corresponding to the newly added question type.
Disclosure of Invention
The embodiment of the application provides a method and a device for rendering a question page.
In a first aspect, an embodiment of the present application provides a method for rendering a topic page, the method including: 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; rendering the title to be displayed according to the acquired at least one basic rendering unit and the at least one basic operation unit to generate a title page. .
In some embodiments, the type information of the title to be displayed includes an arithmetic title. The obtaining 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 whether the answer of the question to be displayed is correct or incorrect.
In some embodiments, the type information of the title to be displayed includes an application title. The obtaining at least one basic rendering unit corresponding to the type information includes: and acquiring an icon display unit and a quadrilateral frame unit, wherein the icon display unit is used for indicating whether the answer of the question to be displayed is correct or not, and the quadrilateral frame unit is used for indicating the area where the question to be displayed is located.
In some embodiments, the basic operation unit includes at least one of: highlighting, canceling highlighting, and scrolling the area where the title is located.
In some embodiments, the basic operation unit includes highlighting. The rendering the title to be displayed according to the acquired at least one basic rendering unit and the at least one basic operation unit to generate a title page comprises: drawing the questions to be displayed according to the acquired 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 in response to determining that the clicked basic rendering unit exists, highlighting the area where the title to be displayed is located on the title page.
In some embodiments, the basic operation unit further includes a cancel highlighting. Rendering the title to be displayed according to the acquired at least one basic rendering unit and the at least one basic operation unit to generate a title page, including: and in response to determining that the area of the to-be-displayed title is highlighted and detecting that the clicked basic rendering unit exists in the at least one basic rendering unit, canceling highlighting the area of the to-be-displayed title on the title page.
In some embodiments, the basic operation unit includes a scrolling display of an area where the title is located. The rendering the title to be displayed according to the acquired at least one basic rendering unit and the at least one basic operation unit to generate a title page comprises: drawing the questions to be displayed according to the acquired 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 area where the to-be-displayed title is located detects a preset operation, and scrolling and displaying the to-be-displayed title in the area where the to-be-displayed title is located.
In a second aspect, an embodiment of the present application provides an apparatus for rendering a theme page, including: a first acquisition unit configured to acquire a question to be displayed and type information of the question 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 questions to be displayed according to the acquired at least one basic rendering unit and the at least one basic operation unit so as to generate a question page. .
In some embodiments, the type information of the title to be displayed includes an arithmetic title. The second acquisition unit is further configured to: and acquiring an icon display unit, wherein the icon display unit is used for indicating whether the answer of the question to be displayed is correct or incorrect.
In some embodiments, the type information of the title to be displayed includes an application title. The second acquisition unit is further configured to: and acquiring an icon display unit and a quadrilateral frame unit, wherein the icon display unit is used for indicating whether the answer of the question to be displayed is correct or incorrect, and the quadrilateral frame unit is used for indicating the area where the question to be displayed is located.
In some embodiments, the basic operation unit includes at least one of: highlighting, canceling highlighting, and scrolling the area where the title is located.
In some embodiments, the basic operation unit includes highlighting. The rendering unit includes: the first drawing module is configured to draw the questions to be displayed according to the acquired at least one basic rendering unit so as to generate a question page; a first detection module configured to detect whether there is a clicked basic rendering unit among the at least one basic rendering unit; and a highlighting module configured to highlight an area where the title to be displayed is located on the title page in response to determining that the clicked basic rendering unit exists.
In some embodiments, the basic operation unit further includes a cancel highlighting. The rendering unit is further configured to cancel highlighting the region of the question to be displayed on the question page in response to determining that the region of the question to be displayed is highlighted and detecting that there is a clicked base rendering unit in the at least one base rendering unit.
In some embodiments, the basic operation unit includes a scrolling display of an area where the title is located. The rendering unit includes: the second drawing module is configured to draw the questions to be displayed according to the acquired at least one basic rendering unit so as to generate a question page; a second detection module configured to detect whether there is a clicked basic rendering unit among the at least one basic rendering unit; the scrolling display module is configured to scroll and display the to-be-displayed title in the area where the to-be-displayed title is located in response to the fact that the basic rendering unit corresponding to the area where the to-be-displayed title is located detects a preset operation.
In a third aspect, an embodiment of the present application provides a terminal, including: one or more processors; a storage device having one or more programs stored thereon; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described in any of the implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a method as described in any of the implementations of the first aspect.
The method and the device for rendering the title page provided by the embodiment of the application are characterized in that firstly, 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 title to be displayed according to the acquired at least one basic rendering unit and the at least one basic operation unit to generate a title page. Therefore, the method for rendering the topic page is enriched, and the flexibility of rendering the topic page is improved. And multiplexing of similar rendering flows and operations can be realized by only changing the combination relation between the basic rendering unit and the basic operation unit, so that manpower resource waste of repeated development is reduced.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a method for rendering a topic page in accordance with the present application;
FIG. 3 is a schematic diagram of one application scenario of a method for rendering a topic page in accordance with an embodiment of the present application;
FIG. 4 is a flow chart of yet another embodiment of a method for rendering a topic page in accordance with the present application;
FIG. 5 is a schematic structural diagram of one embodiment of an apparatus for rendering a theme page in accordance with the present application;
Fig. 6 is a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the present application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
FIG. 1 illustrates an exemplary architecture 100 of a method for rendering a subject page or an apparatus for rendering a subject page to which the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The terminal devices 101, 102, 103 interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as a web browser application, a shopping class application, an instant messaging tool, a mailbox client, social platform software, a text editing class application, an educational class application, and the like, may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 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 smartphones, tablet computers, electronic book readers, laptop and desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., software or software modules for providing distributed services) or as a single software or software module. The present invention 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 may send the title to be displayed to the terminal device so that the terminal device may be presented to the user.
The server may be hardware or software. When the server is hardware, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (e.g., software or software modules for providing distributed services), or as a single software or software module. The present invention is not particularly limited herein.
It should be noted that, the method for rendering a question page provided by the embodiment of the present application is generally executed by the terminal devices 101, 102, 103, and accordingly, the apparatus for rendering a question page is generally disposed in the terminal devices 101, 102, 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 subject page in accordance with the present application is shown. The method for rendering the title page comprises the following steps:
step 201, obtaining the title to be displayed and the type information of the title to be displayed.
In this embodiment, the execution body of the method for rendering a question page (such as the terminal devices 101, 102, 103 shown in fig. 1) may acquire the questions to be displayed and the type information of the questions to be displayed through a wired connection manner or a wireless connection manner. The questions to be displayed may include various kinds of question information that can be displayed, such as text and/or images. The type information of the questions to be displayed may include various question types, such as text description questions, selection questions, questions and the like.
As an example, the execution subject may acquire the title to be displayed and the type information of the title to be displayed stored in advance locally. As yet another example, the executing entity may send the type information of the title to be displayed from an electronic device (e.g., server 105 shown in fig. 1) communicatively connected thereto. As yet another example, the execution subject may also acquire a question to be displayed obtained through OCR (Optical Character Recognition ) processing. The execution body may further analyze (e.g., detect whether there is an image, whether there is an option, etc.) the acquired title to be displayed, so as to generate type information of the title to be displayed.
In some optional implementations of this embodiment, the type information of the questions to be displayed may include an arithmetic question.
In some optional implementations of this embodiment, the type information of the questions to be displayed may include an application question.
Step 202, at least one basic rendering unit and at least one basic operation unit corresponding to the type information are acquired.
In this embodiment, the execution body may acquire 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 corresponding relation table may be used to characterize the corresponding relation between the type information and the basic rendering unit and the basic operation unit. The above-described basic rendering unit may be used to characterize elements to be drawn, such as circles, rectangular boxes, etc. The basic operation unit described above may be used to characterize operations (actions) supported by the page, such as clicking, scrolling, etc.
In some optional implementations of this embodiment, based on the arithmetic questions included in the type information of the questions to be displayed, the execution subject may acquire the icon display unit as at least one basic rendering unit corresponding to the type information. The icon display unit may be configured to indicate whether the answer to the question to be displayed is correct or incorrect. In practice, if a correction of the condition of answering the question is displayed, the displayed "v" and "x" can be regarded as the above-described icon display unit.
In some optional implementations of this embodiment, the execution subject may obtain the icon display unit and the quadrangular frame unit based on the application questions included in the type information of the questions to be displayed. The icon display unit may be configured to indicate whether the answer to the question to be displayed is correct or incorrect. The quadrangular frame unit may be used to indicate an area where the title to be displayed is located. In practice, the photographed subject image is usually distorted to a certain extent because the subject cannot be guaranteed to be completely right opposite to the photographed subject during photographing, and the quadrangular frame unit can be adopted to adapt to the image deviation, so that the region where the subject is located is displayed more accurately.
In some optional implementations of this embodiment, the basic operation unit may include at least one of: highlighting, canceling highlighting, and scrolling the area where the title is located.
And 203, 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.
In this embodiment, according to the obtained at least one basic rendering unit and at least one basic operation unit, the execution body may render the title to be displayed in various manners, so as to generate a title page. As an example, the execution body 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 body may execute the related operation according to the operation logic indicated by the obtained basic operation unit, thereby generating a display page of the title to be displayed.
In some optional implementations of this embodiment, based on the scrolling display of the area where the title included in the basic operation unit is located, the execution body may render the page to be displayed with the title display according to the following steps:
The method comprises the steps of firstly, drawing a question to be displayed according to at least one obtained basic rendering unit to generate a question page.
In these implementations, according to the obtained at least one basic rendering unit, the execution body may draw the title to be displayed according to the parameters in the basic rendering unit, thereby generating the title page. The parameters may include, for example, the abscissa of the drawing position.
And a second step of detecting whether the clicked basic rendering unit exists in the at least one basic rendering unit.
In these implementations, the execution body may detect whether there is a clicked basic rendering unit among the at least one basic rendering unit in various ways. As an example, the execution body may detect whether the 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 area where the to-be-displayed title is located detects a preset operation, and displaying the to-be-displayed title in a rolling mode in the area where the to-be-displayed title is located.
In these implementations, in response to determining that the basic rendering units corresponding to the area where the to-be-displayed question is located detect a preset operation (that is, the union of the areas where the respective basic rendering units are located is detected), the execution body may scroll the to-be-displayed question within the area where the to-be-displayed question is located, so as to achieve an effect that the to-be-displayed question may scroll up and down or left and right within the area.
With continued reference to fig. 3, fig. 3 is a schematic illustration of an application scenario of a method for rendering a theme page according to an embodiment of the present application. In the application scenario of fig. 3, the terminal device 301 acquires a text description question 303 belonging to the text description question type from the background server 302. In this case, various questions of the question type, such as an arithmetic question, an application question, a text description question, and the like, may be stored in the background server 302. Thereafter, the terminal device 301 acquires a rectangular frame and an entry animation 304 as a basic rendering unit and a basic operation unit, respectively, corresponding to the text description questions. Finally, based on the acquired rectangular frame 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 question 303 for viewing by the user 307.
Currently, one of the existing technologies is to design a rendering manner of a corresponding question page for each question type, which results in that similar rendering flow and operation logic need to be rewritten, thereby bringing about higher development cost. According to the method provided by the embodiment of the application, the complete question rendering mode corresponding to the question type is disassembled into the basic rendering unit and the basic operation unit, and then the rendering support of any question type is realized through the arrangement and combination of the basic rendering unit and the basic operation unit, so that the question page rendering mode is enriched, and the flexibility of the question page rendering is increased. And multiplexing of similar rendering flows and operations can be realized by only changing the combination relation between the basic rendering unit and the basic operation unit, so that manpower resource waste of repeated development is reduced.
With further reference to FIG. 4, a flow 400 of yet another embodiment of a method for rendering a subject 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.
At step 402, at least one basic rendering unit and at least one basic operation unit corresponding to the type information are acquired.
In this embodiment, the basic operation unit described above may include highlighting.
In some optional implementations of this embodiment, the basic operation unit may further include a cancel highlighting.
The steps 401 and 402 are consistent with the steps 201 and 202 and the optional implementation manners in the foregoing embodiments, and the descriptions of the steps 201 and 202 and the optional implementation manners thereof are also applicable to the steps 401 and 402, which are not repeated herein.
And step 403, drawing the questions to be displayed according to the acquired at least one basic rendering unit so as to generate a question page.
In this embodiment, the execution body (e.g., the terminal devices 101, 102, 103 shown in fig. 1) of the method for rendering the question page may draw the question to be displayed by a method consistent with the optional implementation manner in step 203 of the foregoing embodiment, which is not described herein.
Step 404, detecting whether there is a clicked base rendering unit in the at least one base rendering unit.
In this embodiment, the execution body may detect whether the clicked basic rendering unit exists in the at least one basic rendering unit by adopting a method consistent with the optional implementation manner in step 203 of the foregoing embodiment, which is not described herein.
In response to determining that there is a clicked base rendering unit, the area where the question to be displayed is located is highlighted on the question page, step 405.
In this embodiment, in response to determining that there is a clicked base rendering unit, the execution body may highlight an area where a question to be displayed is located on the generated question page. Thereby realizing the effect of highlighting the area where the title to be displayed is located.
In some optional implementations of this embodiment, based on the canceling highlighting included in the basic operation unit, in response to determining that the area where the to-be-displayed question is located is highlighted and detecting that there is a clicked basic rendering unit in the at least one basic rendering unit, the executing body may cancel highlighting the area where the to-be-displayed question is located on the question page.
As can be seen from fig. 4, the flow 400 of the method for rendering a question page in this embodiment embodies the steps of detecting whether the acquired at least one basic rendering unit is clicked, and highlighting the question area according to the clicked condition. Therefore, the scheme described in the embodiment can highlight the question area when the question area is clicked, so that the effect of highlighting the question according to the user operation is achieved, rendering modes of the question page are enriched, and user experience is improved.
With further reference to fig. 5, as an implementation of the method shown in the foregoing figures, the present application provides an embodiment of an apparatus for rendering a theme 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 theme page provided in this embodiment includes a first obtaining unit 501, a second obtaining unit 502, and a rendering unit 503. Wherein, the first obtaining unit 501 is configured to obtain a question to be displayed and type information of the question to be displayed; a second acquisition unit 502 configured to acquire 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 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.
In the present embodiment, in the apparatus 500 for rendering a theme page: the specific processes of the first obtaining unit 501, the second obtaining unit 502 and the rendering unit 503 and the technical effects thereof may refer to the descriptions related to step 201, step 202 and step 203 in the corresponding embodiment of fig. 2, and are not repeated herein.
In some optional implementations of this embodiment, the type information of the questions to be displayed may include an arithmetic question. The second obtaining unit 502 may be further configured to: and acquiring an icon display unit. The icon display unit may be used to indicate whether the answer to the question to be displayed is correct or incorrect.
In some optional implementations of this embodiment, the type information of the questions to be displayed may include an application question. The second obtaining unit 502 may be further configured to: and acquiring an icon display unit and a quadrilateral frame unit. The icon display unit may be used to indicate whether the answer to the question to be displayed is correct or incorrect. The quadrangular 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 scrolling the area where the title is located.
In some optional implementations of this embodiment, the basic operation unit may include highlighting. The rendering unit 503 may include a first drawing module (not shown), a first detecting module (not shown), and a highlighting module (not shown). The first rendering module may be configured to render the question to be displayed according to the acquired at least one basic rendering unit, so as to generate a question page. The first detection module may be configured to detect whether there is a clicked base rendering unit among the at least one base rendering unit. The highlighting module may be configured to highlight an area on the question page where the question to be displayed is located 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 a cancel highlighting. The rendering unit 503 may be further configured to cancel highlighting the region where the question to be displayed is located on the question page in response to determining that the region where the question to be displayed is located is highlighted and detecting that there is a clicked base rendering unit in the at least one base rendering unit.
In some optional implementations of this embodiment, the basic operation unit may include scrolling the area where the title is located. The rendering unit 503 may include a second drawing module (not shown), a second detecting module (not shown), and a scrolling module (not shown). The second rendering module may be configured to render the question to be displayed according to the acquired at least one basic rendering unit, so as to generate a question page. The second detection module may be configured to detect whether there is a clicked base rendering unit among the at least one base rendering unit. The scrolling module may be configured to scroll the to-be-displayed title within the area where the to-be-displayed title is located in response to determining that the basic rendering unit corresponding to the area where the to-be-displayed title is located detects a preset operation.
The apparatus provided in the above embodiment of the present application acquires the title to be displayed and the type information of the title to be displayed through the first acquiring unit 501. 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 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. Therefore, the method for rendering the topic page is enriched, and the flexibility of rendering the topic page is improved. And multiplexing of similar rendering flows and operations can be realized by only changing the combination relation between the basic rendering unit and the basic operation unit, so that manpower resource waste of repeated development is reduced.
Referring now to fig. 6, a schematic diagram of an electronic device (e.g., the terminal device of fig. 1) 600 suitable for use in implementing embodiments of the present application is shown. The terminal device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The terminal device shown in fig. 6 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present application.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to 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 required 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 through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, 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 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 6 may represent one device or a plurality of devices as needed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts 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 shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the method of the embodiment of the present application are performed when the computer program is executed by the processing means 601.
It should be noted that, the computer readable medium according to 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. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 present 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 contrast, in embodiments of the present application, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (Radio Frequency), and the like, or any suitable combination thereof.
The computer readable medium may be contained in the terminal device; or may exist alone without being fitted 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 question 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 involved in the embodiments of the present application may be implemented in software or in hardware. The described units may also be provided in a processor, for example, described as: a processor includes a first acquisition unit, a second acquisition unit, and a rendering unit. The names of these units do not constitute a limitation of 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 illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the application in the embodiments of the present application is not limited to the specific combination of the above technical features, but also encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the application. Such as the technical solution formed by mutually replacing the above features and the technical features with similar functions (but not limited to) disclosed in the embodiments of the present application.

Claims (8)

1. A method for rendering a theme page, comprising:
Acquiring a title to be displayed and type information of the title to be displayed;
Acquiring at least one basic rendering unit and at least one basic operation unit corresponding to the type information;
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 basic operation unit comprises scrolling display and canceling highlighting display of the area where the title is located; and
The 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 comprises the following steps:
drawing the questions to be displayed according to the acquired at least one basic rendering unit to generate the question page;
Detecting whether a clicked basic rendering unit exists in the at least one basic rendering unit;
responding to the fact that a basic rendering unit corresponding to the area where the to-be-displayed title is located detects a preset operation, and displaying the to-be-displayed title in a rolling mode in the area where the to-be-displayed title is located;
And in response to determining that the area where the to-be-displayed title is positioned is highlighted and detecting that the clicked basic rendering unit exists in the at least one basic rendering unit, canceling highlighting the area where the to-be-displayed title is positioned on the title page.
2. The method of claim 1, wherein the type information of the title to be displayed includes an arithmetic title; and
The obtaining 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 whether the answer of the question to be displayed is correct or incorrect.
3. The method of claim 1, wherein the type information of the title to be displayed includes an application title; and
The obtaining at least one basic rendering unit corresponding to the type information includes:
and acquiring an icon display unit and a quadrilateral frame unit, wherein the icon display unit is used for indicating the correct and the wrong of the answer of the question to be displayed, and the quadrilateral frame unit is used for indicating the area where the question to be displayed is located.
4. A method according to one of claims 1-3, wherein the basic operating unit further comprises at least one of the following: highlighting, canceling highlighting.
5. The method of claim 4, wherein the basic operation unit comprises highlighting; and
The 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 comprises the following steps:
drawing the questions to be displayed according to the acquired at least one basic rendering unit to generate the question page;
Detecting whether a clicked basic rendering unit exists in the at least one basic rendering unit;
And in response to determining that the clicked basic rendering unit exists, highlighting the area where the title to be displayed is located on the title page.
6. An apparatus for rendering a theme page, comprising:
the display device comprises a first acquisition unit, a second acquisition unit and a display unit, wherein the first acquisition unit is configured to acquire a to-be-displayed question and type information of the to-be-displayed question;
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;
a rendering unit configured to render the display page of the question to be displayed according to the acquired at least one basic rendering unit and at least one basic operation unit;
The basic operation unit can comprise scrolling display and canceling highlighting display of the area where the title is located, and the rendering unit comprises a second drawing module, a second detection module and a scrolling display module; the second drawing module is configured to draw the questions to be displayed according to the acquired at least one basic rendering unit so as to generate a question page; the second detection module is configured to detect whether a clicked basic rendering unit exists in at least one basic rendering unit, and the scrolling display module is configured to scroll and display the to-be-displayed title in the area where the to-be-displayed title exists in response to the fact that the basic rendering unit corresponding to the area where the to-be-displayed title is determined to detect a preset operation; and in response to determining that the area where the to-be-displayed title is positioned is highlighted and detecting that the clicked basic rendering unit exists in the at least one basic rendering unit, canceling highlighting the area where the to-be-displayed title is positioned on the title page.
7. 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, causes the one or more processors to implement the method of any of claims 1-5.
8. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-5.
CN202010410439.7A 2020-05-15 2020-05-15 Method and device for rendering topic pages Active CN113672317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010410439.7A CN113672317B (en) 2020-05-15 2020-05-15 Method and device for rendering topic pages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010410439.7A CN113672317B (en) 2020-05-15 2020-05-15 Method and device for rendering topic pages

Publications (2)

Publication Number Publication Date
CN113672317A CN113672317A (en) 2021-11-19
CN113672317B true CN113672317B (en) 2024-07-12

Family

ID=78537530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010410439.7A Active CN113672317B (en) 2020-05-15 2020-05-15 Method and device for rendering topic pages

Country Status (1)

Country Link
CN (1) CN113672317B (en)

Families Citing this family (1)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480193A (en) * 2017-07-13 2017-12-15 广东小天才科技有限公司 Method and system for assisting user in answering test questions
CN107908612A (en) * 2017-11-14 2018-04-13 杭州汉林文化创意股份有限公司 Answering card generation method, answer card identification method, operating system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104851329B (en) * 2015-05-14 2018-01-26 锐达互动科技股份有限公司 A kind of method and system of video presenter electric marking
CN105185171B (en) * 2015-09-30 2019-01-29 夏竹兵 It is a kind of for the learning method of intelligent terminal, device and intelligent terminal
CN106803427B (en) * 2016-12-15 2019-08-27 网易(杭州)网络有限公司 The methods, devices and systems and computer readable storage medium of information for rendering
CN108460040A (en) * 2017-02-20 2018-08-28 阿里巴巴集团控股有限公司 Display methods, display device and the intelligent display device of interface content
CN109376351B (en) * 2018-09-11 2023-07-21 宁波思骏科技有限公司 Method for adaptively typesetting teaching contents on tablet equipment
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480193A (en) * 2017-07-13 2017-12-15 广东小天才科技有限公司 Method and system for assisting user in answering test questions
CN107908612A (en) * 2017-11-14 2018-04-13 杭州汉林文化创意股份有限公司 Answering card generation method, answer card identification method, operating system

Also Published As

Publication number Publication date
CN113672317A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN109460233B (en) Method, device, terminal equipment and medium for updating native interface display of page
CN109857486B (en) Method, device, equipment and medium for processing program page data
CN111966255B (en) Information display method and device, electronic equipment and computer readable medium
CN111459364B (en) Icon updating method and device and electronic equipment
CN114489336B (en) Multimedia display method and device, readable medium and electronic equipment
CN114528816B (en) Collaborative editing information display method and device, electronic equipment and readable medium
CN113672317B (en) Method and device for rendering topic pages
CN110618811B (en) Information presentation method and device
CN110069186B (en) Method and equipment for displaying operation interface of application
CN111177634A (en) Multi-language supporting file content loading method, device, equipment and medium
CN113138707B (en) Interaction method, interaction device, electronic equipment and computer-readable storage medium
CN113835790B (en) Paging page display method and device based on Android
CN111290812B (en) Display method, device, terminal and storage medium of application control
CN113568695A (en) Corner mark processing method and device for boarder application
CN112307717A (en) Text labeling information display method and device, electronic equipment and medium
CN112380821B (en) Graphic display method and device and electronic equipment
CN113220293B (en) Page display method, page display device, electronic equipment and computer readable medium
CN111324349A (en) Method, device, terminal and storage medium for generating interactive interface
CN113835791B (en) Method and apparatus for presenting hierarchical relationships of view components
CN110110695B (en) Method and apparatus for generating information
CN112346630B (en) State determination method, device, equipment and computer readable medium
CN111367517B (en) Information generation method and device
CN113726948B (en) Picture display method and device
CN112306339B (en) Method and apparatus for displaying image
CN113835792B (en) Method and device for drawing page element

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
GR01 Patent grant
GR01 Patent grant