CN110162218A - Interface control method and device, storage medium, the electronic equipment of application program - Google Patents

Interface control method and device, storage medium, the electronic equipment of application program Download PDF

Info

Publication number
CN110162218A
CN110162218A CN201910413241.1A CN201910413241A CN110162218A CN 110162218 A CN110162218 A CN 110162218A CN 201910413241 A CN201910413241 A CN 201910413241A CN 110162218 A CN110162218 A CN 110162218A
Authority
CN
China
Prior art keywords
flexible screen
interface control
bending degree
bending
default
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
CN201910413241.1A
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910413241.1A priority Critical patent/CN110162218A/en
Publication of CN110162218A publication Critical patent/CN110162218A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04102Flexible digitiser, i.e. constructional details for allowing the whole digitising part of a device to be flexed or rolled like a sheet of paper

Abstract

The embodiment of the present invention is interface control method and device, storage medium, the electronic equipment about a kind of application program, belong to equipment display interface technical field, this method is applied to terminal device, the terminal device includes flexible screen, the described method includes: determining whether the bending degree of the flexible screen is greater than the first default bending degree when detecting the bending event of the flexible screen;If the bending degree of the flexible screen is greater than the described first default bending degree, then according to the current bending direction of the flexible screen and default mapping relations, obtain the target interface control event, wherein, the default mapping relations include the corresponding relationship between the bending direction and Interface Control event of the flexible screen;Based on the current display interface of the terminal device, the target interface control event is executed.The method increase the efficiency of Interface Control.

Description

Interface control method and device, storage medium, the electronic equipment of application program
Technical field
The present embodiments relate to equipment interface field of display technology, in particular to a kind of interface of application program Control method, the interface control device of application program, computer readable storage medium and electronic equipment.
Background technique
With the fast development of terminal device, the function of terminal device is also more and more.For example, game, reading, translation, Chat, take pictures and do shopping etc..It, cannot on the screen of terminal device but since the size of the screen of terminal device limits More than two pages are shown simultaneously.Therefore, if it is desirable to replace application program, then need to the display interface of application program into Row switching.
In the switching method of the display interface of existing application program, one is can be used the UI (User of screen Interface, user interface) control, it clicks the UI control and is manipulated;Another kind is navigated using gesture sliding.? In most of APP, user can be slided by gesture carries out left and right switching and level navigation.
But above two method has following defects that in the first method, due to operating area and display area weight Folded, UI control occupies valuable source of screen, the waste problem of source of screen is caused, so that screen cannot be utilized adequately; In the second approach, when interface level is deeper, need to consume more interface operation step from sub-interface back to main interface Suddenly, by repeatedly sliding;So that the switching efficiency at interface is lower.
Accordingly, it is desirable to provide a kind of interface control method and device of new application program.
It should be noted that the information in the invention of above-mentioned background technology part is only used for reinforcing the reason to background of the invention Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The purpose of the present invention is to provide the Interface Control of a kind of interface control method of application program, application program dresses It sets, computer readable storage medium and electronic equipment, and then overcomes the limitation due to the relevant technologies at least to a certain extent The lower problem with changing interface efficiency caused by defect.
According to one aspect of the disclosure, a kind of interface control method of application program is provided, terminal device, institute are applied to Stating terminal device includes flexible screen, and the interface control method of the application program includes:
When detecting the bending event of the flexible screen, it is pre- to determine whether the bending degree of the flexible screen is greater than first If bending degree;
If the bending degree of the flexible screen is greater than the described first default bending degree, according to the current of the flexible screen Bending direction and default mapping relations obtain the target interface control event, wherein the default mapping relations include institute State the corresponding relationship between the bending direction of flexible screen and Interface Control event;
Based on the current display interface of the terminal device, the target interface control event is executed.
In a kind of exemplary embodiment of the disclosure, the bending direction include to the left lateral bend, to the right lateral bend, from Centre is respectively to two lateral bends and from two sides respectively at least one of bent intermediate;
The Interface Control event include the interface for switching the application program to the left, switch to the right it is described using journey In the interface of sequence, the current display interface for closing the terminal device and the main display interface for returning to the terminal device extremely Few one kind.
In a kind of exemplary embodiment of the disclosure, according to the current bending direction of the flexible screen and default mapping Relationship, obtaining the target interface control event includes:
Determine that the flexible screen keeps whether the duration of the bending degree is greater than preset duration;
If the flexible screen keeps the duration of the bending degree to be greater than the preset duration, according to the flexible screen Current bending direction and the default mapping relations, obtain target interface control event.
In a kind of exemplary embodiment of the disclosure, when target interface control event is to answer described in switching to the left When with the interface of program, based on the current display interface of the terminal device, executing the target interface control event includes:
Based on the current display interface of the terminal device, display circle of a level in the current display interface will be located at Face is shown as target display interface.
In a kind of exemplary embodiment of the disclosure, when target interface control event is to close the terminal device Current display interface when, based on the current display interface of the terminal device, executing the target interface control event includes:
Calculate the flexible screen from the bending degree be converted into the second default bending degree needed for the time;Wherein, institute The first default bending degree is stated greater than the described second default bending degree;
If the flexible screen from the bending degree be converted into the second default bending degree needed for the time be less than it is default Time threshold then closes the current display interface of the terminal device.
In a kind of exemplary embodiment of the disclosure, determine whether the bending degree of the flexible screen is default more than first Bending degree includes:
Two principal curvatures of each pixel of the flexible screen are calculated, and calculate each picture according to described two principal curvatures The current curvature of vegetarian refreshments;
The current curvature of each pixel is compared with predetermined curvature, it is determined whether there are at least one pixels Current curvature is more than the predetermined curvature;
The current curvature of at least one pixel is more than the predetermined curvature if it exists, it is determined that the flexible screen Bending degree is more than the described first default bending degree.
In a kind of exemplary embodiment of the disclosure, determine whether the bending degree of the flexible screen is default more than first Bending degree further include:
The current change threshold value of the flexible screen is calculated, and determines whether the current change threshold value is greater than preset threshold;
If the current change threshold value is greater than the predetermined current threshold, it is determined that the bending degree of the flexible screen is super Cross the described first default bending degree.
According to one aspect of the disclosure, a kind of interface control device of application program is provided, terminal device, institute are applied to Stating terminal device includes flexible screen, and the interface control device of the application program includes:
Bending degree determining module, for determining the flexible screen when detecting the bending event of the flexible screen Whether bending degree is greater than the first default bending degree;
Event obtains module, if the bending degree for the flexible screen is greater than the described first default bending degree, root Current bending direction and default mapping relations according to the flexible screen obtain the target interface control event, wherein described Default mapping relations include the corresponding relationship between the bending direction and Interface Control event of the flexible screen;
Event execution module executes the target interface control for the current display interface based on the terminal device Event.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with, The computer program realizes the interface control method of application program described in above-mentioned any one when being executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to answer described in above-mentioned any one via the execution executable instruction to execute With the interface control method of program.
The interface control method and device of a kind of application program of the embodiment of the present invention, by the bending for detecting flexible screen When event, determine whether the bending degree of flexible screen is greater than the first default bending degree;And it is greater than in the bending degree of flexible screen When the first default bending degree, according to the current bending direction of flexible screen and default mapping relations, target interface control is obtained Event;Finally based on the current display interface of terminal device, performance objective Interface Control event;On the one hand, by flexible screen Bending degree be greater than the first default bending degree when, according to the current bending direction of flexible screen and default mapping relations, obtain Target interface is taken to control event;Finally based on the current display interface of terminal device, performance objective Interface Control event is solved Since operating area is Chong Die with display area caused by being manipulated in the prior art by click button, UI control occupies valuable Source of screen, cause the waste problem of source of screen, improve the utilization rate of screen;On the other hand, the prior art is solved In when interface level is deeper, need to consume more interface operation step from sub-interface back to main interface, by repeatedly sliding It is dynamic;So that the problem that the switching efficiency at interface is lower, improves the efficiency of Interface Control;In another aspect, working as according to flexible screen Front curve direction and default mapping relations obtain target interface and control event;Finally current display circle based on terminal device Face, performance objective Interface Control event;Allow user that screen is directly bent towards side corresponding with target interface control event To, and then target interface control event is obtained, then execute target interface control event, improve target interface control event Acquisition efficiency and accuracy rate.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of Application Scenarios-Example figure of changing interface of example embodiment according to the present invention.
Fig. 2 schematically shows the Application Scenarios-Example figure of another changing interface of example embodiment according to the present invention.
Fig. 3 schematically shows a kind of process of the interface control method of application program of example embodiment according to the present invention Figure.
Fig. 4 schematically shows a kind of applied field of the interface control method of application program of example embodiment according to the present invention Scape exemplary diagram.
Fig. 5 schematically shows the application of the interface control method of another application program of example embodiment according to the present invention Sample Scenario figure.
Fig. 6 schematically shows the application of the interface control method of another application program of example embodiment according to the present invention Sample Scenario figure.
Fig. 7 schematically shows the application of the interface control method of another application program of example embodiment according to the present invention Sample Scenario figure.
Whether a kind of bending degree for determining the flexible screen that Fig. 8 schematically shows example embodiment according to the present invention surpasses Cross the method flow diagram of the first default bending degree.
Fig. 9 schematically shows a kind of block diagram of the interface control device of application program of example embodiment according to the present invention.
Figure 10 schematically shows a kind of for realizing a kind of above-mentioned boundary of application program of example embodiment according to the present invention The electronic equipment of face control method.
Figure 11 schematically shows a kind of for realizing a kind of above-mentioned boundary of application program of example embodiment according to the present invention The computer readable storage medium of face control method.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, it provides perhaps More details fully understand embodiments of the present invention to provide.It will be appreciated, however, by one skilled in the art that can It is omitted with practicing technical solution of the present invention one or more in the specific detail, or others side can be used Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and So that each aspect of the present invention thickens.
In addition, attached drawing is only schematic illustrations of the invention, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
In some schemes, can by using screen HUD UI (Head Up Display User Interface, The user interface of head-up display) control, it clicks button and is manipulated.Operating area is Chong Die with display area, and UI control occupies Valuable source of screen.For example, refering to what is shown in Fig. 1, can be closed by clicking the button in the upper right corner.But due to behaviour Make that region is Chong Die with display area, UI control occupies valuable source of screen, the waste problem of source of screen is caused, so that screen It cannot adequately navigate using using gesture sliding.
In other schemes, user can be slided by gesture carries out left and right switching and level navigation.For example, join It examines shown in Fig. 2, can be switched over by clicking the button in the upper left corner.But when interface level is deeper, returned from sub-interface Need to consume more interface operation step to main interface, by repeatedly sliding;So that the switching efficiency at interface is lower.
Based on the above issues, a kind of interface control method of application program is provided firstly in this example embodiment, it should Method can be applied to terminal device, which includes but is not limited to smart phone and PAD (tablet computer) etc., the terminal Equipment includes a flexible screen, and flexible screen has used phosphorescence organic light-emitting device, has low-power consumption, directly visual flexible panel, by Soft material is made, the flexible display device of changeable type.It, can be according to this during user uses the terminal device The flexible screen of terminal device is extended into a full screen, wherein full screen can be plane and be also possible to song by actual demand Face;Or by the flexible screen folded bent of terminal device at multiple sub-screens.Refering to what is shown in Fig. 3, the Application Program Interface switches Method may comprise steps of:
Step S310. when detecting the bending event of the flexible screen, determine the flexible screen bending degree whether Greater than the first default bending degree.
If the bending degree of the step S320. flexible screen is greater than the described first default bending degree, according to described soft Property screen current bending direction and default mapping relations, obtain target interface control event, wherein the default mapping Relationship includes the corresponding relationship between the bending direction and Interface Control event of the flexible screen.
Current display interface of the step S330. based on the terminal device executes the target interface control event.
In the interface control method of above-mentioned application program, on the one hand, it is pre- to be greater than first by the bending degree in flexible screen If when bending degree, according to the current bending direction of flexible screen and default mapping relations, obtaining target interface and controlling event;Most Afterwards based on the current display interface of terminal device, performance objective Interface Control event, solve in the prior art by click by Button manipulated caused by since operating area is Chong Die with display area, UI control occupies valuable source of screen, causes screen The waste problem of resource, improves the utilization rate of screen;On the other hand, it solves in the prior art when interface level is deeper, Need to consume more interface operation step from sub-interface back to main interface, by repeatedly sliding;So that the switching at interface is imitated The lower problem of rate, improves the efficiency of Interface Control;In another aspect, according to the current bending direction of flexible screen and default reflecting Relationship is penetrated, target interface is obtained and controls event;Finally based on the current display interface of terminal device, performance objective Interface Control thing Part;Allow user that screen is directly bent towards direction corresponding with target interface control event, and then obtains the target interface Control event, then target interface control event is executed, improve the acquisition efficiency and accuracy rate of target interface control event.
In the following, by conjunction with attached drawing to each step in the interface control method of the application program in this example embodiment into The detailed explanation of row and explanation.
In step s310, when detecting the bending event of the flexible screen, the bending degree of the flexible screen is determined Whether the first default bending degree is greater than.
In this exemplary embodiment, firstly, calculating the current change threshold value of the flexible screen, and the curent change is determined Whether threshold value is greater than preset threshold;Secondly, if the current change threshold value is greater than the preset threshold, it is determined that the flexibility The bending degree of screen is more than the default bending degree.Specifically, when flexible screen bends event, as flexible screen is bent The resistance of the increase of degree, flexible screen also will increase, therefore will lead to electric current reduction.Therefore, when current change threshold value is greater than in advance If when threshold value, can determine that the bending degree of flexible screen is more than default bending degree.
In step S330, if the bending degree of the flexible screen is greater than the described first default bending degree, according to institute State flexible screen current bending direction and default mapping relations, obtain target interface control event, wherein described default Mapping relations include the corresponding relationship between the bending direction and Interface Control event of the flexible screen.
In this example embodiment, firstly, determining that the flexible screen keeps whether the duration of the bending degree is greater than Preset duration;If the flexible screen keeps the duration of the bending degree to be greater than the preset duration, according to the flexibility The current bending direction of screen and the mapping relations obtain the target interface control event.Specifically, working as the curved of flexible screen After Qu Chengdu reaches more than the above-mentioned first default bending degree, judge that flexible screen is in the duration of the bending degree and whether reaches pre- If duration (the default market for example may include 1s, 1.5s or 2s etc., and there is no special restriction on this for this example);If reached To preset duration, then can current bending direction according to flexible screen and default mapping relations, obtain target interface and control thing Part;If not up to, can not have to obtain target interface control event.In this way, can be to avoid for due to operation The problem of fault leads to changing interface, the user experience is improved.
Further, above-mentioned bending direction may include to the left lateral bend, to the right lateral bend, from centre respectively to two lateral bendings It is bent and from two sides respectively to bent intermediate etc., also may include other bend modes, there is no special restriction on this for this example; Above-mentioned Interface Control event may include the interface for switching the application program to the left, switch the application program to the right Interface, the current display interface for closing the terminal device and the main display interface for returning to the terminal device etc..
Further, above-mentioned default mapping relations can be with are as follows: when lateral bend to the left, target interface controls event are as follows: Switch the interface of the application program to the left;When lateral bend to the right, target interface controls event are as follows: to the right described in switching The interface of application program;When from it is intermediate respectively to two lateral bends when, close the current display interface of the terminal device;When from two Side respectively to bent intermediate when, return to the main display interface of the terminal device;The mapping relations can also defer to other definition, There is no special restriction on this for this example.
In step S330, based on the current display interface of the terminal device, the target interface control event is executed.
In this exemplary embodiment, when target interface control event is to switch the interface of the application program to the left When, display circle of a level in the current display interface can will be located at based on the current display interface of the terminal device Face is shown as target display interface, can specifically be referred to shown in Fig. 4;
When target interface control event is to switch the interface of the application program to the right, the end can be based on The current display interface of end equipment will be located at the display interface of the lower level of the current display interface as target display interface It is shown, it specifically can be with reference to shown in Fig. 5;
When target interface control event is to close the current display interface of the terminal device, can calculate described Flexible screen from the bending degree be converted into the second default bending degree needed for the time;Wherein, the described first default bending journey Degree is greater than the described second default bending degree;If the flexible screen is converted into the second default bending degree from the bending degree The required time is less than preset time threshold, then closes the current display interface of the terminal device.Specifically, with reference to Fig. 6 institute Show, if user within a certain period of time (curvature start reduce at the time of T1- curvature less than the second default bending degree when Carve T2 < preset time threshold T) so that curvature is less than the above-mentioned second default curvature, then it can close current interface;
When target interface control event is to return to the main display interface of the terminal device, can calculate described soft Property screen from the bending degree be converted into the second default bending degree needed for the time;If the flexible screen is from the bending journey Time needed for degree is converted into the second default bending degree is less than preset time threshold, then returns to the main display of the terminal device Interface.Specifically, refering to what is shown in Fig. 7, if user within a certain period of time (curvature start reduce at the time of T1- curvature it is small T2 < preset time threshold T at the time of the second default bending degree) so that curvature is less than the above-mentioned second default curvature, then The main display interface of the terminal device can be returned.
Fig. 8 schematically show a kind of bending degree for determining the flexible screen whether more than the first default bending degree side Method flow chart.Refering to what is shown in Fig. 8, determine the flexible screen bending degree whether more than the first default bending degree may include Step S810- step S830, is described in detail below.
In step S810, two principal curvatures of each pixel of the flexible screen are calculated, and according to described two masters The current curvature of each pixel of curvature estimation.
In step S820, the current curvature of each pixel is compared with predetermined curvature, it is determined whether exist to The current curvature of a few pixel is more than the predetermined curvature.
In step S830, the current curvature of at least one pixel is more than first predetermined curvature if it exists, The bending degree for then determining the flexible screen is more than the described first default bending degree.
In the following, will step S810- step S830 be explained and be illustrated.User on the terminal device to flexible screen into Row bending operation, when terminal device detects the bending event of flexible screen, determines the curved of flexible screen to trigger bending event Whether Qu Chengdu determines the bending degree of flexible screen more than the first default bending degree, and determines whether the bending degree surpasses Cross the first default bending degree.Wherein, the bending degree of flexible screen can be the sum of the curvature of each pixel of flexible screen, also It can be the bending angle of the bending position of flexible screen.Wherein, the curvature of each pixel is that each pixel is corresponding average Curvature (mean value of two principal curvatures) or the corresponding Gaussian curvature of each pixel (product of two principal curvatures) cross certain on curved surface There is infinite orthogonal curvature on a point, wherein exist a curve make the song curvature of a curve be it is very big, this curvature is pole Big value, the curvature perpendicular to very big curvature surface are minimum, the two curvature are the principal curvatures of the point, and each pixel is corresponding Average curvature or Gaussian curvature are bigger, then the bending degree of each pixel is bigger, conversely, the corresponding average song of each pixel Rate or Gaussian curvature are smaller, then the bending degree of each pixel is smaller.
The terminal device calculates two of each pixel of the flexible screen in the bending event for detecting the flexible screen Principal curvatures, and calculate according to two principal curvatures the current curvature of each pixel, i.e. terminal device is obtaining each pixel just Curve is handed over, and calculates the orthogonal curvature of each orthogonal curvilinear, then by the maximum orthogonality curvature and minimal orthogonality of each pixel Two principal curvatures of the curvature as each pixel, and by the mean value of two principal curvatures of each pixel, i.e. average curvature is true It is set to the bending degree of each pixel, or by the product of two principal curvatures of each pixel, i.e. Gaussian curvature is determined as The current curvature of each pixel is finally compared, it is determined whether deposit by the bending degree of each pixel with predetermined curvature It is more than predetermined curvature in the current curvature of at least one pixel, the current curvature if there is at least one pixel is more than pre- If curvature, it is determined that the bending degree of flexible screen is more than default bending degree, if the current curvature of each pixel does not surpass Cross predetermined curvature, it is determined that the bending degree of flexible screen is less than default bending degree.It should be noted that above-mentioned default bending Degree and predetermined curvature can be configured by those skilled in the art based on actual conditions, and the present embodiment does not limit this specifically It is fixed.
Further, which obtains the triggering of the bending event in the bending event for detecting the flexible screen Position, and using the center of the trigger position as the center of circle, it is drawn and is justified with pre-set radius, obtain a border circular areas, then determined to be in and be somebody's turn to do The curvature of each pixel of border circular areas, and according to the curvature of each pixel determine flexible screen bending degree whether be More than default bending degree, i.e., determine whether flexible screen is more than pre- based on the bending degree for the partial pixel point for being related to bending operation If bending degree, without considering whole pixels, operational efficiency is further improved.
Further, in addition to determining whether the bending degree of flexible screen is more than default bending based on the curvature of each pixel Except degree, can also determine whether the bending degree of flexible screen is more than default bending degree based on the bending angle of flexible screen, have Body is the flexible screen that the data at the default acquisition position of sensor monitoring preset on terminal device determine user to terminal device The amplitude of bending operation, the i.e. angle of normal direction at the default acquisition position of monitoring flexible screen and gravity direction, according to angle Numeric distribution determines the bending angle on the length direction of flexible screen, it should be noted that above-mentioned default acquisition position can be by this Field technical staff Jiyuan City actual conditions are configured, and the present embodiment is not especially limited this.Embodiment of the present invention mentions The sensor of confession includes but is not limited to: infrared sensor, gravity sensor, gyroscope etc..Infrared biography is installed on terminal device Sensor, infrared sensor pass through the infrared image got and determine installation weight on the bending degree or terminal device of flexible screen Force snesor, gyroscope, for gravity sensor 1 to gravity sensor n, sensor can be 2,3,4,5 or more. At least two sensors are respectively arranged at least two positions on flexible screen, and sensor is for determining on position The normal direction of plane and the angle of gravity, to determine whether the bending degree of flexible screen is more than default bending journey according to angle Degree.
The disclosure also provides a kind of interface control device of application program, is applied to terminal device, the terminal device packet Include flexible screen.Refering to what is shown in Fig. 9, the Application Program Interface switching device may include that bending degree determining module 910, event obtain Modulus block 920 and event execution module 930.Wherein:
Bending degree determining module 910 can be used for determining described soft when detecting the bending event of the flexible screen Whether the bending degree of property screen is greater than the first default bending degree.
If event, which obtains module 920, can be used for the bending degree of the flexible screen greater than the described first default bending journey Degree obtains the target interface control event then according to the current bending direction of the flexible screen and default mapping relations, In, the default mapping relations include the corresponding relationship between the bending direction and Interface Control event of the flexible screen.
Event execution module 930 can be used for the current display interface based on the terminal device, execute target circle Face controls event.
In a kind of exemplary embodiment of the disclosure, the bending direction include to the left lateral bend, to the right lateral bend, from Centre is respectively to two lateral bends and from two sides respectively at least one of bent intermediate;The target interface controls event package It includes the interface for switching the application program to the left, the interface for switching the application program to the right, close the terminal device Current display interface and return at least one of the main display interface of the terminal device.
In a kind of exemplary embodiment of the disclosure, event obtains module 920 and can be additionally configured to: determining described soft Whether the duration that the bending degree is held in property screen protection is greater than preset duration;If the flexible screen keep the bending degree when It is long to obtain the mesh then according to the current bending direction of the flexible screen and the mapping relations greater than the preset duration Mark Interface Control event.
In a kind of exemplary embodiment of the disclosure, the event execution module 930 be can be additionally configured to: be based on institute The current display interface for stating terminal device shows the display interface for being located at a level in the current display interface as target Interface is shown.
In a kind of exemplary embodiment of the disclosure, the event execution module 930 be can be additionally configured to: calculate institute State flexible screen from the bending degree be converted into the second default bending degree needed for the time;Wherein, the described first default bending Degree is greater than the described second default bending degree;If the flexible screen is converted into the second default bending journey from the bending degree Time needed for degree is less than preset time threshold, then closes the current display interface of the terminal device.
In a kind of exemplary embodiment of the disclosure, the bending degree determining module 910 be can be additionally configured to: meter Two principal curvatures of each pixel of the flexible screen are calculated, and calculate the current of each pixel according to described two principal curvatures Curvature;The current curvature of each pixel is compared with predetermined curvature, it is determined whether there are working as at least one pixel Preceding curvature is more than the predetermined curvature;The current curvature of at least one pixel is more than the predetermined curvature if it exists, then The bending degree for determining the flexible screen is more than the default bending degree.
In a kind of exemplary embodiment of the disclosure, the bending degree determining module 910 be can be additionally configured to: meter The current change threshold value of the flexible screen is calculated, and determines whether the current change threshold value is greater than preset threshold;If the electricity It flows change threshold and is greater than the preset threshold, it is determined that the bending degree of the flexible screen is more than the default bending degree.
The detail of each module carries out in the interface control method of corresponding application program in above-mentioned apparatus Detailed description, therefore details are not described herein again.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, embodiment according to the present invention, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the present invention in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal device or network equipment etc.) executes embodiment according to the present invention Method.
In an exemplary embodiment of the present invention, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
The electronic equipment 1000 of this embodiment according to the present invention is described referring to Figure 10.The electricity that Figure 10 is shown Sub- equipment 1000 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in Figure 10, electronic equipment 1000 is showed in the form of universal computing device.The component of electronic equipment 1000 can To include but is not limited to: at least one above-mentioned processing unit 1010, connects not homologous ray at least one above-mentioned storage unit 1020 The bus 1030 of component (including storage unit 1020 and processing unit 1010).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 1010 Row, so that various according to the present invention described in the execution of the processing unit 1010 above-mentioned " illustrative methods " part of this specification The step of illustrative embodiments.For example, the processing unit 1010 can execute step S310. as shown in Figure 3 when inspection When measuring the bending event of the flexible screen, determine whether the bending degree of the flexible screen is greater than the first default bending degree; If the bending degree of the step S320. flexible screen is greater than the described first default bending degree, according to working as the flexible screen Front curve direction and default mapping relations obtain target interface control event, wherein the default mapping relations include Corresponding relationship between the bending direction and Interface Control event of the flexible screen;Step S330. is based on the terminal device Current display interface executes the target interface control event.
Storage unit 1020 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 10201 and/or cache memory unit 10202, it can further include read-only memory unit (ROM) 10203.
Storage unit 1020 can also include program/utility with one group of (at least one) program module 10205 10204, such program module 10205 includes but is not limited to: operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.
Bus 1030 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 1000 can also be with one or more external equipments 1070 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 1000 communicate, and/or with make The electronic equipment 1000 can with it is one or more of the other calculating equipment be communicated any equipment (such as router, modulation Demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 1050.Also, electronic equipment 1000 Network adapter 1060 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public affairs can also be passed through Common network network, such as internet) communication.As shown, network adapter 1060 passes through its of bus 1030 and electronic equipment 1000 The communication of its module.It should be understood that although not shown in the drawings, other hardware and/or software can be used in conjunction with electronic equipment 1000 Module, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic Tape drive and data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) executes embodiment according to the present invention Method.
In an exemplary embodiment of the present invention, a kind of computer readable storage medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair The step of bright various illustrative embodiments.
With reference to shown in Figure 11, the program product for realizing the above method of embodiment according to the present invention is described 1100, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art will readily occur to of the invention its after considering specification and the invention invented here of practice His embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Adaptive change follow general principle of the invention and the common knowledge in the art do not invented including the present invention or Conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by claim It points out.

Claims (10)

1. a kind of interface control method of application program, which is characterized in that be applied to terminal device, the terminal device includes soft Property screen, the interface control method of the application program include:
When detecting the bending event of the flexible screen, determine the bending degree of the flexible screen whether be greater than first preset it is curved Qu Chengdu;
If the bending degree of the flexible screen is greater than the described first default bending degree, front curve is worked as according to the flexible screen Direction and default mapping relations obtain the target interface control event;Wherein, the default mapping relations include described soft Corresponding relationship between the bending direction and Interface Control event of property screen;
Based on the current display interface of the terminal device, the target interface control event is executed.
2. the interface control method of application program according to claim 1, which is characterized in that the bending direction include to Left lateral bending, to the right lateral bend, from centre respectively to two lateral bends and from two sides respectively at least one of bent intermediate;
The Interface Control event includes the interface for switching the application program to the left, switches the application program to the right At least one in interface, the current display interface for closing the terminal device and the main display interface for returning to the terminal device Kind.
3. the interface control method of application program according to claim 2, which is characterized in that according to working as the flexible screen Front curve direction and default mapping relations, obtaining the target interface control event includes:
Determine that the flexible screen keeps whether the duration of the bending degree is greater than preset duration;
If the flexible screen keeps the duration of the bending degree to be greater than the preset duration, according to working as the flexible screen Front curve direction and the default mapping relations obtain the target interface control event.
4. the interface control method of application program according to claim 2, which is characterized in that when the target interface controls Event is when switching the interface of the application program to the left, based on the current display interface of the terminal device, described in execution Target interface controls event
Based on the current display interface of the terminal device, the display interface for being located at a level in the current display interface is made It is shown for target display interface.
5. the interface control method of application program according to claim 2, which is characterized in that when the target interface controls Event is, based on the current display interface of the terminal device, to execute institute when closing the current display interface of the terminal device Stating target interface control event includes:
Calculate the flexible screen from the bending degree be converted into the second default bending degree needed for the time;Wherein, described One default bending degree is greater than the described second default bending degree;
If the flexible screen from the bending degree be converted into the second default bending degree needed for the time be less than preset time Threshold value then closes the current display interface of the terminal device.
6. the interface control method of application program according to claim 1, which is characterized in that determine the curved of the flexible screen Qu Chengdu whether more than the first default bending degree include:
Two principal curvatures of each pixel of the flexible screen are calculated, and calculate each pixel according to described two principal curvatures Current curvature;
The current curvature of each pixel is compared with predetermined curvature, it is determined whether there are the current of at least one pixel Curvature is more than the predetermined curvature;
The current curvature of at least one pixel is more than the predetermined curvature if it exists, it is determined that the bending of the flexible screen Degree is more than the described first default bending degree.
7. the interface control method of application program according to claim 1, which is characterized in that determine the curved of the flexible screen Whether Qu Chengdu is more than the first default bending degree further include:
The current change threshold value of the flexible screen is calculated, and determines whether the current change threshold value is greater than preset threshold;
If the current change threshold value is greater than the predetermined current threshold, it is determined that the bending degree of the flexible screen is more than institute State the first default bending degree.
8. a kind of interface control device of application program, which is characterized in that be applied to terminal device, the terminal device includes soft Property screen, the interface control device of the application program include:
Bending degree determining module, for determining the bending of the flexible screen when detecting the bending event of the flexible screen Whether degree is greater than the first default bending degree;
Event obtains module, if the bending degree for the flexible screen is greater than the described first default bending degree, according to institute State flexible screen current bending direction and default mapping relations, obtain target interface control event, wherein described default Mapping relations include the corresponding relationship between the bending direction and Interface Control event of the flexible screen;
Event execution module executes the target interface control event for the current display interface based on the terminal device.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The interface control method of the described in any item application programs of claim 1-7 is realized when processor executes.
10. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to require 1-8 described in any item via executing the executable instruction and carry out perform claim The interface control method of application program.
CN201910413241.1A 2019-05-17 2019-05-17 Interface control method and device, storage medium, the electronic equipment of application program Pending CN110162218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910413241.1A CN110162218A (en) 2019-05-17 2019-05-17 Interface control method and device, storage medium, the electronic equipment of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910413241.1A CN110162218A (en) 2019-05-17 2019-05-17 Interface control method and device, storage medium, the electronic equipment of application program

Publications (1)

Publication Number Publication Date
CN110162218A true CN110162218A (en) 2019-08-23

Family

ID=67631191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910413241.1A Pending CN110162218A (en) 2019-05-17 2019-05-17 Interface control method and device, storage medium, the electronic equipment of application program

Country Status (1)

Country Link
CN (1) CN110162218A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110665218A (en) * 2019-09-24 2020-01-10 Oppo广东移动通信有限公司 Game interaction method, game interaction device, storage medium and display equipment
CN110688079A (en) * 2019-09-24 2020-01-14 Oppo广东移动通信有限公司 Interaction control method, interaction control device, storage medium and display equipment
CN110727491A (en) * 2019-09-24 2020-01-24 Oppo广东移动通信有限公司 Display control method and device, storage medium and electronic equipment
CN111694498A (en) * 2020-05-27 2020-09-22 维沃移动通信有限公司 Interface display method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423553A (en) * 2013-09-03 2015-03-18 北京三星通信技术研究有限公司 Terminal equipment control method based on flexible screen
CN108064371A (en) * 2016-12-27 2018-05-22 深圳市柔宇科技有限公司 A kind of control method and device of flexible display screen
CN108089808A (en) * 2017-11-29 2018-05-29 努比亚技术有限公司 A kind of screen-picture acquisition methods, terminal and computer readable storage medium
CN108538203A (en) * 2018-04-16 2018-09-14 努比亚技术有限公司 Flexible screen abnormal curvatures alarm method, mobile terminal and readable storage medium storing program for executing
CN109696119A (en) * 2018-12-29 2019-04-30 福建华佳彩有限公司 A kind of flexible screen bending prior-warning device and method for early warning

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423553A (en) * 2013-09-03 2015-03-18 北京三星通信技术研究有限公司 Terminal equipment control method based on flexible screen
CN108064371A (en) * 2016-12-27 2018-05-22 深圳市柔宇科技有限公司 A kind of control method and device of flexible display screen
CN108089808A (en) * 2017-11-29 2018-05-29 努比亚技术有限公司 A kind of screen-picture acquisition methods, terminal and computer readable storage medium
CN108538203A (en) * 2018-04-16 2018-09-14 努比亚技术有限公司 Flexible screen abnormal curvatures alarm method, mobile terminal and readable storage medium storing program for executing
CN109696119A (en) * 2018-12-29 2019-04-30 福建华佳彩有限公司 A kind of flexible screen bending prior-warning device and method for early warning

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110665218A (en) * 2019-09-24 2020-01-10 Oppo广东移动通信有限公司 Game interaction method, game interaction device, storage medium and display equipment
CN110688079A (en) * 2019-09-24 2020-01-14 Oppo广东移动通信有限公司 Interaction control method, interaction control device, storage medium and display equipment
CN110727491A (en) * 2019-09-24 2020-01-24 Oppo广东移动通信有限公司 Display control method and device, storage medium and electronic equipment
CN110727491B (en) * 2019-09-24 2023-06-30 Oppo广东移动通信有限公司 Display control method and device, storage medium and electronic equipment
CN110665218B (en) * 2019-09-24 2023-10-31 Oppo广东移动通信有限公司 Game interaction method, game interaction device, storage medium and display device
CN111694498A (en) * 2020-05-27 2020-09-22 维沃移动通信有限公司 Interface display method and device and electronic equipment
CN111694498B (en) * 2020-05-27 2022-01-28 维沃移动通信有限公司 Interface display method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110162218A (en) Interface control method and device, storage medium, the electronic equipment of application program
CN107077197B (en) 3D visualization map
KR101872426B1 (en) Depth-based user interface gesture control
US8064704B2 (en) Hand gesture recognition input system and method for a mobile phone
CN106233240B (en) Text entry on an interactive display
KR101542625B1 (en) Method and apparatus for selecting an object within a user interface by performing a gesture
US20170090747A1 (en) Input device interaction
EP2631739A2 (en) Method and device for contact-free control by hand gesture
Lee et al. Towards augmented reality driven human-city interaction: Current research on mobile headsets and future challenges
US20150089419A1 (en) Presentation of a control interface on a touch-enabled device based on a motion or absence thereof
CN108073432B (en) User interface display method of head-mounted display equipment
US20130176202A1 (en) Menu selection using tangible interaction with mobile devices
CN102981768A (en) Method and system for realizing suspendedsuspending global button on touch screen terminal interface
US20170371523A1 (en) Method for displaying user interface of head-mounted display device
CN108549487A (en) Virtual reality exchange method and device
CN110059241A (en) Information query method and device, computer readable storage medium, electronic equipment
CN108897489A (en) Exchange method, system, equipment and the storage medium that the page returns
CN108776544A (en) Exchange method and device, storage medium, electronic equipment in augmented reality
CN109865285A (en) Information processing method and device in game, computer storage medium
CN110075519A (en) Information processing method and device, storage medium and electronic equipment in virtual reality
CN104020989B (en) Control method and system based on remote application
WO2014034369A1 (en) Display control device, thin-client system, display control method, and recording medium
JP6183820B2 (en) Terminal and terminal control method
KR101559424B1 (en) A virtual keyboard based on hand recognition and implementing method thereof
CN110215686A (en) Display control method and device, storage medium and electronic equipment in scene of game

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