CN110399059A - Method and apparatus for showing information - Google Patents

Method and apparatus for showing information Download PDF

Info

Publication number
CN110399059A
CN110399059A CN201810376837.4A CN201810376837A CN110399059A CN 110399059 A CN110399059 A CN 110399059A CN 201810376837 A CN201810376837 A CN 201810376837A CN 110399059 A CN110399059 A CN 110399059A
Authority
CN
China
Prior art keywords
terminal device
gravity
acceleration
screen
view
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
CN201810376837.4A
Other languages
Chinese (zh)
Inventor
杜建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810376837.4A priority Critical patent/CN110399059A/en
Publication of CN110399059A publication Critical patent/CN110399059A/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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/0485Scrolling or panning

Abstract

The embodiment of the present application discloses the method and apparatus for showing information.One specific embodiment of this method includes: to obtain the information shown in view control in response to receiving the confirmation operation to view control;According to information, temporary view is created, wherein temporary view is for showing information;Determine whether information is shown in temporary view completely;In response to determining that information is not shown in temporary view completely, the current acceleration of gravity of terminal device is obtained;Determine rotating direction corresponding with current acceleration of gravity;It is rolled in temporary view according to rotating direction and shows information.The embodiment, which realizes, is imbued with pointedly information displaying.

Description

Method and apparatus for showing information
Technical field
The invention relates to field of computer technology, and in particular to the method and apparatus for showing information.
Background technique
With the rapid development of mobile Internet, various applications emerge one after another.In general, many fields of these applications It may require that display text in scape.By taking class application of doing shopping as an example, need to show that settlement amounts, the related of article are situated between in shopping class application Continue information, prompt information in advertising campaign etc., these information are usually illustrated in view control.Due to view control Display area fixes (i.e. the display location of view control is fixed, the size of view control is fixed), when needing to open up in view control When the content for the information shown is more, it may appear that the content of information shows infull phenomenon, causes user that information can not be understood completely Content.Therefore, in the prior art, in order to make the content that can show information in view control completely, it will usually constantly The font for reducing information shown in view control, until information content by until showing in view control completely.
Summary of the invention
The embodiment of the present application proposes the method and apparatus for showing information.
In a first aspect, the embodiment of the present application provides a kind of method for showing information, it is applied to terminal device, packet It includes: in response to receiving the confirmation operation to view control, obtaining the information shown in view control;According to information, creation is faced When view, wherein temporary view is for showing information;Determine whether information is shown in temporary view completely;In response to true Determine information not shown in temporary view completely, obtains the current acceleration of gravity of terminal device;Determining and current gravity The corresponding rotating direction of acceleration;It is rolled in temporary view according to rotating direction and shows information.
In some embodiments, according to information, temporary view is created, comprising: be determined to show the candidate of information completely Temporary view;The size for the maximum temporary view that can be shown on the size of candidate temporary view and terminal device is compared Compared with;If the size of candidate temporary view is not more than the size of maximum temporary view, candidate temporary view is created, as interim view Figure;If the size of candidate temporary view is greater than the size of maximum temporary view, maximum temporary view is created, as temporary view.
In some embodiments, rotating direction corresponding with current acceleration of gravity is determined, comprising: accelerate current gravity What degree resolved into two preset directions divides acceleration of gravity;To the value for dividing acceleration of gravity of two preset directions resolved into It is analyzed, determines rotating direction corresponding with the current acceleration of gravity of terminal device.
In some embodiments, two preset directions include horizontally-parallel direction with the screen of terminal device and with end The parallel direction in the longitudinal direction of the screen of end equipment;And to two preset directions resolved into divide the value of acceleration of gravity into Row analysis, determines rotating direction corresponding with the current acceleration of gravity of terminal device, comprising: the determining screen with terminal device Horizontally-parallel direction the value for dividing acceleration of gravity absolute value whether be greater than it is longitudinal parallel with the screen of terminal device Direction the value for dividing acceleration of gravity absolute value;In response to determination and the horizontally-parallel direction of the screen of terminal device The absolute value of the value of point acceleration of gravity is greater than the acceleration of gravity that divides in the direction parallel with the longitudinal direction of the screen of terminal device Whether the absolute value of value, the determining value for dividing acceleration of gravity with the horizontally-parallel direction of the screen of terminal device are greater than first Preset threshold, if more than the first preset threshold, it is determined that rotating direction corresponding with the current acceleration of gravity of terminal device refers to Show to the right side of the screen of terminal device and roll, if being not more than the first preset threshold, it is determined that the current gravity with terminal device The corresponding rotating direction of acceleration indicates to roll to the left side of the screen of terminal device.
In some embodiments, the value for dividing acceleration of gravity of two preset directions resolved into is analyzed, really Fixed rotating direction corresponding with the current acceleration of gravity of terminal device, further includes: in response to the determining screen with terminal device Horizontally-parallel direction the value for dividing acceleration of gravity absolute value no more than parallel with the longitudinal direction of the screen of terminal device The absolute value of the value for dividing acceleration of gravity in direction, determine the direction parallel with the longitudinal direction of the screen of terminal device divides gravity to add Whether the value of speed is greater than the second preset threshold, if more than the second preset threshold, it is determined that adds with the current gravity of terminal device The corresponding rotating direction of speed indicates the scrolls beneath to the screen of terminal device, if being not more than the second preset threshold, it is determined that Rotating direction corresponding with the current acceleration of gravity of terminal device indicates to roll to the top of the screen of terminal device.
In some embodiments, this method further include: in response to receiving the confirmation operation to temporary view, close interim View.
Second aspect, the embodiment of the present application provide a kind of for showing the device of information, are set to terminal device, wrap Include: first acquisition unit is configured in response to receive the confirmation operation to view control, show in acquisition view control Information;Creating unit is configured to create temporary view according to information, wherein temporary view is for showing information;First really Order member, is configured to determine whether information is shown in temporary view completely;Second acquisition unit is configured in response to It determines that information is not shown in temporary view completely, obtains the current acceleration of gravity of terminal device;Second determination unit, It is configured to determine rotating direction corresponding with the current acceleration of gravity of terminal device;Display unit is configured to according to rolling Dynamic direction rolls in temporary view shows information.
In some embodiments, creating unit is further configured to: being determined to show that the candidate of information is interim completely View;The size of candidate temporary view is compared with the size for the maximum temporary view that can be shown on terminal device;If The size of candidate temporary view is not more than the size of maximum temporary view, candidate temporary view is created, as temporary view;If waiting It selects the size of temporary view to be greater than the size of maximum temporary view, maximum temporary view is created, as temporary view.
In some embodiments, the second determination unit includes: decomposition subelement, is configured to current acceleration of gravity point Solution divides acceleration of gravity at two preset directions;It determines subelement, is configured to two preset directions resolved into Divide the value of acceleration of gravity to be analyzed, determines rotating direction corresponding with the current acceleration of gravity of terminal device.
In some embodiments, two preset directions include horizontally-parallel direction with the screen of terminal device and with end The parallel direction in the longitudinal direction of the screen of end equipment;And determine that subelement includes: the first determining module, it is configured to determine and whole Whether the absolute value of the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen of end equipment is greater than the screen with terminal device The absolute value of the value for dividing acceleration of gravity in the parallel direction in the longitudinal direction of curtain;Second determining module is configured in response to determine It is greater than the screen with terminal device with the absolute value of the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen of terminal device The absolute value of the value for dividing acceleration of gravity in the parallel direction in the longitudinal direction of curtain, it is determining horizontally-parallel with the screen of terminal device Whether the value for dividing acceleration of gravity in direction is greater than the first preset threshold, if more than the first preset threshold, it is determined that set with terminal The standby corresponding rotating direction of current acceleration of gravity indicates to roll to the right side of the screen of terminal device, if pre- no more than first If threshold value, it is determined that rotating direction corresponding with the current acceleration of gravity of terminal device indicates the left side to the screen of terminal device Side roll.
In some embodiments, subelement is determined further include: third determining module is configured in response to determining and terminal The absolute value of the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen of equipment is not more than and the screen of terminal device The absolute value of the value for dividing acceleration of gravity in longitudinal parallel direction, determines the direction parallel with the longitudinal direction of the screen of terminal device The value for dividing acceleration of gravity whether be greater than the second preset threshold, if more than the second preset threshold, it is determined that with terminal device The current corresponding rotating direction of acceleration of gravity indicates the scrolls beneath to the screen of terminal device, if being not more than the second default threshold Value, it is determined that rotating direction corresponding with the current acceleration of gravity of terminal device indicates to roll to the top of the screen of terminal device It is dynamic.
In some embodiments, device further include: closing unit is configured in response to receive to temporary view Confirmation operation closes temporary view.
The third aspect, the embodiment of the present application provide a kind of terminal device, which includes: one or more processing Device;Storage device is stored thereon with one or more programs;When one or more programs are executed by one or more processors, So that one or more processors realize the method as described in implementation any in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should The method as described in implementation any in first aspect is realized when computer program is executed by processor.
Method and apparatus provided by the embodiments of the present application for showing information are receiving the confirmation behaviour to view control In the case where work, the information shown in view control is obtained;The temporary view for showing acquired information is created later;And Determine whether acquired information can be shown in temporary view completely afterwards;It can not be opened up completely in acquired information Show in temporary view, obtains the current acceleration of gravity of terminal device;It is later determined that current with terminal device The corresponding rotating direction of acceleration of gravity is rolled in temporary view acquired in displaying with realizing according to identified rotating direction Information.It is adjusted since the display area of temporary view can according to need, while temporary view can also roll displaying Information, therefore, how much is the content for the information for no matter needing to show, can be created that matched temporary view, so that letter Breath is shown in temporary view completely, is imbued with pointedly information displaying to realize.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary context of use figures therein;
Fig. 2 is the flow chart according to one embodiment of the method for showing information of the application;
Fig. 3 A is in an application scenarios of the method for being used to show information provided by Fig. 2 including showing settlement information The schematic diagram of the clearing page of view control;
Fig. 3 B is in an application scenarios of the method for being used to show information provided by Fig. 2 including showing settlement information The schematic diagram of the clearing page of temporary view;
Fig. 4 is the flow chart according to another embodiment of the method for showing information of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the device for showing information of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the terminal device of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the method for showing information of the application or the implementation of the device for showing information The exemplary context of use 100 of example.
As shown in Figure 1, may exist user 101 and terminal device 102 in application environment 100.
User 101 can be with the people of any one permission with operating terminal equipment 102.
User 101 can be with operating terminal equipment 102.Various telecommunication customer end applications can be installed on terminal device 102, Such as web browser applications, shopping class application, searching class application, instant messaging tools, mailbox client, social platform software Deng.
Terminal device 102 can be hardware, be also possible to software.When terminal device 102 is hardware, can be with aobvious The various electronic equipments of display screen, including but not limited to smart phone, tablet computer, pocket computer on knee and desktop computer Etc..When terminal device 102 is software, may be mounted in above-mentioned cited electronic equipment.It may be implemented into multiple Single software or software module also may be implemented into software or software module.It is not specifically limited herein.
Terminal device 102 can provide various services.For example, terminal device 102 can receive user 101 to view In the case where the confirmation operation of control, the data such as the information shown in view control are carried out the processing such as to analyze, and generate processing As a result (such as rolling the temporary view for showing information).
It should be noted that for showing the method for information generally by terminal device 102 provided by the embodiment of the present application It executes, correspondingly, for showing that the device of information is generally positioned in terminal device 102.
It should be understood that the number of the terminal device in Fig. 1 is only schematical.According to needs are realized, it can have and appoint The terminal device for number of anticipating.
With continued reference to Fig. 2, it illustrates the processes according to one embodiment of the method for showing information of the application 200.The method for being used to show information, is applied to terminal device, comprising the following steps:
Step 201, in response to receiving the confirmation operation to view control, the information shown in view control is obtained.
In the present embodiment, for showing that the executing subject (such as terminal device 102 shown in FIG. 1) of the method for information can With real-time detection to the confirmation operation of view control, and in the case where receiving the confirmation operation to view control, view is obtained The information shown on figure control.
In practice, when the application installed on terminal device needs to show information, usually it is shown using view control. By taking operating system is a kind of terminal device of IOS (Mobile operating system) as an example, a kind of UILabel (view control is usually utilized Part) show information.It is Android's (a kind of operating system of freedom and open source code based on Linux) with operating system For terminal device, LabelView (a kind of view control) is usually utilized to show information.Wherein, it is shown in view control Information can include but is not limited to text, picture, video etc..Under normal conditions, the information shown in view control is text.
The information shown in view control is carried out really in general, can serve to indicate that the confirmation operation of view control Recognize, can include but is not limited to clicking operation, slide, gesture operation etc..For example, terminal device when the user clicks When view control on screen, it is believed that user performs the confirmation operation to view control.Specifically, when the user clicks eventually When view control on the screen of end equipment, system can generate a touch event, and the pass order of touch event is controlled from father Part is transmitted to child control.By taking operating system is the terminal device of IOS as an example, touch event can be transmitted to from AppDelegate UIApplication is then transmitted to UIWindow, is transmitted to UIViewController later, is then passed to UIView, It is eventually transferred into UILabel.Wherein, AppDelegate is one of IOS program agency, provide program start, exit etc. it is similar The interface of monitoring.UIApplication object is the symbol of application program, and first object created after the starting of IOS program is just It is UIApplication object.UIWindow is a kind of special UIView, after IOS program starts, first of creation View is exactly UIWindow.UIViewController is the view controller inside IOS.UIView is the view in IOS, respectively Kind UILabel belongs to UIView.When UILabel receives touch event as child control, terminal device can be determined The UILabel of user's click screen position.
Here, above-mentioned executing subject can obtain the information shown in view control in several ways.With operating system For the terminal device of IOS, terminal device can call the text method of UILabel to obtain the letter shown in view control Breath.Wherein, text is a kind of method of UILabel, can return to the content of text shown on UILabel.
Step 202, according to information, temporary view is created.
In the present embodiment, after the information shown on obtaining view control, above-mentioned executing subject can be created temporarily View.Wherein, temporary view can be used for showing information.Wherein, temporary view can be various shape (such as rectangle, just It is rectangular) view, can be arranged near view control after being created.The size of temporary view can be as needed How much the content of the information of displaying is able to carry out adjustment, is also possible to fixation.It should be noted that the size of temporary view The typically larger than size of view control.
In some optional implementations of the present embodiment, if the size of temporary view is fixed, at this point, no matter believing How much is the content of breath, creates maximum temporary view.In general, the size of maximum temporary view by terminal device screen size It determines, the size of the screen of terminal device is bigger, the size of maximum temporary view is bigger, but the size of maximum temporary view The size of the screen of terminal device is not exceeded.
In some optional implementations of the present embodiment, if the size of temporary view is able to carry out adjustment, this When, above-mentioned executing subject can be determined show the candidate temporary view of information completely.Wherein, the content of information is more, The size of candidate temporary view is bigger.It is then possible to by that can be shown most on the size of candidate temporary view and terminal device The size of big temporary view is compared.Wherein, the size of maximum temporary view is determined by the size of the screen of terminal device, The size of the screen of terminal device is bigger, and the size of maximum temporary view is bigger.It is not more than in the size of candidate temporary view In the case where the size of maximum temporary view, terminal device can create candidate temporary view, as temporary view;Face in candidate When view size be greater than the size of maximum temporary view in the case where, terminal device can create maximum temporary view, as Temporary view.Wherein, when creating candidate temporary view as temporary view, information can be shown completely in temporary view On;When creating maximum temporary view as temporary view, information can not be shown in temporary view completely.
Step 203, determine whether information is shown in temporary view completely.
In the present embodiment, after creating temporary view, above-mentioned executing subject can determine whether information can be complete It is complete to show in temporary view, it can be shown completely in temporary view that information can be fixed exhibition in information Show in temporary view, is no longer rolled;It can not be shown completely in temporary view in information, execute step Rapid 204.
In some optional implementations of the present embodiment, if the size of temporary view is fixed, above-mentioned execution master The content for the information that can be shown in the content of information and maximum temporary view can be compared by body, if the content of information is more In the content for the information that can be shown in maximum temporary view, then information can not be shown in temporary view completely;Instead It, information can be shown in temporary view completely.
In some optional implementations of the present embodiment, if the size of temporary view is able to carry out adjustment, when When creating candidate temporary view as temporary view, information can be shown in temporary view completely;When creation is maximum interim When view is as temporary view, information can not be shown in temporary view completely.
Step 204, the current acceleration of gravity of terminal device is obtained.
In the present embodiment, it can not be shown completely in temporary view in information, above-mentioned executing subject The current acceleration of gravity of available terminal device.
In general, terminal device is built-in with accelerometer, accelerometer can be with the current acceleration of gravity of acquisition terminal equipment. Here acceleration of gravity can be a three-dimensional vector under terrestrial coordinate system.It is the terminal device of IOS with operating system For, terminal device can adjust the accelerometer current gravity collected obtained built in terminal device with the following method to accelerate Degree:
-(void)startAccelerometerUpdatesToQueue:(NSOperationQueue*)queue withHandler:(CMAccelerometerHandler)handler。
Step 205, rotating direction corresponding with current acceleration of gravity is determined.
In the present embodiment, above-mentioned executing subject can determine rolling corresponding with the current acceleration of gravity of terminal device Direction.
Here, above-mentioned executing subject can determine corresponding with the current acceleration of gravity of terminal device in several ways Rotating direction.
As an example, pair between acceleration of gravity range and rotating direction can be stored in advance in above-mentioned executing subject Answer relation table.It is rule of thumb pre-set that the mapping table can be those skilled in the art.At this point, above-mentioned executing subject Current acceleration of gravity can successively be matched with each acceleration of gravity range in mapping table first, if currently Acceleration of gravity is fallen within the scope of an acceleration of gravity, then current acceleration of gravity and the acceleration of gravity commensurate in scope at Function;Then rotating direction corresponding with the acceleration of gravity range is found out from mapping table, as with terminal device The corresponding rotating direction of current acceleration of gravity.
As another example, current acceleration of gravity can also be resolved into two preset directions by above-mentioned executing subject Divide acceleration of gravity.Wherein, above-mentioned executing subject can use space vector decomposition theorem and resolve into current acceleration of gravity Two preset directions divide acceleration of gravity;What the method for may call upon obtained two preset directions divides acceleration of gravity.With behaviour For making the terminal device that system is IOS, terminal device can be by adjusting obtain the direction x with the following method to divide acceleration of gravity Acceleration of gravity double y is divided in the direction double x and y:
Double x=accelerometerData.acceleration.x;
Double y=accelerometerData.acceleration.y.
Then, above-mentioned executing subject can divide the value for dividing acceleration of gravity of two preset directions resolved into Analysis, so that it is determined that rotating direction corresponding with the current acceleration of gravity of terminal device.As an example, above-mentioned executing subject can be with The mapping table divided between acceleration of gravity range and rotating direction of two preset directions is stored in advance.The mapping table It is rule of thumb pre-set to can be those skilled in the art.At this point, above-mentioned executing subject can be by resolved into two Preset direction be divided to acceleration of gravity and two preset directions in mapping table divide acceleration of gravity range successively to carry out Matching, if two preset directions resolved into are divided to what acceleration of gravity respectively fell in two preset directions to divide acceleration of gravity In range, is then found out from mapping table and divide the acceleration of gravity range corresponding rolling square with the two preset directions To rotating direction as corresponding with the current acceleration of gravity of terminal device.
Step 206, it is rolled in temporary view according to rotating direction and shows information.
In the present embodiment, after determining rotating direction corresponding with the current acceleration of gravity of terminal device, on Displaying information can be rolled according to the rotating direction determined in temporary view by stating executing subject, so that information can face When view on shown completely.
In some optional implementations of the present embodiment, the case where receiving the confirmation operation to temporary view Under, above-mentioned executing subject can close temporary view.In general, can serve to indicate that the confirmation operation of temporary view to interim view The information shown on figure is confirmed, can include but is not limited to clicking operation, slide, gesture operation etc..Example Such as, when user's browsing finishes the information shown in temporary view, the temporary view on the screen of terminal device can be clicked, this When, it is believed that user performs the confirmation operation to temporary view.
The embodiment of the present application also provides an application scenarios of the method for connecting wireless access point.User starts certain Shopping cart is added in oneself required article by shopping class application.Wherein, the required article of user includes 5 mobile phones, 3 TV and 2 refrigerators, mobile phone, TV, refrigerator unit price be 8888.80 yuan.When user settles accounts, the screen of terminal device The clearing page can be shown on curtain.The clearing page at this time can be as shown in Figure 3A, which includes showing settlement information View control, can specifically show as shown in 301, in view control has that " total: $88860 ... is vertical to be subtracted: 28 ... ".Due to knot The calculation information content is excessive, and the view control of displaying settlement information is undersized, leads to not show for user whole Settlement information, according to the settlement information currently shown in view control, user can not know that the total amount of this clearing is more It is few, can not also know that this settles accounts preferential amount of money is how many, it is even more impossible to know article that this is bought whether freight free.At this point, The view control that user can click on the clearing page can when terminal device receives clicking operation of the user to view control To obtain the settlement information shown in view control, it is created that the temporary view that can show settlement information completely, and be arranged The top of view control.The clearing page at this time can be as shown in Figure 3B, which includes the interim of displaying settlement information View, can specifically show and have as illustrated at 302, in temporary view " total: $88860.80 total amount: 88888.8 vertical subtract: 28.00 freight free ".Since the size of temporary view is sufficiently large, so settlement information can be shown in temporary view completely.If When the undersize of temporary view to show settlement information completely, temporary view can also scroll up and show settlement information, with Make to show settlement information in temporary view completely.
Method provided by the embodiments of the present application for showing information, is receiving the feelings to the confirmation operation of view control Under condition, the information shown in view control is obtained;The temporary view for showing acquired information is created later;Then determine Whether acquired information can be shown in temporary view completely;It can not be shown and faced completely in acquired information When view in the case where, obtain the current acceleration of gravity of terminal device;It is later determined that the current gravity with terminal device adds The corresponding rotating direction of speed shows acquired letter to realize to roll in temporary view according to identified rotating direction Breath.It is adjusted since the display area of temporary view can according to need, while temporary view can also roll displaying information, Therefore, how much is the content for the information for no matter needing to show, can create matched temporary view, so that information is complete It shows in temporary view, is imbued with pointedly information displaying to realize.
With further reference to Fig. 4, it illustrates according to another embodiment of the method for showing information of the application Process 400.The method for being used to show information, is applied to terminal device, comprising the following steps:
Step 401, in response to receiving the confirmation operation to view control, the information shown in view control is obtained.
Step 402, according to information, temporary view is created.
Step 403, determine whether information is shown in temporary view completely.
Step 404, the current acceleration of gravity of terminal device is obtained.
In the present embodiment, the behaviour of the concrete operations of step 401-404 and step 201-204 in embodiment shown in Fig. 2 Make essentially identical, details are not described herein.
Step 405, current acceleration of gravity is resolved into point weight in the horizontally-parallel direction with the screen of terminal device Acceleration of gravity is divided in power acceleration and the direction parallel with the longitudinal direction of the screen of terminal device.
In the present embodiment, above-mentioned executing subject can resolve into current acceleration of gravity and the screen of terminal device Horizontally-parallel direction divide acceleration of gravity and the direction parallel with the longitudinal direction of the screen of terminal device divide acceleration of gravity. Current acceleration of gravity is decomposed in general, above-mentioned executing subject can use space vector decomposition theorem;It may call upon Method decomposes current acceleration of gravity.As an example, above-mentioned executing subject can determine current acceleration of gravity first The projection in plane where screen in terminal device, then using space vector decomposition theorem by Projective decomposition at terminal Acceleration of gravity and the direction parallel with the longitudinal direction of the screen of terminal device are divided in the horizontally-parallel direction of the screen of equipment Divide acceleration of gravity.Wherein, if the direction for dividing gravity to accelerate in the horizontally-parallel direction with the screen of terminal device is directed toward eventually The right side of the screen of end equipment, then the value for dividing gravity to accelerate in the horizontally-parallel direction with the screen of terminal device is positive number; If the left side of the screen of terminal device is directed toward in the direction for dividing gravity to accelerate in the horizontally-parallel direction with the screen of terminal device, Then the value for dividing gravity to accelerate in the horizontally-parallel direction with the screen of terminal device is negative;If with the screen of terminal device The top of the screen of terminal device is directed toward in the direction for dividing gravity to accelerate in longitudinal parallel direction, then with the screen of terminal device The value for dividing gravity to accelerate in longitudinal parallel direction is positive number;If point weight in the direction parallel with the longitudinal direction of the screen of terminal device The lower section of the screen of terminal device is directed toward in the direction that power accelerates, then point weight in the direction parallel with the longitudinal direction of the screen of terminal device The value that power accelerates is negative.
Step 406, it determines absolute with the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen of terminal device Whether value is greater than the absolute value of the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of terminal device.
In the present embodiment, above-mentioned executing subject can calculate the horizontally-parallel direction with the screen of terminal device first The value for dividing acceleration of gravity absolute value and the direction parallel with the longitudinal direction of the screen of terminal device divide acceleration of gravity The absolute value of value;Then by the absolute value of the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen with terminal device and The absolute value for dividing the value of acceleration of gravity in the direction parallel with the longitudinal direction of the screen of terminal device is compared, if setting with terminal The absolute value of the value for dividing acceleration of gravity in the horizontally-parallel direction of standby screen is greater than the longitudinal direction with the screen of terminal device The absolute value of the value for dividing acceleration of gravity in parallel direction, thens follow the steps 407;Conversely, executing step 410.
Step 407, whether determination is big with the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen of terminal device In the first preset threshold.
In the present embodiment, the horizontally-parallel direction of the screen with terminal device the value for dividing acceleration of gravity it is exhausted In the case where the absolute value for being greater than the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of terminal device to value, on Stating executing subject can divide the value of acceleration of gravity to preset with first in the horizontally-parallel direction of the screen with terminal device Threshold value is compared, and if more than the first preset threshold, thens follow the steps 408;Conversely, executing step 409.Wherein, first is default Threshold value can be those skilled in the art's rule of thumb pre-set numerical value.Under normal conditions, the first preset threshold is zero.
Step 408, determine that rotating direction corresponding with the current acceleration of gravity of terminal device is indicated to terminal device The right side of screen rolls.
In the present embodiment, the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen with terminal device is greater than In the case where first preset threshold, above-mentioned executing subject can determine rolling corresponding with the current acceleration of gravity of terminal device Direction instruction is rolled to the right side of the screen of terminal device.
Step 409, determine that rotating direction corresponding with the current acceleration of gravity of terminal device is indicated to terminal device The left side of screen rolls.
In the present embodiment, the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen with terminal device is little In the case where the first preset threshold, above-mentioned executing subject can determine rolling corresponding with the current acceleration of gravity of terminal device The left side of screen of the dynamic direction instruction to terminal device rolls.
Step 410, determine whether the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of terminal device is big In the second preset threshold.
In the present embodiment, the horizontally-parallel direction of the screen with terminal device the value for dividing acceleration of gravity it is exhausted In the case where to absolute value of the value no more than the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of terminal device, Above-mentioned executing subject can be pre- with second by the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of terminal device If threshold value is compared, if the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of terminal device is greater than second in advance If threshold value thens follow the steps 411;Conversely, executing step 412.Wherein, the second preset threshold can be those skilled in the art's root According to the pre-set numerical value of experience.Under normal conditions, the second preset threshold is zero.
Step 411, determine that rotating direction corresponding with the current acceleration of gravity of terminal device is indicated to terminal device The scrolls beneath of screen.
In the present embodiment, the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of terminal device is greater than In the case where second preset threshold, above-mentioned executing subject can determine rolling corresponding with the current acceleration of gravity of terminal device Screen from direction instruction to terminal device scrolls beneath.
Step 412, determine that rotating direction corresponding with the current acceleration of gravity of terminal device is indicated to terminal device The top of screen rolls.
In the present embodiment, the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of terminal device is little In the case where the second preset threshold, above-mentioned executing subject can determine rolling corresponding with the current acceleration of gravity of terminal device The top of screen of the dynamic direction instruction to terminal device rolls.
Step 413, it is rolled in temporary view according to rotating direction and shows information.
In the present embodiment, the basic phase of operation of the concrete operations of step 413 and step 206 in embodiment shown in Fig. 2 Together, details are not described herein.
Figure 4, it is seen that the method for showing information compared with the corresponding embodiment of Fig. 2, in the present embodiment Process 400 highlight determine rotating direction corresponding with current acceleration of gravity the step of.The side of the present embodiment description as a result, Case rolls in temporary view according to rotating direction corresponding with acceleration of gravity and shows information.To allow user to pass through letter It tilts terminal device singly to control information to specified direction and roll, is highly convenient for user's operation.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind for showing letter One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the device 500 for showing information of the present embodiment may include: first acquisition unit 501, wound Build unit 502, the first determination unit 503, second acquisition unit 504, the second determination unit 505 and display unit 506.Wherein, First acquisition unit 501 is configured in response to receive the confirmation operation to view control, show in acquisition view control Information;Creating unit 502 is configured to create temporary view according to information, wherein temporary view is for showing information;First Determination unit 503, is configured to determine whether information is shown in temporary view completely;Second acquisition unit 504, is configured At in response to determining that information is not shown in temporary view completely, the current acceleration of gravity of terminal device is obtained;Second Determination unit 505 is configured to determine rotating direction corresponding with the current acceleration of gravity of terminal device;Display unit 506, It is configured to roll in temporary view according to rotating direction and shows information.
In the present embodiment, in the device 500 for showing information: acquiring unit 501, creating unit 502, first determine The specific processing and its brought skill of unit 503, second acquisition unit 504, the second determination unit 505 and display unit 506 Art effect can be respectively with reference to step 201, step 202, step 203, step 204, step 205 and the step in Fig. 2 corresponding embodiment Rapid 206 related description, details are not described herein.
In some optional implementations of the present embodiment, creating unit 502 can be further configured to: determine energy Enough candidate temporary views for showing information completely;The maximum that can be shown on the size of candidate temporary view and terminal device is faced When view size be compared;If the size of candidate temporary view is not more than the size of maximum temporary view, creation candidate faces When view, as temporary view;If the size of candidate temporary view is greater than the size of maximum temporary view, maximum interim view is created Figure, as temporary view.
In some optional implementations of the present embodiment, the second determination unit 505 may include: decomposition subelement (not shown), be configured to resolve into current acceleration of gravity two preset directions divides acceleration of gravity;Determine son Unit (not shown) is configured to analyze the value for dividing acceleration of gravity of two preset directions resolved into, Determine rotating direction corresponding with the current acceleration of gravity of terminal device.
In some optional implementations of the present embodiment, two preset directions may include the screen with terminal device Horizontally-parallel direction and the direction parallel with the longitudinal direction of the screen of terminal device;And determine that subelement may include: the One determining module (not shown), be configured to determine the horizontally-parallel direction with the screen of terminal device divides gravity to add Whether the absolute value of the value of speed is greater than the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of terminal device Absolute value;Second determining module (not shown) is configured in response to determining horizontally-parallel with the screen of terminal device The absolute value of the value for dividing acceleration of gravity in direction be greater than the direction parallel with the longitudinal direction of the screen of terminal device and divide gravity The absolute value of the value of acceleration, whether the value for dividing acceleration of gravity in the horizontally-parallel direction of determining and terminal device screen Greater than the first preset threshold, if more than the first preset threshold, it is determined that rolling corresponding with the current acceleration of gravity of terminal device The right side of screen of the dynamic direction instruction to terminal device rolls, if being not more than the first preset threshold, it is determined that with terminal device The current corresponding rotating direction of acceleration of gravity indicates to roll to the left side of the screen of terminal device.
In some optional implementations of the present embodiment, determine that subelement can also include: third determining module (figure In be not shown), be configured in response to determining divide acceleration of gravity with the horizontally-parallel direction of the screen of terminal device The absolute value of value is not more than the absolute value of the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of terminal device, really Whether the value for dividing acceleration of gravity in the fixed direction parallel with the longitudinal direction of the screen of terminal device is greater than the second preset threshold, if greatly In the second preset threshold, it is determined that rotating direction corresponding with the current acceleration of gravity of terminal device is indicated to terminal device The scrolls beneath of screen, if being not more than the second preset threshold, it is determined that rolling corresponding with the current acceleration of gravity of terminal device The top of screen of the dynamic direction instruction to terminal device rolls.
In some optional implementations of the present embodiment, for showing that the device 500 of information can also include: to close Unit (not shown) is configured in response to receive the confirmation operation to temporary view, closes temporary view.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the terminal device for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Terminal device shown in Fig. 6 is only an example, function to the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer-readable medium either the two any combination.Computer-readable medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example of machine readable medium can include but is not limited to: electrical connection, portable meter with one or more conducting wires Calculation machine disk, hard disk, random access storage device (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 The above-mentioned any appropriate combination of person.In this application, computer-readable medium, which can be, any includes or storage program has Shape medium, the program can be commanded execution system, device or device use or in connection.And in the application In, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, wherein Carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to electric Magnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Jie Any computer-readable medium other than matter, the computer-readable medium can be sent, propagated or transmitted for being held by instruction Row system, device or device use or program in connection.The program code for including on computer-readable medium It can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. or above-mentioned any conjunction Suitable combination.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof Machine program code, described program design language include object-oriented programming language-such as Java, Smalltalk, C+ +, further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include first acquisition unit, creating unit, the first determination unit, second acquisition unit, the second determination unit and display unit.Its In, the title of these units does not constitute the restriction to the unit itself under certain conditions, for example, first acquisition unit may be used also To be described as " in response to receiving the confirmation operation to view control, obtaining the unit of the information shown in view control ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in terminal device described in above-described embodiment;It is also possible to individualism, and without in the supplying terminal device. Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are held by the terminal device When row, so that the terminal device: in response to receiving the confirmation operation to view control, obtaining the letter shown in view control Breath;According to information, temporary view is created, wherein temporary view is for showing information;It determines whether information is shown completely facing When view on;In response to determining that information is not shown in temporary view completely, the current gravity for obtaining terminal device accelerates Degree;Determine rotating direction corresponding with current acceleration of gravity;It is rolled in temporary view according to rotating direction and shows information.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (14)

1. a kind of method for showing information is applied to terminal device, comprising:
In response to receiving the confirmation operation to view control, the information shown in the view control is obtained;
According to the information, temporary view is created, wherein the temporary view is for showing the information;
Determine whether the information is shown in the temporary view completely;
It is not shown in the temporary view completely in response to the determination information, obtains the current weight of the terminal device Power acceleration;
Determining rotating direction corresponding with the current acceleration of gravity;
It is rolled in the temporary view according to the rotating direction and shows the information.
2. it is described according to the information according to the method described in claim 1, wherein, create temporary view, comprising:
It is determined to show the candidate temporary view of the information completely;
The size for the maximum temporary view that can be shown on the size of the candidate temporary view and the terminal device is carried out Compare;
If the size of candidate's temporary view creates the candidate interim view no more than the size of the maximum temporary view Figure, as temporary view;
If the size of candidate's temporary view is greater than the size of the maximum temporary view, the maximum temporary view is created, As temporary view.
3. according to the method described in claim 1, wherein, determination rolling square corresponding with the current acceleration of gravity To, comprising:
Divide acceleration of gravity for what the current acceleration of gravity resolved into two preset directions;
The value for dividing acceleration of gravity of two preset directions resolved into is analyzed, determination is worked as with the terminal device The corresponding rotating direction of preceding acceleration of gravity.
4. according to the method described in claim 3, wherein, described two preset directions include the screen with the terminal device Horizontally-parallel direction and the direction parallel with the longitudinal direction of the screen of the terminal device;And
The value for dividing acceleration of gravity to resolved into two preset directions is analyzed, the determining and terminal device The corresponding rotating direction of current acceleration of gravity, comprising:
Whether determination is big with the absolute value of the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen of the terminal device In the absolute value of the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of the terminal device;
In response to the determining absolute value with the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen of the terminal device The absolute value of the value for dividing acceleration of gravity in the direction parallel greater than with the longitudinal direction of the screen of the terminal device, it is determining with it is described Whether the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen of terminal device is greater than the first preset threshold, if more than institute State the first preset threshold, it is determined that rotating direction corresponding with the current acceleration of gravity of the terminal device was indicated to the end The right side of the screen of end equipment rolls, if being not more than first preset threshold, it is determined that the current weight with the terminal device The corresponding rotating direction of power acceleration indicates to roll to the left side of the screen of the terminal device.
It is described to divide acceleration of gravity to resolved into two preset directions 5. according to the method described in claim 4, wherein Value analyzed, determine corresponding with the current acceleration of gravity of terminal device rotating direction, further includes:
In response to the determining absolute value with the value for dividing acceleration of gravity in the horizontally-parallel direction of the screen of the terminal device The absolute value of the value for dividing acceleration of gravity in the direction parallel no more than with the longitudinal direction of the screen of the terminal device, determining and institute Whether the value for dividing acceleration of gravity for stating the parallel direction in longitudinal direction of the screen of terminal device is greater than the second preset threshold, if more than Second preset threshold, it is determined that rotating direction corresponding with the current acceleration of gravity of the terminal device is indicated to described The scrolls beneath of the screen of terminal device, if being not more than second preset threshold, it is determined that current with the terminal device The corresponding rotating direction of acceleration of gravity indicates to roll to the top of the screen of the terminal device.
6. method described in one of -5 according to claim 1, wherein the method also includes:
In response to receiving the confirmation operation to the temporary view, the temporary view is closed.
7. it is a kind of for showing the device of information, it is set to terminal device, comprising:
First acquisition unit is configured in response to receive the confirmation operation to view control, obtain in the view control The information of displaying;
Creating unit is configured to create temporary view according to the information, wherein the temporary view is described for showing Information;
First determination unit, is configured to determine whether the information is shown in the temporary view completely;
Second acquisition unit is configured in response to determine that the information is not shown in the temporary view completely, obtain Take the current acceleration of gravity of the terminal device;
Second determination unit is configured to determine rotating direction corresponding with the current acceleration of gravity;
Display unit is configured to roll the displaying information in the temporary view according to the rotating direction.
8. device according to claim 7, wherein the creating unit is further configured to:
It is determined to show the candidate temporary view of the information completely;
The size for the maximum temporary view that can be shown on the size of the candidate temporary view and the terminal device is carried out Compare;
If the size of candidate's temporary view creates the candidate interim view no more than the size of the maximum temporary view Figure, as temporary view;
If the size of candidate's temporary view is greater than the size of the maximum temporary view, the maximum temporary view is created, As temporary view.
9. device according to claim 7, wherein second determination unit includes:
Subelement is decomposed, be configured to resolve into the current acceleration of gravity two preset directions divides acceleration of gravity;
It determines subelement, is configured to analyze the value for dividing acceleration of gravity of two preset directions resolved into, really Fixed rotating direction corresponding with the current acceleration of gravity of the terminal device.
10. device according to claim 9, wherein described two preset directions include the screen with the terminal device Horizontally-parallel direction and the direction parallel with the longitudinal direction of the screen of the terminal device;And
The determining subelement includes:
First determining module, be configured to determine the horizontally-parallel direction with the screen of the terminal device divides gravity to accelerate Whether the absolute value of the value of degree is greater than the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of the terminal device Absolute value;
Second determining module is configured in response to the determining point weight with the horizontally-parallel direction of the screen of the terminal device The absolute value of the value of power acceleration is greater than the acceleration of gravity that divides in the direction parallel with the longitudinal direction of the screen of the terminal device Whether the absolute value of value, the determining value for dividing acceleration of gravity with the horizontally-parallel direction of the screen of the terminal device are greater than First preset threshold, if more than first preset threshold, it is determined that corresponding with the current acceleration of gravity of the terminal device Rotating direction indicate to the right side of the screen of the terminal device roll, if be not more than first preset threshold, it is determined that Rotating direction corresponding with the current acceleration of gravity of the terminal device indicates to roll to the left side of the screen of the terminal device It is dynamic.
11. device according to claim 10, wherein the determining subelement further include:
Third determining module is configured in response to the determining point weight with the horizontally-parallel direction of the screen of the terminal device The absolute value of the value of power acceleration divides acceleration of gravity no more than the direction parallel with the longitudinal direction of the screen of the terminal device Value absolute value, determine whether the value for dividing acceleration of gravity in the direction parallel with the longitudinal direction of the screen of the terminal device big In the second preset threshold, if more than second preset threshold, it is determined that the current acceleration of gravity pair with the terminal device The rotating direction answered indicates the scrolls beneath of the screen to the terminal device, if being not more than second preset threshold, really Fixed rotating direction corresponding with the current acceleration of gravity of the terminal device indicates the top of the screen to the terminal device It rolls.
12. the device according to one of claim 7-11, wherein described device further include:
Closing unit is configured in response to receive the confirmation operation to the temporary view, closes the temporary view.
13. a kind of terminal device, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, wherein the computer program is held by processor Such as method as claimed in any one of claims 1 to 6 is realized when row.
CN201810376837.4A 2018-04-25 2018-04-25 Method and apparatus for showing information Pending CN110399059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810376837.4A CN110399059A (en) 2018-04-25 2018-04-25 Method and apparatus for showing information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810376837.4A CN110399059A (en) 2018-04-25 2018-04-25 Method and apparatus for showing information

Publications (1)

Publication Number Publication Date
CN110399059A true CN110399059A (en) 2019-11-01

Family

ID=68322080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810376837.4A Pending CN110399059A (en) 2018-04-25 2018-04-25 Method and apparatus for showing information

Country Status (1)

Country Link
CN (1) CN110399059A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111259291A (en) * 2020-01-19 2020-06-09 北京无限光场科技有限公司 View display method and device and electronic equipment
CN112214155A (en) * 2020-06-09 2021-01-12 北京沃东天骏信息技术有限公司 View information playing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156555A (en) * 2011-03-08 2011-08-17 惠州Tcl移动通信有限公司 Page browsing method and electronic equipment using same
KR20120119844A (en) * 2011-04-22 2012-10-31 엘지전자 주식회사 Mobile termial and method for displaying webpage thereof
CN105302428A (en) * 2014-07-29 2016-02-03 腾讯科技(深圳)有限公司 Social network-based dynamic information display method and device
CN106446042A (en) * 2016-08-31 2017-02-22 上海银天下科技有限公司 Information display method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156555A (en) * 2011-03-08 2011-08-17 惠州Tcl移动通信有限公司 Page browsing method and electronic equipment using same
KR20120119844A (en) * 2011-04-22 2012-10-31 엘지전자 주식회사 Mobile termial and method for displaying webpage thereof
CN105302428A (en) * 2014-07-29 2016-02-03 腾讯科技(深圳)有限公司 Social network-based dynamic information display method and device
CN106446042A (en) * 2016-08-31 2017-02-22 上海银天下科技有限公司 Information display method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111259291A (en) * 2020-01-19 2020-06-09 北京无限光场科技有限公司 View display method and device and electronic equipment
CN111259291B (en) * 2020-01-19 2024-01-30 北京有竹居网络技术有限公司 View display method and device and electronic equipment
CN112214155A (en) * 2020-06-09 2021-01-12 北京沃东天骏信息技术有限公司 View information playing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109460513A (en) Method and apparatus for generating clicking rate prediction model
CN110827378A (en) Virtual image generation method, device, terminal and storage medium
CN109981787B (en) Method and device for displaying information
CN110298906A (en) Method and apparatus for generating information
CN109993150A (en) The method and apparatus at age for identification
CN110378474A (en) Fight sample generating method, device, electronic equipment and computer-readable medium
CN112015314B (en) Information display method and device, electronic equipment and medium
CN109408754B (en) Webpage operation data processing method and device, electronic equipment and storage medium
CN109255337A (en) Face critical point detection method and apparatus
CN109918530A (en) Method and apparatus for pushing image
CN110275659A (en) A kind of image switching method, device, electronic equipment and storage medium
CN110213614A (en) The method and apparatus of key frame are extracted from video file
CN109582317B (en) Method and apparatus for debugging hosted applications
CN109902446A (en) Method and apparatus for generating information prediction model
CN110059623A (en) Method and apparatus for generating information
KR20200113750A (en) Method and system for presenting conversation thread
CN111597466A (en) Display method and device and electronic equipment
CN110070076A (en) Method and apparatus for choosing trained sample
CN107766106B (en) The method and apparatus for generating configuration file
CN109992177A (en) User interaction approach, system, electronic equipment and the computer media of electronic equipment
CN110399059A (en) Method and apparatus for showing information
CN110163001A (en) Information display method and device based on customer relationship
CN109829431A (en) Method and apparatus for generating information
CN108121581B (en) User interface for self-learning
CN109829117A (en) Method and apparatus for pushed information

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