CN108037966A - A kind of interface display method, device and mobile terminal - Google Patents

A kind of interface display method, device and mobile terminal Download PDF

Info

Publication number
CN108037966A
CN108037966A CN201711107962.7A CN201711107962A CN108037966A CN 108037966 A CN108037966 A CN 108037966A CN 201711107962 A CN201711107962 A CN 201711107962A CN 108037966 A CN108037966 A CN 108037966A
Authority
CN
China
Prior art keywords
interface
contact surface
interface element
pixel
coordinate
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
CN201711107962.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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711107962.7A priority Critical patent/CN108037966A/en
Publication of CN108037966A publication Critical patent/CN108037966A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The present invention provides a kind of interface display method, device and mobile terminal, this method includes:The positional information of the first interface element and the positional information of second contact surface element are obtained, the drafting time of the second contact surface element is later than the drafting time of first interface element;According to the positional information of first interface element and the positional information of the second contact surface element, the region covered in first interface element by the second contact surface element is determined;Other regions in first interface element in addition to the region covered by the second contact surface element are rendered.The present invention eliminates and the unnecessary of region covered by second contact surface element is rendered when drawing the first interface element, reduces and draws the system resource that interface element is consumed, and improves the performance of mobile terminal.

Description

A kind of interface display method, device and mobile terminal
Technical field
The invention belongs to technical field of mobile terminals, more particularly to a kind of interface display method, device and mobile terminal.
Background technology
With the continuous development of mobile terminal technology, the application of mobile terminal is more and more extensive.Under normal conditions, it is mobile whole Multiple interface elements can be included by holding in the interface of display.For example, often include background picture and display in an interface Word etc..After mobile terminal draws each interface element, it is possible to obtain the interface that user sees.
In the prior art, mobile terminal is typically painted when interface is drawn according to what developer pre-defined System order, draws each interface element, after all interface elements have been drawn, obtains final interface.
But when the interface element that an interface includes is more, interface, which is drawn operation and will be consumed, more is System resource, and then reduce the performance of mobile terminal.
The content of the invention
The present invention provides a kind of interface display method, device and mobile terminal, during to solve to draw interface element, resource Consume it is more, reduce mobile terminal performance the problem of.
In order to solve the above-mentioned technical problem, the present invention is realized in:
In a first aspect, an embodiment of the present invention provides a kind of interface display method, applied to mobile terminal, its feature exists In, the described method includes:
The positional information of the first interface element and the positional information of second contact surface element are obtained, the second contact surface element The drafting time is later than the drafting time of first interface element;
According to the positional information of first interface element and the positional information of the second contact surface element, described is determined The region covered in one interface element by the second contact surface element;
Other regions in first interface element in addition to the region covered by the second contact surface element are carried out Render.
Second aspect, an embodiment of the present invention provides a kind of interface display apparatus, it is characterised in that including:
Acquisition module, it is described for obtaining the positional information of the first interface element and the positional information of second contact surface element The drafting time of second contact surface element is later than the drafting time of first interface element;
Determining module, believes for the position of the positional information according to first interface element and the second contact surface element Breath, determines the region covered in first interface element by the second contact surface element;
Rendering module, in first interface element in addition to the region covered by the second contact surface element Other regions are rendered.
The third aspect, an embodiment of the present invention provides a kind of mobile terminal, including processor, memory and is stored in described It is real when the computer program is performed by the processor on memory and the computer program that can run on the processor Now the step of interface display method as described in relation to the first aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage Computer program is stored on medium, interface display as described in relation to the first aspect is realized when the computer program is executed by processor The step of method.
The embodiment of the present invention is eliminated to the region that is covered by second contact surface element not when drawing the first interface element It is necessary to render, reduce and draw the system resource that interface element is consumed, improve the performance of mobile terminal.
Brief description of the drawings
Fig. 1 is a kind of step flow chart for interface display method that the embodiment of the present invention one provides;
Fig. 2 is a kind of step flow chart of interface display method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of block diagram for interface display apparatus that the embodiment of the present invention three provides;
Fig. 4 is a kind of block diagram for interface display apparatus that the embodiment of the present invention four provides;
Fig. 5 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, belongs to the scope of protection of the invention.
Embodiment one
Fig. 1 is a kind of step flow chart for interface display method that the embodiment of the present invention one provides, and this method can be applied In mobile terminal, as shown in Figure 1, this method can include:
The positional information of step 101, the positional information for obtaining the first interface element and second contact surface element, second boundary The drafting time of surface element is later than the drafting time of first interface element.
In the embodiment of the present invention, the positional information of the first interface element can represent the first interface element in mobile terminal screen Position on curtain, the positional information of second contact surface element can represent position of the second contact surface element on mobile terminal screen. Further, what the drafting time of second contact surface element was later than the drafting time expression of the first interface element is second contact surface element Rendering priority be less than the first interface element rendering priority.It is exemplary, it is assumed that mobile terminal is when drawing interface A, meeting Interface element 1 is first drawn, then draws interface element 2 again, then it was determined that the rendering priority of interface element 1 is higher than boundary The rendering priority of surface element 2, that is, be exactly, and the first interface element is a1, and second contact surface element is a2.It should be noted that this Drafting operation in inventive embodiments can be Rendering operations.
Step 102, according to the positional information of first interface element and the positional information of the second contact surface element, really The region covered in fixed first interface element by the second contact surface element.
In embodiments of the present invention, may there are overlapping region, example between each interface element in an interface , it is assumed that the first interface element a1 is drawn out the display area on mobile terminal screen and second contact surface element a2 afterwards Be drawn out after on mobile terminal screen display area can there are intersection, then the intersection is first The region covered in interface element by second contact surface element.
Step 103, to other in first interface element in addition to the region covered by the second contact surface element Region is rendered.
In embodiments of the present invention, since the region covered in the first interface element by second contact surface element is eventually by Second interface element is covered, exemplary, and after mobile terminal has drawn interface element a1, interface element a2 is drawn When, the interface element a2 of drafting can cover the intersection in interface element a1, in this way, user in the interface finally shown just Can only see uncovered part in interface element a2 and interface element a1, then, in interface element a1 by interface element The drafting in the region of a2 coverings will make mobile terminal consume unnecessary resource, and in this step, mobile terminal can only be drawn Other regions in first interface element in addition to the region covered by second contact surface element, that is, be exactly only to render the first interface Except the region covered by second contact surface element in element, and then eliminate to the unnecessary drafting in overlapping region, thereby reduce Consumption to system resource.
In conclusion the interface display method that the embodiment of the present invention one provides, when drawing the first interface element, eliminates The unnecessary of region covered by second contact surface element is rendered, reduces and draws the system resource that interface element is consumed, Improve the performance of mobile terminal.
Embodiment two
Fig. 2 is a kind of step flow chart of interface display method provided by Embodiment 2 of the present invention, as shown in Fig. 2, the party Method can include:
Step 201, the rendering priority for determining each interface element in interface belonging to the first interface element.
In practical application, mobile terminal needs the number of interfaces drawn very much, and in the embodiment of the present invention, mobile terminal can be with First determine the first interface element belonging to interface, it is then determined that in the interface each interface element rendering priority.Generally, often The interface that a needs are drawn all is the interface in application program, and developer can pre-define often in the development phase of application program The rendering priority of a interface element, it is exemplary, it is assumed that the first interface element is b1, and the interface belonging to the target interface element is Interface B, then mobile terminal can determine the rendering priority of each interface element in the B of interface.It is mobile specifically definite when Terminal can directly read the property file of interface B, specifically, mobile terminal can be in the number of the corresponding application programs of interface B According to middle acquisition property file, the rendering priority of each interface element can be included in the property file.
Step 202, the rendering priority according to each interface element, are less than first interface by rendering priority The interface element of the rendering priority of element is determined as second contact surface element.
In the embodiment of the present invention, the lower interface element of rendering priority is more late to be drawn.It is exemplary, it is assumed that the first interface Element is interface element b1, interface element b1, interface element b2 and the interface element b3 that interface B includes, b1 pairs of interface element The rendering priority answered is I, and the corresponding rendering priorities of interface element b2 are II, and the corresponding rendering priorities of interface element b3 are III, wherein, rendering priority I is more than rendering priority II, and rendering priority II is more than rendering priority III.Due to Interface Element The rendering priority of plain b2 and interface element b3 is less than the first interface element b1, therefore, can be by interface element b2 and Interface Element Plain b3 is determined as second contact surface element.
The positional information of step 203, the positional information for obtaining the first interface element and second contact surface element, second boundary The drafting time of surface element is later than the drafting time of first interface element.
Specifically, the implementation of this step may be referred to above-mentioned steps 101, this will not be repeated here for the embodiment of the present invention.
Step 204, according to the positional information of first interface element and the positional information of the second contact surface element, really The region covered in fixed first interface element by the second contact surface element.
In the embodiment of the present invention, mobile terminal can realize definite first by following sub-steps (1)~sub-step (3) The step of region covered in interface element by second contact surface element:
Sub-step (1) determines that each first interface pixel is on the mobile terminal screen in first interface element Coordinate, determines each coordinate of the second contact surface pixel on the mobile terminal screen in the second contact surface element.
In practical application scene, interface element is generally made of multiple pixels, and each interface pixel corresponds to a coordinate value And pixel value, the coordinate and pixel value can be that developer pre-defines, wherein, developer can be with mobile terminal The upper left corner of screen is origin, using the horizontal direction of mobile terminal screen as X-axis, using the vertical direction of mobile terminal screen as Y The coordinate system that axis is established, defines the coordinate of each interface pixel in the coordinate system, which can serve to indicate that the interface picture Display location of the element on mobile terminal screen, pixel value indicate the brightness value of the interface pixel.It should be noted that actual should In, developer can also otherwise establish coordinate system on the screen of the mobile terminal, the embodiment of the present invention to this not It is construed as limiting.
In this step, mobile terminal can directly extract the data prestored on mobile terminals, obtain each first The coordinate of the coordinate of interface pixel and each second contact surface pixel.
It is exemplary, it is assumed that the first interface element b1 is made of 10 pixels, then the first interface element b1 in mobile terminal Data include 10 coordinates and corresponding pixel value.Assuming that the first interface element b1 includes the first interface pixel b10, first Interface pixel b11, the first interface pixel b12, the first interface pixel b13, the first interface pixel b14, the first interface pixel b15, First interface pixel b16, the first interface pixel b17, the first interface pixel b18 and the first interface pixel b19, mobile terminal can be with Directly read the coordinate of this 10 the first interface pixels.
Further, it is assumed that second contact surface element b2 includes second contact surface pixel b21, second contact surface pixel b22 and second Interface pixel b23, second contact surface element b3 include second contact surface pixel b31 and second contact surface pixel b32, then mobile terminal can By extracting the data prestored, to determine the coordinate of this 5 second contact surface pixels.
Sub-step (2) is compared the coordinate of each first interface pixel and the coordinate of each second contact surface pixel one by one It is right, determine the target interface pixel that coordinate repeats.
In this step, the first interface pixel that coordinate repeats refers to the identical with the coordinate of second contact surface pixel of coordinate One interface pixel.Specifically, for each first interface pixel, mobile terminal can will be the first interface pixel and each The coordinate of second interface pixel is compared, and determines whether both coordinates are identical, if identical, it is determined that the first interface pixel The the first interface pixel repeated for coordinate.Exemplary, mobile terminal can be by the first interface pixel b11 and this 5 second contact surfaces Pixel is compared, if the coordinate of some second contact surface pixel and the first interface pixel b11 in this 5 second contact surface pixels It is identical, then the first interface pixel b11 can be determined as to the first interface pixel that coordinate repeats.Further, mobile terminal Remaining first interface pixel can be compared one by one with this 5 second contact surface pixels respectively, and then determine all seats The first multiple interface pixel of indicated weight.
It is exemplary, it is assumed that the coordinate b11 of the first interface element is identical with the coordinate of second contact surface element b31, the first interface The coordinate b13 of element is identical with the coordinate of second contact surface element b32, the coordinate b14 and second contact surface element of the first interface element The coordinate of b11 is identical, then can be by the coordinate b11 of the first interface element, the coordinate b13 of the first interface element and the first interface The coordinate b14 of element is determined as the first interface pixel that coordinate repeats.
The region that the first interface pixel that the coordinate repeats is formed is determined as in the first interface element by sub-step (3) The region covered by the second contact surface element.
Since the first interface pixel that coordinate repeats eventually is covered by the second contact surface element identical with its coordinate, because The drafting of this first interface pixel repeated for coordinate can cause mobile terminal to consume unnecessary resource.In this step, move The region that the first interface pixel that coordinate repeats is formed can be determined as in the first interface element by second contact surface by dynamic terminal The region of element covering, when drawing the first interface element, it is convenient to omit the drafting to the region covered by second contact surface element, And then system resource is saved, improve the performance of mobile terminal.
Exemplary, in the embodiment of the present invention, mobile terminal can be by the coordinate b11 of the first interface element, the first Interface Element The region that the coordinate b13 of element and the coordinate b14 of the first interface element are formed is determined as in the first interface element by second contact surface The region of element covering.
After overlapping region is determined, mobile terminal can also mark each coordinate to repeat by following sub-steps (4) The first interface pixel:
Sub-step (4) sets mark for the first interface pixel that the coordinate repeats.
In this step, mobile terminal sets mark by the first interface pixel repeated for coordinate, can cause mobile whole End can conveniently determine the first interface pixel that coordinate repeats according to mark.
Exemplary, mobile terminal can be respectively the coordinate b13 of the coordinate b11 of the first interface element, the first interface element Mark is set with the coordinate b14 of the first interface element, by setting mark that mobile terminal can be made to can recognize that coordinate repeats Interface pixel, in this way, in subsequent step, to the area in the first interface element in addition to the region covered by second contact surface element When domain is drawn, mobile terminal can fast resolution go out to need drawn pixel.
In practical application, at the first interface pixel that mobile terminal by other means can also repeat coordinate Reason, in order to which mobile terminal can recognize that the first interface pixel of coordinate repetition.For example, the first interface picture that coordinate is repeated Element is stored into default memory block, and when drawing the first interface element, the first interface outside memory block can be only preset to this Pixel is drawn, you can avoids drawing the first interface pixel that coordinate repeats.Alternatively, mobile terminal can also be by these coordinates The the first interface pixel repeated is deleted, to avoid the first interface pixel that coordinate repeats is drawn.
Step 205, to other in first interface element in addition to the region covered by the second contact surface element Region is rendered.
Specifically, mobile terminal can be by following sub-steps (5) come step 205:
Sub-step (5) renders the first interface pixel that mark is not provided with first interface element.
In the embodiment of the present invention, mobile terminal is the first interface pixel that each coordinate repeats in above-mentioned sub-step (4) There is provided mark, in this way, mobile terminal is when drawing first interface element, can be only to being not provided with first interface element First interface pixel of mark is rendered, and then is realized and drawn in the first interface element except the area covered by second contact surface element Other regions outside domain.Specifically, the method rendered to pixel may be referred to the prior art, the embodiment of the present invention is to this Be not construed as limiting, it is exemplary, mobile terminal can by the pixel value of the pixel at the coordinate of the first interface pixel, be arranged to this The corresponding pixel value of one interface pixel.
In conclusion the interface display method in the embodiment of the present invention two, mobile terminal can draw the first Interface Element When plain, the positional information of the first interface element and the positional information of second contact surface element are obtained, wherein, the second contact surface element The drafting time is later than the drafting time of the first interface element, it is then determined that covered in the first interface element by second contact surface element Region, finally renders other regions in the first interface element in addition to the region covered by second contact surface element, by When interface element is being drawn, eliminate and the unnecessary of region covered by second contact surface element is rendered, therefore, reduce The system resource that interface element is consumed is drawn, when the interface element that interface includes is more, by each interface element institute The system resource of consumption reduces, and then greatly reduces the system resource drawn needed for whole interface, improves mobile terminal Performance.
Embodiment three
Fig. 3 is a kind of block diagram for interface display apparatus that the embodiment of the present invention three provides, as shown in figure 3, the interface display Device 30 can include:
Acquisition module 301, for obtaining the positional information of the first interface element and the positional information of second contact surface element, institute The drafting time for stating second contact surface element is later than the drafting time of first interface element.
First determining module 302, for the positional information according to first interface element and the second contact surface element Positional information, determine in first interface element by the second contact surface element cover region.
Rendering module 303, in first interface element remove by the second contact surface element covering region it Other outer regions are rendered.
Interface display apparatus provided in an embodiment of the present invention can realize that mobile terminal in the embodiment of the method for Fig. 1 is realized Each process, to avoid repeating, which is not described herein again.In the interface display apparatus that the embodiment of the present invention three provides, acquisition module The positional information of the first interface element and the positional information of second contact surface element can be obtained, wherein, the second contact surface element The drafting time is later than the drafting time of the first interface element, it is then determined that module can be determined in the first interface element by the second boundary Surface element covering region, last rendering module in the first interface element in addition to the region covered by second contact surface element Other regions are rendered, due to when drawing interface element, eliminate to the region that is covered by second contact surface element need not That wants renders, and therefore, reduces and draws the system resource that interface element is consumed, when the interface element that interface includes is more When, since the system resource that each interface element is consumed reduces, and then greatly reduce to draw needed for whole interface and be System resource, improves the performance of mobile terminal.
Example IV
Fig. 4 is a kind of block diagram for interface display apparatus that the embodiment of the present invention four provides, as shown in figure 4, the interface display Device 40 can include:
Acquisition module 401, for obtaining the positional information of the first interface element and the positional information of second contact surface element, institute The drafting time for stating second contact surface element is later than the drafting time of first interface element.
First determining module 402, for the positional information according to first interface element and the second contact surface element Positional information, determine in first interface element by the second contact surface element cover region.
Rendering module 403, in first interface element remove by the second contact surface element covering region it Other outer regions are rendered.
Optionally, above-mentioned first determining module 402, including:
First determination sub-module 4021, for determining that each first interface pixel is mobile whole in first interface element The coordinate on screen is held, determines each seat of the second contact surface pixel on the mobile terminal screen in the second contact surface element Mark.
Compare submodule 4022, for by the coordinate of the coordinate of each first interface pixel and each second contact surface pixel into Row compares one by one, determines the first interface pixel that coordinate repeats.
Second determination sub-module 4023, the region that the first interface pixel for the coordinate to be repeated is formed are determined as The region covered in first interface element by the second contact surface element.
Optionally, above-mentioned first determining module 402, further includes:
Submodule is set, and the first interface pixel for being repeated for the coordinate sets mark.
Optionally, above-mentioned rendering module 403, is used for:
The first interface pixel that mark is not provided with first interface element is rendered.
Optionally, above-mentioned interface display apparatus 40, further includes:
Second determining module, the drafting for determining each interface element in the interface belonging to the first interface element are preferential Level;
3rd determining module, for the rendering priority according to each interface element, is less than institute by rendering priority The interface element for stating the rendering priority of the first interface element is determined as second contact surface element.
Interface display apparatus provided in an embodiment of the present invention can realize that mobile terminal in the embodiment of the method for Fig. 2 is realized Each process, to avoid repeating, which is not described herein again.In the interface display apparatus that the embodiment of the present invention four provides, acquisition module The positional information of the first interface element and the positional information of second contact surface element can be obtained, wherein, the second contact surface element The drafting time is later than the drafting time of the first interface element, it is then determined that module can be determined in the first interface element by the second boundary Surface element covering region, last rendering module in the first interface element in addition to the region covered by second contact surface element Other regions are rendered, due to when drawing interface element, eliminate to the region that is covered by second contact surface element need not That wants renders, and therefore, reduces and draws the system resource that interface element is consumed, when the interface element that interface includes is more When, since the system resource that each interface element is consumed reduces, and then greatly reduce to draw needed for whole interface and be System resource, improves the performance of mobile terminal.
Fig. 5 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention,
The mobile terminal 500 includes but not limited to:It is radio frequency unit 501, mixed-media network modules mixed-media 502, audio output unit 503, defeated Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor The component such as 510 and power supply 511.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 5 is not formed Restriction to mobile terminal, mobile terminal can be included than illustrating more or fewer components, either combine some components or Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 510, for obtaining the positional information of the first interface element and the position letter of second contact surface element Breath, the drafting time of the second contact surface element are later than the drafting time of first interface element;
Processor 510, for the positional information according to first interface element and the position of the second contact surface element Information, determines the region covered in first interface element by the second contact surface element;
Processor 510, in first interface element in addition to the region covered by the second contact surface element Other regions rendered.
In the embodiment of the present invention, mobile terminal when drawing the first interface element, can obtain the position of the first interface element Confidence ceases and the positional information of second contact surface element, wherein, the drafting time of the second contact surface element is later than the first interface element The drafting time, it is then determined that the region covered in the first interface element by second contact surface element, finally to the first interface element In other regions in addition to the region covered by second contact surface element rendered, due to when drawing interface element, omitting Region unnecessary covered by second contact surface element is rendered, therefore, reduce draw that interface element consumed be System resource, when the interface element that interface includes is more, since the system resource that each interface element is consumed reduces, into And the system resource drawn needed for whole interface is greatly reduced, improve the performance of mobile terminal.
It should be understood that in the embodiment of the present invention, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 510;In addition, by uplink Data sending is to base station.In general, radio frequency unit 501 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by mixed-media network modules mixed-media 502 and has accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be receiving by radio frequency unit 501 or mixed-media network modules mixed-media 502 or in memory 509 It is sound that the voice data of storage, which is converted into audio signal and exports,.Moreover, audio output unit 503 can also be provided and moved The relevant audio output of specific function that dynamic terminal 500 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is used to receive audio or video signal.Input unit 504 can include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 5041 can be deposited Storage is transmitted in memory 509 (or other storage mediums) or via radio frequency unit 501 or mixed-media network modules mixed-media 502.Mike Wind 5042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be The form output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear Display panel 5061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, details are not described herein.
Display unit 506 is used for the information for showing by information input by user or being supplied to user.Display unit 106 can wrap Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 5061.
User input unit 507 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 507 include contact panel 5071 and Other input equipments 5072.Contact panel 5071, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example user uses any suitable objects or annex such as finger, stylus on contact panel 5071 or in contact panel 5071 Neighbouring operation).Contact panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area Manage the order that device 510 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes contact panel 5071.Except contact panel 5071, user input unit 507 can also include other input equipments 5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operation lever, details are not described herein.
Further, contact panel 5071 can be covered on display panel 5061, when contact panel 5071 is detected at it On or near touch operation after, send to processor 510 with determine touch event type, be followed by subsequent processing device 510 according to touch The type for touching event provides corresponding visual output on display panel 5061.Although in Figure 5, contact panel 5071 and display Panel 5061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments In, can be integrated by contact panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 508 is the interface that external device (ED) is connected with mobile terminal 500.For example, external device (ED) can include Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 508 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 500 can be used in 500 He of mobile terminal Data are transmitted between external device (ED).
Memory 509 can be used for storage software program and various data.Memory 509 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 509 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection A part, by running or performing the software program and/or module that are stored in memory 509, and calls and is stored in storage Data in device 509, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) to all parts power supply, it is preferred that power supply 511 Can be logically contiguous by power-supply management system and processor 510, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509, is stored in On memory 509 and the computer program that can be run on the processor 510, the computer program are performed by processor 510 Each process of the above-mentioned interface display method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here Repeat no more.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each process of above-mentioned interface display method embodiment, and energy when being executed by processor Reach identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer-readable recording medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence " including one ... ", it is not excluded that including Also there are other identical element in the process of the key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much Form, belongs within the protection of the present invention.

Claims (12)

  1. A kind of 1. interface display method, applied to mobile terminal, it is characterised in that the described method includes:
    Obtain the positional information of the first interface element and the positional information of second contact surface element, the drafting of the second contact surface element Time is later than the drafting time of first interface element;
    According to the positional information of first interface element and the positional information of the second contact surface element, first boundary is determined The region covered in surface element by the second contact surface element;
    Other regions in first interface element in addition to the region covered by the second contact surface element are rendered.
  2. 2. according to the method described in claim 1, it is characterized in that, the positional information according to first interface element and The positional information of the second contact surface element, determines the region covered in first interface element by the second contact surface element The step of, including:
    Determine coordinate of each first interface pixel on the mobile terminal screen in first interface element, determine described Each coordinate of the second contact surface pixel on the mobile terminal screen in second contact surface element;
    The coordinate of each first interface pixel and the coordinate of each second contact surface pixel are compared one by one, determine coordinate weight The first multiple interface pixel;
    The region that the first interface pixel that the coordinate repeats is formed is determined as in the first interface element by second boundary The region of surface element covering.
  3. 3. according to the method described in claim 2, it is characterized in that, in the coordinate by each first interface pixel and each The coordinate of second contact surface pixel is compared one by one, and after determining the first interface pixel that coordinate repeats, the method is also wrapped Include:
    The the first interface pixel repeated for the coordinate sets mark.
  4. It is 4. according to the method described in claim 3, it is characterized in that, described to being removed in first interface element by described second The step of other regions outside the region of interface element covering are rendered, including:
    The first interface pixel that mark is not provided with first interface element is rendered.
  5. 5. according to the method described in claim 1, it is characterized in that, the first interface element of the acquisition positional information and the Before the step of positional information of second interface element, the method further includes:
    Determine the rendering priority of each interface element in the interface belonging to the first interface element;
    It is according to the rendering priority of each interface element, rendering priority is excellent less than the drafting of first interface element The interface element of first level is determined as second contact surface element.
  6. A kind of 6. interface display apparatus, it is characterised in that including:
    Acquisition module, for obtain the first interface element positional information and second contact surface element positional information, described second The drafting time of interface element is later than the drafting time of first interface element;
    First determining module, believes for the position of the positional information according to first interface element and the second contact surface element Breath, determines the region covered in first interface element by the second contact surface element;
    Rendering module, for other in first interface element in addition to the region covered by the second contact surface element Region is rendered.
  7. 7. interface display apparatus according to claim 6, it is characterised in that first determining module, including:
    First determination sub-module, for determining that each first interface pixel is in mobile terminal screen in first interface element Coordinate, determine each coordinate of the second contact surface pixel on the mobile terminal screen in the second contact surface element;
    Submodule is compared, for the coordinate of each first interface pixel and the coordinate of each second contact surface pixel to be compared one by one It is right, determine the first interface pixel that coordinate repeats;
    Second determination sub-module, the region that the first interface pixel for the coordinate to be repeated is formed are determined as the first interface The region covered in element by the second contact surface element.
  8. 8. interface display apparatus according to claim 7, it is characterised in that first determining module, further includes:
    Submodule is set, and the first interface pixel for being repeated for the coordinate sets mark.
  9. 9. interface display apparatus according to claim 8, it is characterised in that the rendering module, is specifically used for:
    The first interface pixel that mark is not provided with first interface element is rendered.
  10. 10. interface display apparatus according to claim 6, it is characterised in that further include:
    Second determining module, for determining the rendering priority of each interface element in the interface belonging to the first interface element;
    3rd determining module, for the rendering priority according to each interface element, by rendering priority less than described the The interface element of the rendering priority of one interface element is determined as second contact surface element.
  11. 11. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is performed by the processor Any one of interface display method the step of.
  12. 12. a kind of computer-readable recording medium, it is characterised in that computer journey is stored on the computer-readable recording medium Sequence, the interface display method as any one of claim 1 to 5 is realized when the computer program is executed by processor Step.
CN201711107962.7A 2017-11-10 2017-11-10 A kind of interface display method, device and mobile terminal Pending CN108037966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711107962.7A CN108037966A (en) 2017-11-10 2017-11-10 A kind of interface display method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711107962.7A CN108037966A (en) 2017-11-10 2017-11-10 A kind of interface display method, device and mobile terminal

Publications (1)

Publication Number Publication Date
CN108037966A true CN108037966A (en) 2018-05-15

Family

ID=62093949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711107962.7A Pending CN108037966A (en) 2017-11-10 2017-11-10 A kind of interface display method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN108037966A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241465A (en) * 2018-07-19 2019-01-18 华为技术有限公司 interface display method, device, terminal and storage medium
CN109978971A (en) * 2019-03-29 2019-07-05 深圳市万普拉斯科技有限公司 UI drawing practice, device and mobile terminal
CN112019907A (en) * 2019-05-30 2020-12-01 上海哔哩哔哩科技有限公司 Live broadcast picture distribution method, computer equipment and readable storage medium
CN112883297A (en) * 2021-02-26 2021-06-01 迈普通信技术股份有限公司 Network topology display method and device and electronic equipment
CN113168337A (en) * 2018-11-23 2021-07-23 耐瑞唯信有限公司 Techniques for managing generation and rendering of user interfaces on client devices
CN114782725A (en) * 2022-06-21 2022-07-22 北京尽微致广信息技术有限公司 Method, device and storage medium for comparing user interface image difference

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193740A (en) * 2011-06-16 2011-09-21 珠海全志科技有限公司 Method for generating multilayer windows in embedded graphical interface system
CN102819428A (en) * 1999-09-27 2012-12-12 汤姆森许可公司 Windowing systems
CN103135892A (en) * 2013-03-04 2013-06-05 无锡德思普科技有限公司 Control managing method for graphic user interface
CN103679793A (en) * 2013-12-31 2014-03-26 广州博冠信息科技有限公司 Rendering method and equipment
CN106681583A (en) * 2016-12-02 2017-05-17 广东威创视讯科技股份有限公司 Method and system for processing displayed content in overlapping windows

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819428A (en) * 1999-09-27 2012-12-12 汤姆森许可公司 Windowing systems
CN102193740A (en) * 2011-06-16 2011-09-21 珠海全志科技有限公司 Method for generating multilayer windows in embedded graphical interface system
CN103135892A (en) * 2013-03-04 2013-06-05 无锡德思普科技有限公司 Control managing method for graphic user interface
CN103679793A (en) * 2013-12-31 2014-03-26 广州博冠信息科技有限公司 Rendering method and equipment
CN106681583A (en) * 2016-12-02 2017-05-17 广东威创视讯科技股份有限公司 Method and system for processing displayed content in overlapping windows

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241465A (en) * 2018-07-19 2019-01-18 华为技术有限公司 interface display method, device, terminal and storage medium
CN109241465B (en) * 2018-07-19 2021-02-09 华为技术有限公司 Interface display method, device, terminal and storage medium
CN113168337A (en) * 2018-11-23 2021-07-23 耐瑞唯信有限公司 Techniques for managing generation and rendering of user interfaces on client devices
CN109978971A (en) * 2019-03-29 2019-07-05 深圳市万普拉斯科技有限公司 UI drawing practice, device and mobile terminal
CN112019907A (en) * 2019-05-30 2020-12-01 上海哔哩哔哩科技有限公司 Live broadcast picture distribution method, computer equipment and readable storage medium
CN112883297A (en) * 2021-02-26 2021-06-01 迈普通信技术股份有限公司 Network topology display method and device and electronic equipment
CN114782725A (en) * 2022-06-21 2022-07-22 北京尽微致广信息技术有限公司 Method, device and storage medium for comparing user interface image difference
CN114782725B (en) * 2022-06-21 2022-10-04 北京尽微致广信息技术有限公司 Method, device and storage medium for comparing user interface image difference

Similar Documents

Publication Publication Date Title
CN108037966A (en) A kind of interface display method, device and mobile terminal
CN107908383A (en) A kind of screen color method of adjustment, device and mobile terminal
CN107580143A (en) A kind of display methods and mobile terminal
CN107832110A (en) A kind of information processing method and mobile terminal
CN107977652A (en) The extracting method and mobile terminal of a kind of screen display content
CN107895352A (en) A kind of image processing method and mobile terminal
CN110058836A (en) A kind of output method and terminal device of audio signal
CN107678829A (en) A kind of application control method and mobile terminal
CN108920226A (en) screen recording method and device
CN108762869A (en) A kind of information processing method and mobile terminal
CN108196815A (en) A kind of adjusting method and mobile terminal of sound of conversing
CN107608606A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN107886321A (en) A kind of method of payment and mobile terminal
CN107888765A (en) A kind of method of handoff scenario pattern, mobile terminal
CN110109593A (en) A kind of screenshotss method and terminal device
CN108345425A (en) A kind of management method and mobile terminal of application
CN108469968A (en) A kind of applied program processing method and mobile terminal
CN107864336A (en) A kind of image processing method, mobile terminal
CN107992342A (en) A kind of application configuration change method and mobile terminal
CN107682637A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN108510266A (en) A kind of Digital Object Unique Identifier recognition methods and mobile terminal
CN110064192A (en) Interface control method, mobile terminal and computer readable storage medium
CN108419283A (en) A kind of method and mobile terminal of WIFI hot spot scanning
CN109144341A (en) A kind of application operating method and mobile terminal
CN109005297A (en) A kind of display methods and mobile terminal of navigation application

Legal Events

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

Application publication date: 20180515