CN108566489A - A kind of method for information display, terminal and computer readable storage medium - Google Patents
A kind of method for information display, terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108566489A CN108566489A CN201810338732.XA CN201810338732A CN108566489A CN 108566489 A CN108566489 A CN 108566489A CN 201810338732 A CN201810338732 A CN 201810338732A CN 108566489 A CN108566489 A CN 108566489A
- Authority
- CN
- China
- Prior art keywords
- parameter
- distance value
- display screen
- information
- display
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Abstract
The embodiment of the invention discloses a kind of method for information display, obtain the display pattern for showing that information is current in screen;When detecting that display screen meets preset condition relative to the movement of default object of reference, the moving direction and moving distance value for showing screen relative to default object of reference are determined;According to parameter preset library, the first parameter and the second parameter corresponding with current display pattern and moving direction are determined;When moving distance value is more than the first parameter, and moving distance value is less than the second parameter, the display of information in screen is shown according to moving distance value and moving direction adjustment.The embodiment of the invention also discloses a kind of terminal and computer readable storage mediums, can dynamically adjust the display of information in display screen, improve user experience.
Description
Technical field
The present invention relates to a kind of information processing technology of the communications field more particularly to method for information display, terminal and calculating
Machine readable storage medium storing program for executing.
Background technology
With the continuous development of internet and electronic technology, the application of various mobile terminals in people's lives is got over
Come more extensive, such as smart mobile phone, tablet computer etc..Meanwhile people are also more and more frequent using the time of mobile terminal, example
Mobile terminal is used when such as, on foot or by bus.In the prior art, if user walks or take traveling in uneven road
When the vehicle of road, comparison of jolting is severe, and the display screen of at this moment user's viewing mobile terminal will produce rocky feeling, give
User causes bad experience.
Invention content
In order to solve the above technical problems, the embodiment of the present invention provides a kind of method for information display, terminal and computer-readable
Storage medium can show the display of information in screen, to improve user's body according to moving distance value and moving direction adjustment
It tests.
The technical proposal of the invention is realized in this way:
On the one hand, the embodiment of the present invention provides a kind of method for information display, the method includes:
Obtain the display pattern for showing that information is current in screen;
When detecting that the display screen meets preset condition relative to the movement of default object of reference, the display is determined
Moving direction and moving distance value of the screen relative to the default object of reference;
According to parameter preset library, the first parameter and corresponding with the current display pattern and the moving direction is determined
Second parameter;
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter,
The display of information in the display screen is adjusted according to the moving distance value and the moving direction.
In the above scheme, moving direction and movement of the determination display screen relative to the default object of reference
Distance value, including:
Moving direction, acceleration value of the display screen relative to the default object of reference are detected using acceleration sensor
And displacement time;
According to the acceleration value and the displacement time, the display screen is calculated relative to the default object of reference
Moving distance value.
In the above scheme, the display screen includes at least:First side and second side, the first side are vertical
In the second side;
It is described according to parameter preset library, determine the first parameter and with the current display pattern and the moving direction pair
The second parameter answered, including:
When the direction of displacement is parallel to the first side, first side described in the parameter preset library is determined
Length value is second parameter, determines that it is first parameter that minimum uncompensation distance value is preset in the parameter preset library;
When the direction of displacement is parallel to the second side, second side described in the parameter preset library is determined
Length value is second parameter, determines that it is first parameter that minimum uncompensation distance value is preset in the parameter preset library;
When the direction of displacement is not parallel to the first side, and the direction of displacement is not parallel to the second side
When, it determines and shows that the diagonal line value of screen is second parameter described in the parameter preset library, determine the parameter preset
It is first parameter that minimum uncompensation distance value is preset in library.
In the above scheme, described to work as the moving distance value more than first parameter, and the moving distance value is small
When second parameter, the aobvious of information in the display screen is adjusted according to the moving distance value and the moving direction
Show, including:
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter,
Determine that the moving distance value is the compensated distance value of information in the display screen;
The information in the display screen is moved in the display screen in the direction opposite with the moving direction
It is shown after the compensated distance value.
In the above scheme, further include:
The information in the display screen is moved in the display screen in the direction opposite with the moving direction
When being shown after the compensated distance value, do not show that the part of information shows preset pattern in the display screen.
On the one hand, a kind of terminal, the terminal include:Processor and memory;Wherein,
The memory is for storing computer program;
The processor is for executing the computer program stored in the memory, to realize following steps:
Obtain the display pattern for showing that information is current in screen;
When detecting that the display screen meets preset condition relative to the movement of default object of reference, the display is determined
Moving direction and moving distance value of the screen relative to the default object of reference;
According to parameter preset library, the first parameter and corresponding with the current display pattern and the moving direction is determined
Second parameter;
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter,
The display of information in the display screen is adjusted according to the moving distance value and the moving direction.
In the above scheme, the processor is for executing the computer program stored in the memory, with realize with
Lower step:
Moving direction, acceleration value of the display screen relative to the default object of reference are detected using acceleration sensor
And displacement time;
According to the acceleration value and the displacement time, the display screen is calculated relative to the default object of reference
Moving distance value.
In the above scheme, the display screen includes at least:First side and second side, the first side are vertical
In the second side;
The processor is for executing the computer program stored in the memory, to realize following steps:
When the direction of displacement is parallel to the first side, first side described in the parameter preset library is determined
Length value is second parameter, determines that it is first parameter that minimum uncompensation distance value is preset in the parameter preset library;
When the direction of displacement is parallel to the second side, second side described in the parameter preset library is determined
Length value is second parameter, determines that it is first parameter that minimum uncompensation distance value is preset in the parameter preset library;
When the direction of displacement is not parallel to the first side, and the direction of displacement is not parallel to the second side
When, it determines and shows that the diagonal line value of screen is second parameter described in the parameter preset library, determine the parameter preset
It is first parameter that minimum uncompensation distance value is preset in library.
In the above scheme, the processor is for executing the computer program stored in the memory, with realize with
Lower step:
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter,
Determine that the moving distance value is the compensated distance value of information in the display screen;
The information in the display screen is moved in the display screen in the direction opposite with the moving direction
It is shown after the compensated distance value.
On the one hand, the embodiment of the present invention also provides a kind of computer readable storage medium, the computer-readable storage medium
Matter is stored with one or more program, and one or more of programs can be executed by one or more processor, with reality
Now the step of any one of them method as above.
Method for information display, terminal and computer readable storage medium provided in an embodiment of the present invention obtain and show screen
The current display pattern of middle information;When detecting that the display screen meets preset condition relative to the movement of default object of reference
When, determine the moving direction and moving distance value for showing screen relative to default object of reference;According to parameter preset library, first is determined
Parameter and the second parameter corresponding with current display pattern and moving direction;When moving distance value is more than the first parameter, and shifting
When dynamic distance value is less than the second parameter, the display of information in screen is shown according to moving distance value and moving direction adjustment.This hair
Bright embodiment also discloses a kind of terminal and computer readable storage medium, can be adjusted according to moving distance value and moving direction
It shows the display of information in screen, improves user experience.
Description of the drawings
The hardware architecture diagram of Fig. 1 optional mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is method for information display flow diagram one provided in an embodiment of the present invention;
Fig. 4 is a kind of illustrative terminal display interface schematic diagram one provided in an embodiment of the present invention;
Fig. 5 is method for information display flow diagram two provided in an embodiment of the present invention;
Fig. 6 is a kind of illustrative terminal display interface schematic diagram two provided in an embodiment of the present invention;
Fig. 7 is a kind of illustrative terminal display interface schematic diagram three provided in an embodiment of the present invention;
Fig. 8 is terminal structure schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only
The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tablet
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
The relevant audio output of specific function executed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, 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 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a 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, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc.
It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly 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
Audio data, phone directory etc.) etc..In addition, memory 109 may 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 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processors;Preferably, processor 110 can integrate application processor and modulation /demodulation processing
Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successively
Family equipment) (the lands Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving GateWay,
Gateway) 2034, PGW (PDN GateWay, grouped data network gateway) 2035 and PCRF (Policy and Charging
Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 is between handling UE201 and EPC203
The control node of signaling, provides carrying and connection management.HSS2032 is for providing some registers to manage such as homing position
The function of register (not shown) etc, and some are preserved in relation to the dedicated letter of the users such as service features, data rate
Breath.All customer data can be sent by SGW2034, PGW2035 can provide UE 201 IP address distribute with
And other functions, PCRF2036 are the strategy and charging control policy decision point of business data flow and IP bearing resources, it is plan
Available strategy and charging control decision are slightly selected and provided with charge execution function unit (not shown).
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
The embodiment of the present invention provides a kind of method for information display, is applied to terminal, and the function that this method is realized can lead to
The processor caller code crossed in terminal realizes that certain program code can be stored in computer storage media, can
See, which includes at least pocessor and storage media.Fig. 3 is a kind of reality of method for information display provided in an embodiment of the present invention
Existing flow diagram, as shown in figure 3, this method may comprise steps of:
Step 301 obtains the display pattern for showing that information is current in screen.
Specifically, the executive agent of method provided in an embodiment of the present invention is terminal, the terminal is with display screen
Terminal, information can be shown in the display screen, at this point, can be checked in the display screen using the display screen
Described information.
Illustratively, the terminal can be implemented in a variety of manners.For example, mobile phone, smart phone, notebook are electric
Brain, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), is led at digit broadcasting receiver
Navigate the mobile terminal of device etc. and the fixed terminal of such as number TV, desktop computer etc..
Wherein, the current display pattern includes at least:Transverse screen display pattern or vertical screen display pattern.
At this point, described obtain the display pattern for showing that information is current in screen, can specifically include:It obtains and shows in screen
Information is currently at transverse screen display pattern or vertical screen display pattern.
Illustratively, when user is chatted using the application software of smart mobile phone, usually by the endways placement of smart mobile phone, this
When, it is currently vertical screen display pattern that smart mobile phone, which gets information in display screen,;Alternatively, when user plays trip using smart mobile phone
When play, usually smart mobile phone is placed sidewards, at this point, it is currently vertical screen display mould that smart mobile phone, which gets information in display screen,
Formula.
Step 302, when detecting that the display screen meets preset condition relative to the movement of default object of reference, determine
Moving direction and moving distance value of the display screen relative to the default object of reference.
Here, the default object of reference can be the user for holding the terminal, or other objects of reference, as long as energy
Show that the object of reference that the display screen relatively moves can be used as default object of reference.
Here, the concrete application scene of the embodiment of the present invention is usually that there is a situation where instantaneous variations for the state of terminal, is
It avoids the instantaneous variation in the user visual field and the SOT state of termination and generates the inadaptable of vision, display of terminal screen is done for this suitable
When adjustment compensate, to reduce this inadaptable of user.
Here, when detecting that the display screen meets preset condition relative to the movement of default object of reference, illustrate institute
It states display screen and instantaneous variation occurs relative to the default object of reference.
It, can be with specifically, described detect that the display screen meets preset condition relative to the movement of default object of reference
For:Detect the display screen relative to the default object of reference in first time point and adjacent with the first time point
The movement speed at the second time point changes;Or:Detect the display screen relative to the default object of reference
It changes in the translational acceleration of first time point and second time point adjacent with the first time point, the present invention is real
It applies example and does not do any restriction herein.
Wherein, the display screen is usually zero in the movement speed of first time point relative to the default object of reference,
That is, the display screen is stationary in first time point relative to the user for holding the terminal.
Wherein, moving direction and moving distance value of the determination display screen relative to the default object of reference,
Including:
Moving direction, acceleration value of the display screen relative to the default object of reference are detected using acceleration sensor
And displacement time;
According to the acceleration value and the displacement time, the display screen is calculated relative to the default object of reference
Moving distance value.
Here, using the acceleration value and the displacement time, the display screen is calculated relative to the default ginseng
Belong to the prior art according to the moving distance value of object, this will not be repeated here for the embodiment of the present invention.
Wherein, the terminal has acceleration sensor, and the acceleration sensor is usually by mass block, damper, elasticity member
The parts such as part, sensing element and suitable tune circuit form, and the acceleration sensor includes condenser type, inductance type, strain-type, pressure drag
Formula, piezoelectric type etc..
Step 303, according to parameter preset library, determine the first parameter and with the current display pattern and the movement side
To corresponding second parameter.
It should be noted that the display screen includes at least:First side and second side, the first side are vertical
In the second side.
Wherein, the parameter preset library includes:Default minimum uncompensation distance value, default maximum uncompensation distance value.
Wherein, the default minimum uncompensation distance value is by the preset fixed value of the terminal, as long as can be full
The value of the sufficient identifiable mobile variation range of human eyeball can be used as default minimum uncompensation distance value, for example, human eyeball
The maximum value of identifiable mobile variation range is X, then default minimum uncompensation distance value could be provided as X.
Wherein, the default maximum uncompensation distance value be by the preset multiple fixed values of the terminal, it is the multiple
Fixed value is specifically as follows:The length value of the first side, the length value of the second side and pair for showing screen
Linea angulata value.
Wherein, the diagonal line value of the display screen is the length between non-conterminous two apex angles in the display screen
Value.
Illustratively, as shown in figure 4, non-conterminous two apex angles can be apex angle A and apex angle B, can also be apex angle C and
Apex angle D, at this point, the diagonal line value of display screen can be the length value between apex angle A and apex angle B, can also be apex angle C and top
Length value between the D of angle.
Specifically, after the moving direction and moving distance value for showing screen relative to the default object of reference,
At this time, it may be necessary to according to the parameter preset library, determine the first parameter and with the current display pattern and the moving direction
Corresponding second parameter.
Wherein, described according to the parameter preset library, determine the first parameter and with the current display pattern and described
Corresponding second parameter of moving direction, including:
When the direction of displacement is parallel to the first side, first side described in the parameter preset library is determined
Length value is second parameter, determines that it is first ginseng that minimum uncompensation distance value is preset described in the parameter preset library
Number;
When the direction of displacement is parallel to the second side, second side described in the parameter preset library is determined
Length value is second parameter, determines that it is first ginseng that minimum uncompensation distance value is preset described in the parameter preset library
Number;
When the direction of displacement is not parallel to the first side, and the direction of displacement is not parallel to the second side
When, it determines and shows that the diagonal line value of screen is second parameter described in the parameter preset library, determine the parameter preset
It is first parameter that minimum uncompensation distance value is preset described in library.
Step 304, when the moving distance value be more than first parameter, and the moving distance value be less than described second
When parameter, the display of information in the display screen is adjusted according to the moving distance value and the moving direction.
Wherein, described when the moving distance value is more than first parameter, and the moving distance value is less than described the
When two parameters, the display of information in the display screen is adjusted according to the moving distance value and the moving direction, including:
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter,
Determine that the moving distance value is the compensated distance value of information in the display screen;
The information in the display screen is moved in the display screen in the direction opposite with the moving direction
It is shown after the compensated distance value.
Here, if the moving distance value is less than first parameter, the aobvious of information in the display screen is not adjusted
Show, because when the display screen is less than first parameter relative to the moving distance value of the default object of reference,
Even if not adjusting the display of information in the display screen, user will not be influenced and check information in the display screen;
If the moving distance value is more than second parameter, the display of information in the display screen is not adjusted yet,
Since when the display screen is more than second parameter relative to the moving distance value of the default object of reference, example
Such as, cause user that can not be continuing on the ground if terminal is fallen, even if adjustment shows the display of information in screen, Yong Huye
Terminal can not be continuing with.
Method for information display provided in an embodiment of the present invention, according to parameter preset library, determine the first parameter and with it is current
Display pattern and corresponding second parameter of moving direction, when moving distance value is more than the first parameter, and moving distance value is less than the
When two parameters, the display of information in screen is shown according to moving distance value and moving direction adjustment, so that the display of terminal
When moment movement occurs for screen, the display of information in display screen can be dynamically adjusted so that user will not when checking information
Dizziness realizes intelligent stabilization function, promotes user experience.
The embodiment of the present invention also provides a kind of method for information display, is applied to terminal, and the function that this method is realized can be with
It is realized by the processor caller code in terminal, certain program code can be stored in computer storage media,
As it can be seen that the terminal includes at least pocessor and storage media.A kind of method for information display provided in an embodiment of the present invention, such as Fig. 5
It is shown, it the described method comprises the following steps:
Step 501 obtains the display pattern for showing that information is current in screen.
Preferably, the current display pattern is transverse screen display pattern, one kind of vertical screen display pattern.
Specifically, the executive agent of method provided in an embodiment of the present invention is terminal, the terminal is with display screen
Terminal, information can be shown in the display screen, at this point, can be checked in the display screen using the display screen
Described information.
Illustratively, the terminal can be implemented in a variety of manners.For example, mobile phone, smart phone, notebook are electric
Brain, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), is led at digit broadcasting receiver
Navigate the mobile terminal of device etc. and the fixed terminal of such as number TV, desktop computer etc..
Specifically, described obtain the display pattern for showing that information is current in screen, can specifically include:Utilize gravity sensitive
Device detection shows that information is currently at transverse screen display pattern or vertical screen display pattern in screen.
Wherein, there is the terminal gravity sensor, the gravity sensor cantilevered is made using elastic sensing element
Shifter drives electric contact with using energy-stored spring made of elastic sensing element, completes from Gravity changer to electric signal
Conversion.
Illustratively, when user is chatted using the wechat software of smart mobile phone, usually by the endways placement of smart mobile phone, this
When, the gravity sensor in smart mobile phone detects that information is currently vertical screen display pattern in display screen.
Whether step 502, the detection display screen meet preset condition relative to the movement of default object of reference.
Preferably, in the embodiment of the present invention, the default object of reference is the user for holding the terminal.
It, specifically can be at this point, whether the detection display screen meets preset condition relative to the movement of default object of reference
Including:Using acceleration sensor detect the display screen relative to the user for holding the terminal in first time point and
Whether the movement speed at second time point adjacent with the first time point changes;Or it is detected using acceleration sensor
The display screen is relative to the user for holding the terminal in first time point and adjacent with the first time point
Whether the translational acceleration at the second time point changes.
Step 503, when detecting that the display screen meets preset condition relative to the movement of default object of reference, determine
Moving direction, acceleration value and displacement time of the display screen relative to the default object of reference.
It here, can when detecting that the display screen meets preset condition relative to the movement of the default object of reference
With using the acceleration sensor detect it is described display screen relative to it is described hold the terminal user moving direction, plus
Velocity amplitude and displacement time.
Step 504, according to the acceleration value and the displacement time, calculate the display screen and preset relative to described
The moving distance value of object of reference.
Here, it is described display screen relative to it is described hold the terminal user moving distance value s can according to
Lower formula calculates:
Wherein, a indicates that the acceleration value, the t indicate the displacement time.
Illustratively, user takes traveling in vehicle on uneven road, and comparison of jolting is severe, and smart mobile phone is at certain
Movement has occurred relative to the user of hand-held intelligent mobile phone in one direction, i.e., the display screen of smart mobile phone is in some direction phase
Movement is had occurred for the user of hand-held intelligent mobile phone, at this point, the acceleration sensor detection in smart mobile phone shows that screen is opposite
In the moving direction, acceleration value a and displacement time t of the user of hand-held intelligent mobile phone, according to formulaCalculate display screen
Moving distance value s of the curtain relative to user.
Step 505, according to parameter preset library, determine the first parameter and with the current display pattern and the movement side
To corresponding second parameter.
It should be noted that the display screen includes at least:First side and second side, the first side are vertical
In the second side.
Illustratively, it can also be the sides BC as shown in figure 4, the first side of display screen can be the sides AD, at this moment, show
The second side of display screen curtain can be the BD vertical with first side while, can also be the AC vertical with first side while;It is optional
, show that the first side of screen can be the sides AC, can also be the sides BD, at this moment, show the second side of screen can be with
The vertical BC in first side while, can also be the AD vertical with first side while.
Wherein, the parameter preset library includes:Default minimum uncompensation distance value, default maximum uncompensation distance value.
Preferably, the default maximum uncompensation distance value includes:The length value of the first side, the second side
The diagonal line value of length value and the display screen;Wherein, the length of the length value of the first side and the second side
Value is different.
Specifically, according to parameter preset library, determine the first parameter and with the current display pattern and the movement side
To corresponding second parameter, Ke Yiwei:
If the current display pattern is transverse screen display pattern, when the direction of displacement is parallel to the first side,
It determines that the length value of first side described in the parameter preset library is second parameter, determines institute in the parameter preset library
It is first parameter to state default minimum uncompensation distance value;
If the current display pattern is vertical screen display pattern, when the direction of displacement is parallel to the first side,
It determines that the length value of first side described in the parameter preset library is second parameter, determines pre- in the parameter preset library
If minimum uncompensation distance value is first parameter;
If the current display pattern is transverse screen display pattern, when the direction of displacement is parallel to the second side,
It determines that the length value of second side described in the parameter preset library is second parameter, determines institute in the parameter preset library
It is first parameter to state default minimum uncompensation distance value;
If the current display pattern is vertical screen display pattern, when the direction of displacement is parallel to the second side,
It determines that the length value of second side described in the parameter preset library is second parameter, determines institute in the parameter preset library
It is first parameter to state default minimum uncompensation distance value;
If the current display pattern is transverse screen display pattern or vertical screen display pattern, the direction of displacement is not parallel to
The first side, and when the direction of displacement is not parallel to the second side, determines and shown described in the parameter preset library
The diagonal line value of display screen curtain is second parameter, determines that it is institute that minimum uncompensation distance value is preset described in the parameter preset library
State the first parameter.
Illustratively, as shown in Figure 6, it is assumed that smart mobile phone shows that four apex angles of screen are respectively:A, B, C, D, the sides AD
For first side, and the length value on the sides AD is L, a kind of possible scene:User takes traveling and gets on the bus in uneven road
When, also utilize the wechat software of smart mobile phone to chat, smart mobile phone detects the current display of information in display screen at this time
Pattern is vertical screen display pattern, and at this moment, since comparison of jolting is severe, the display screen of smart mobile phone is relative to hand-held intelligent mobile phone
User have occurred movement, smart mobile phone detects that moving direction is parallel to the first side sides AD, moving distance value P, at this moment,
Smart mobile phone according to current moving direction and moving distance value select the length value L on the sides first side AD in parameter preset library for
Second parameter, smart mobile phone determine that it is the first parameter that minimum uncompensation distance value is preset in parameter preset library.
Step 506, when the moving distance value be more than first parameter, and the moving distance value be less than described second
When parameter, the display of information in the display screen is adjusted according to the moving distance value and the moving direction.
Here, only when the moving distance value is more than first parameter, and the moving distance value is less than described the
When two parameters, the display of information in the display screen, tool could be adjusted according to the moving distance value and the moving direction
Body:When the moving distance value is more than first parameter, and the moving distance value is less than second parameter, determine
The moving distance value is the compensated distance value of information in the display screen;In the direction opposite with the moving direction by institute
The information in display screen is stated to be shown after the mobile compensated distance value in the display screen.
In addition, step 506 further includes:When the moving distance value is more than first parameter, and the moving distance value
When less than second parameter, the aobvious of information in the display screen is adjusted according to the moving distance value and the moving direction
When showing, do not show that the part of information shows preset pattern in the display screen.
Wherein, the preset pattern can be:Preset black graphics or preset white graphics can also be it
He does not show the part of information, and will not be shown in the display screen by figure as long as can mark in the display screen here
Show that the image that the part of information is distinguished can be used as preset pattern in the part of information and the display screen.
Illustratively, as shown in fig. 6, smart mobile phone is detecting moving distance value P more than the first parameter and is being less than second
When parameter, smart mobile phone automatically by moving distance value P be determined as show screen in information compensated distance value F, and with Fig. 6
The opposite direction of moving direction will show that the information in screen is shown after displacement distance offset F within display screen, such as
Shown in Fig. 7, shows that the a-quadrant of screen is the part for showing information, show that the B area of screen is not show the part of information, show
The B area of display screen curtain is shown with black graphics.
Method for information display provided in an embodiment of the present invention, according to parameter preset library, determine the first parameter and with it is current
Display pattern and corresponding second parameter of moving direction, when moving distance value is more than the first parameter, and moving distance value is less than the
When two parameters, the display of information in screen is shown according to moving distance value and moving direction adjustment, so that the display of terminal
When moment movement occurs for screen, the display of information in display screen can be dynamically adjusted, and will not show information in display screen
Part shown according to pre-set image so that user in viewing information will not dizziness, realize intelligent stabilization function, promoted
User experience.
The embodiment of the present invention also provides a kind of terminal 80, and Fig. 8 is the composed structure schematic diagram of terminal of the embodiment of the present invention, such as
Shown in Fig. 8, the terminal 80 includes:Processor 801 and memory 802;Wherein,
The memory 802 is for storing computer program;
The processor 801 is for executing the computer program stored in the memory 802, to realize following steps:
Obtain the display pattern for showing that information is current in screen;
When detecting that the display screen meets preset condition relative to the movement of default object of reference, the display is determined
Moving direction and moving distance value of the screen relative to the default object of reference;
According to parameter preset library, the first parameter and corresponding with the current display pattern and the moving direction is determined
Second parameter;
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter,
The display of information in the display screen is adjusted according to the moving distance value and the moving direction.
Further, the processor 801 is for executing the computer program stored in the memory 802, to realize
Following steps:
Moving direction, acceleration value of the display screen relative to the default object of reference are detected using acceleration sensor
And displacement time;
According to the acceleration value and the displacement time, the display screen is calculated relative to the default object of reference
Moving distance value.
Further, the display screen includes at least:First side and second side, the first side is perpendicular to institute
State second side;
The processor 801 is for executing the computer program stored in the memory 802, to realize following steps:
When the direction of displacement is parallel to the first side, first side described in the parameter preset library is determined
Length value is second parameter, determines that it is first parameter that minimum uncompensation distance value is preset in the parameter preset library;
When the direction of displacement is parallel to the second side, second side described in the parameter preset library is determined
Length value is second parameter, determines that it is first parameter that minimum uncompensation distance value is preset in the parameter preset library;
When the direction of displacement is not parallel to the first side, and the direction of displacement is not parallel to the second side
When, it determines and shows that the diagonal line value of screen is second parameter described in the parameter preset library, determine the parameter preset
It is first parameter that minimum uncompensation distance value is preset in library.
Further, the processor 801 is for executing the computer program stored in the memory 802, to realize
Following steps:
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter,
Determine that the moving distance value is the compensated distance value of information in the display screen;
The information in the display screen is moved in the display screen in the direction opposite with the moving direction
It is shown after the compensated distance value.
Further, the processor 801 is for executing the computer program stored in the memory 802, to realize
Following steps:
The information in the display screen is moved in the display screen in the direction opposite with the moving direction
When being shown after the compensated distance value, do not show that the part of information shows preset pattern in the display screen.
Memory 802 in the embodiment of the present invention is for storing various types of data to support the operation of terminal 80.This
The example of data includes a bit:Any computer program for being operated in terminal 80, such as operating system and application program;Contact
Personal data;Telephone book data;Message;Picture;Video etc..Wherein, operating system include various system programs, such as ccf layer,
Core library layer, driving layer etc., for realizing various basic businesses and the hardware based task of processing.Application program can include
Various application programs, such as media player (Media Player), browser (Browser) etc., for realizing various applications
Business.Realize that the program of present invention method may be embodied in application program.
The method that the embodiments of the present invention disclose can be applied in processor 801, or be realized by processor 801.
Processor 801 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing
Device 801 can be general processor, digital signal processor (DSP, Digital Signal Processor) or other can
Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..Processor 801 may be implemented or hold
Disclosed each method, step and logic diagram in the row embodiment of the present invention.General processor can be microprocessor or appoint
What conventional processor etc..It the step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly at hardware decoding
Reason device executes completion, or in decoding processor hardware and software module combine and execute completion.Software module can be located at
In storage medium, which is located at the information in memory 802 and processor 801, and preceding method is completed in conjunction with its hardware
The step of.
Specifically, the description of the above terminal embodiment, is similar with the description of above method embodiment, for the present invention
Undisclosed technical detail in terminal embodiment, can refer to the explanation of above- mentioned information processing method embodiment, and the present invention is implemented
Details are not described herein for example.
Terminal provided in an embodiment of the present invention, when moving distance value be more than the first parameter, and moving distance value be less than second
When parameter, show that the display of information in screen is promoted to realize intelligent stabilization according to moving distance value and moving direction adjustment
User experience.
In the embodiment of the present invention, if above-mentioned information processing method is realized in the form of software function module, and conduct
Independent product sale in use, can also be stored in a computer read/write memory medium.Based on this understanding,
Substantially the part that contributes to existing technology can be with the shape of software product in other words for the technical solution of the embodiment of the present invention
Formula embodies, which is stored in a storage medium, including some instructions are used so that a calculating
Machine equipment (can be personal computer, server or network equipment etc.) executes each embodiment the method for the present invention
It is all or part of.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read Only
Memory), the various media that can store program code such as magnetic disc or CD.In this way, the embodiment of the present invention is not limited to appoint
What specific hardware and software combines.
The embodiment of the present invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage has one
A or multiple programs, one or more of programs can be executed by one or more processor, to realize following steps:
Obtain the display pattern for showing that information is current in screen;
When detecting that the display screen meets preset condition relative to the movement of default object of reference, the display is determined
Moving direction and moving distance value of the screen relative to the default object of reference;
According to parameter preset library, the first parameter and corresponding with the current display pattern and the moving direction is determined
Second parameter;
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter,
The display of information in the display screen is adjusted according to the moving distance value and the moving direction.
The above computer readable storage medium implements the description of item, is similar with above method description, has Tongfang
The identical advantageous effect of method embodiment.For undisclosed technical detail in computer readable storage medium embodiment of the present invention,
Those skilled in the art please refers to the description of the method for the present invention embodiment and understands.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is related with embodiment
A particular feature, structure, or characteristic includes at least one embodiment of the present invention.Therefore, occur everywhere in the whole instruction
" in one embodiment " or " in one embodiment " not necessarily refer to identical embodiment.In addition, these specific feature, knots
Structure or characteristic can in any suitable manner combine in one or more embodiments.It should be understood that in the various implementations of the present invention
In example, size of the sequence numbers of the above procedures is not meant that the order of the execution order, and the execution sequence of each process should be with its work(
It can determine that the implementation process of the embodiments of the invention shall not be constituted with any limitation with internal logic.The embodiments of the present invention
Serial number is for illustration only, can not represent the quality of embodiment.
It should be noted that herein, the terms "include", "comprise" 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 include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only
A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as:Multiple units or component can combine, or
It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion
It can be the INDIRECT COUPLING by some interfaces, equipment or unit to divide mutual coupling or direct-coupling or communication connection
Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be and be physically separated, aobvious as unit
The component shown can be or may not be physical unit;Both it can be located at a place, may be distributed over multiple network lists
In member;Some or all of wherein unit can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in a processor, it can also
It is each unit individually as a unit, it can also be during two or more units be integrated in one unit;Above-mentioned collection
At unit both may be used hardware form realize, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in computer read/write memory medium, which exists
When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:Movable storage device read-only is deposited
The various media that can store program code such as reservoir (ReadOnly Memory, ROM), magnetic disc or CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product
Sale in use, can also be stored in a computer read/write memory medium.Based on this understanding, the present invention is implemented
Substantially the part that contributes to existing technology can be expressed in the form of software products the technical solution of example in other words,
The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with
It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention.
And storage medium above-mentioned includes:Various Jie that can store program code such as movable storage device, ROM, magnetic disc or CD
Matter.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of method for information display, which is characterized in that the method includes:
Obtain the display pattern for showing that information is current in screen;
When detecting that the display screen meets preset condition relative to the movement of default object of reference, the display screen is determined
Moving direction and moving distance value relative to the default object of reference;
According to parameter preset library, determine the first parameter and with the current display pattern and the moving direction corresponding second
Parameter;
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter, according to
The moving distance value and the moving direction adjust the display of information in the display screen.
2. according to the method described in claim 1, it is characterized in that, the determination display screen is relative to the default ginseng
According to the moving direction and moving distance value of object, including:
Moving direction, acceleration value and position of the display screen relative to the default object of reference are detected using acceleration sensor
Shift time;
According to the acceleration value and the displacement time, movement of the display screen relative to the default object of reference is calculated
Distance value.
3. method according to claim 1 or 2, which is characterized in that
The display screen includes at least:First side and second side, the first side is perpendicular to the second side;
It is described according to parameter preset library, determine the first parameter and corresponding with the current display pattern and the moving direction
Second parameter, including:
When the direction of displacement is parallel to the first side, the length of first side described in the parameter preset library is determined
Value is second parameter, determines that it is first parameter that minimum uncompensation distance value is preset in the parameter preset library;
When the direction of displacement is parallel to the second side, the length of second side described in the parameter preset library is determined
Value is second parameter, determines that it is first parameter that minimum uncompensation distance value is preset in the parameter preset library;
When the direction of displacement is not parallel to the first side, and the direction of displacement is not parallel to the second side,
It determines and shows that the diagonal line value of screen is second parameter described in the parameter preset library, determine in the parameter preset library
Default minimum uncompensation distance value is first parameter.
4. according to the method described in claim 3, it is characterized in that, described join when the moving distance value is more than described first
Number, and when the moving distance value is less than second parameter, institute is adjusted according to the moving distance value and the moving direction
The display of information in display screen is stated, including:
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter, determine
The moving distance value is the compensated distance value of information in the display screen;
The direction opposite with the moving direction by it is described display screen in information in the display screen move described in
It is shown after compensated distance value.
5. according to the method described in claim 4, it is characterized in that, the method further includes:
The direction opposite with the moving direction by it is described display screen in information in the display screen move described in
When being shown after compensated distance value, do not show that the part of information shows preset pattern in the display screen.
6. a kind of terminal, which is characterized in that the terminal includes:Processor and memory;Wherein,
The memory is for storing computer program;
The processor is for executing the computer program stored in the memory, to realize following steps:
Obtain the display pattern for showing that information is current in screen;
When detecting that the display screen meets preset condition relative to the movement of default object of reference, the display screen is determined
Moving direction and moving distance value relative to the default object of reference;
According to parameter preset library, determine the first parameter and with the current display pattern and the moving direction corresponding second
Parameter;
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter, according to
The moving distance value and the moving direction adjust the display of information in the display screen.
7. terminal according to claim 6, which is characterized in that the processor is used to execute to store in the memory
Computer program, to realize following steps:
Moving direction, acceleration value and position of the display screen relative to the default object of reference are detected using acceleration sensor
Shift time;
According to the acceleration value and the displacement time, movement of the display screen relative to the default object of reference is calculated
Distance value.
8. the terminal described according to claim 6 or 7, which is characterized in that
The display screen includes at least:First side and second side, the first side is perpendicular to the second side;
The processor is for executing the computer program stored in the memory, to realize following steps:
When the direction of displacement is parallel to the first side, the length of first side described in the parameter preset library is determined
Value is second parameter, determines that it is first parameter that minimum uncompensation distance value is preset in the parameter preset library;
When the direction of displacement is parallel to the second side, the length of second side described in the parameter preset library is determined
Value is second parameter, determines that it is first parameter that minimum uncompensation distance value is preset in the parameter preset library;
When the direction of displacement is not parallel to the first side, and the direction of displacement is not parallel to the second side,
It determines and shows that the diagonal line value of screen is second parameter described in the parameter preset library, determine in the parameter preset library
Default minimum uncompensation distance value is first parameter.
9. terminal according to claim 8, which is characterized in that the processor is used to execute to store in the memory
Computer program, to realize following steps:
When the moving distance value is more than first parameter, and the moving distance value is less than second parameter, determine
The moving distance value is the compensated distance value of information in the display screen;
The direction opposite with the moving direction by it is described display screen in information in the display screen move described in
It is shown after compensated distance value.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or
Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 5
The step of any one of them method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810338732.XA CN108566489B (en) | 2018-04-16 | 2018-04-16 | Information display method, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810338732.XA CN108566489B (en) | 2018-04-16 | 2018-04-16 | Information display method, terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108566489A true CN108566489A (en) | 2018-09-21 |
CN108566489B CN108566489B (en) | 2020-11-24 |
Family
ID=63535297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810338732.XA Active CN108566489B (en) | 2018-04-16 | 2018-04-16 | Information display method, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108566489B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040100419A1 (en) * | 2002-11-25 | 2004-05-27 | Nissan Motor Co., Ltd. | Display device |
WO2006095573A1 (en) * | 2005-03-08 | 2006-09-14 | Sharp Kabushiki Kaisha | Portable terminal device |
CN103677269A (en) * | 2013-12-11 | 2014-03-26 | 小米科技有限责任公司 | Method and device for displaying content and terminal device |
CN104320545A (en) * | 2014-11-14 | 2015-01-28 | 陕西亚成微电子股份有限公司 | Anti-shake method for mobile phone screen |
CN106339070A (en) * | 2015-07-09 | 2017-01-18 | 腾讯科技(深圳)有限公司 | Display control method and mobile terminal |
CN106843634A (en) * | 2016-12-15 | 2017-06-13 | 宇龙计算机通信科技(深圳)有限公司 | Screen display method of adjustment and system |
-
2018
- 2018-04-16 CN CN201810338732.XA patent/CN108566489B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040100419A1 (en) * | 2002-11-25 | 2004-05-27 | Nissan Motor Co., Ltd. | Display device |
WO2006095573A1 (en) * | 2005-03-08 | 2006-09-14 | Sharp Kabushiki Kaisha | Portable terminal device |
CN103677269A (en) * | 2013-12-11 | 2014-03-26 | 小米科技有限责任公司 | Method and device for displaying content and terminal device |
CN104320545A (en) * | 2014-11-14 | 2015-01-28 | 陕西亚成微电子股份有限公司 | Anti-shake method for mobile phone screen |
CN106339070A (en) * | 2015-07-09 | 2017-01-18 | 腾讯科技(深圳)有限公司 | Display control method and mobile terminal |
CN106843634A (en) * | 2016-12-15 | 2017-06-13 | 宇龙计算机通信科技(深圳)有限公司 | Screen display method of adjustment and system |
Also Published As
Publication number | Publication date |
---|---|
CN108566489B (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108391025A (en) | A kind of network access management method, mobile terminal and computer readable storage medium | |
CN108052302A (en) | Association display methods, terminal and the computer readable storage medium of double-sided screen | |
CN107463481A (en) | Data interactive method, mobile terminal and storage medium | |
CN108234773A (en) | A kind of switching method of double-sided screen, terminal and storage medium | |
CN108566479A (en) | screen state control method, mobile terminal and computer readable storage medium | |
CN108108081A (en) | Method for information display, mobile terminal and readable storage medium storing program for executing based on double-sided screen | |
CN108304109A (en) | Icon protrusion forming method, mobile terminal and computer readable storage medium | |
CN108521658A (en) | Reduce interference method, mobile terminal and computer readable storage medium | |
CN108345426A (en) | A kind of terminal control method, terminal and computer readable storage medium | |
CN109739602A (en) | A kind of mobile terminal wallpaper setting method and device, mobile terminal and storage medium | |
CN108234767A (en) | Control method, mobile terminal and the computer readable storage medium of screen state | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN108536382A (en) | A kind of content display method, wearable terminal and storage medium | |
CN108196777A (en) | A kind of flexible screen application process, equipment and computer readable storage medium | |
CN107967056A (en) | Control method, terminal and the computer-readable recording medium of flexible screen | |
CN107390856A (en) | A kind of method, mobile terminal and storage medium for reducing mobile terminal power consumption | |
CN108334266A (en) | Control method, flexible terminal and the computer readable storage medium of flexible terminal | |
CN108184011A (en) | A kind of reminder announced method, terminal and computer readable storage medium | |
CN108881542A (en) | Mobile terminal call method, mobile terminal and computer readable storage medium | |
CN108769534A (en) | A kind of focalization method and terminal | |
CN108538203A (en) | Flexible screen abnormal curvatures alarm method, mobile terminal and readable storage medium storing program for executing | |
CN108810262A (en) | A kind of configuration method of application, terminal and computer readable storage medium | |
CN108366303A (en) | A kind of video broadcasting method, mobile terminal and computer readable storage medium | |
CN107911778A (en) | A kind of playback method based on loudspeaker in parallel, mobile terminal and readable storage medium storing program for executing | |
CN109561221A (en) | A kind of call control method, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |