CN105975199A - Method and device for displaying prompt box - Google Patents
Method and device for displaying prompt box Download PDFInfo
- Publication number
- CN105975199A CN105975199A CN201610267135.3A CN201610267135A CN105975199A CN 105975199 A CN105975199 A CN 105975199A CN 201610267135 A CN201610267135 A CN 201610267135A CN 105975199 A CN105975199 A CN 105975199A
- Authority
- CN
- China
- Prior art keywords
- prompting frame
- original position
- height
- final position
- module
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a method and a device for displaying a prompt box. The method comprises the following steps: detecting a selection area in a page; obtaining the initial position and the end position of the selection area in the page; and according to a position relationship between the initial position and the end position and the height of the prompt box, determining the display position of the prompt box. Since the initial position and the end position of the selection and the height of the prompt box are considered, the technical scheme can prevent the displayed prompt box from blocking parts except the selection area as much as possible.
Description
Technical field
It relates to message area, the method and apparatus particularly relating to display reminding frame.
Background technology
Along with the development of intelligent terminal's technology, increasing people use intelligent terminal carry out social activity,
Learn, work, amusement etc..Such as, user often can browse webpage, e-book, installation on mobile phone
The word in APP (application) in mobile phone, picture etc..User is for the word browsed, image etc.
Object, it is also possible to carry out replicating, the operation such as shearing.Generally, after user have selected one section of text, selected
Text filed meeting highlighted, there will be the prompting frame of a suspension window form simultaneously, prompting frame includes
Can be to the selected text filed operation carried out.The prompting frame of display may shelter from user to be needed to make
Other regions, be such as positioned at the input method region of bottom of screen, this will affect the input of user.
Summary of the invention
Disclosure embodiment provides the method and apparatus of a kind of display reminding frame.Described technical scheme is as follows:
First aspect according to disclosure embodiment, it is provided that a kind of method of display reminding frame, including:
Selection region in the detection page;
Obtain described operation and select region original position in the described page and final position;
According to the position relationship between described original position and described final position and the height of described prompting frame
Degree, determines the display position of described prompting frame.
Optionally, described according to the position relationship between described original position and described final position and institute
State the height of prompting frame, determine the display position of described prompting frame, including:
Determine that described original position and/or described final position are the most visible on screen;
If described original position is invisible on screen, use the tip position of the visible part selecting region
Replace described original position;
If described final position is invisible on screen, use the bottom position of the visible part selecting region
Replace described final position.
Optionally, described according to the position relationship between described original position and described final position and institute
State the height of prompting frame, determine the display position of described prompting frame, including:
When can accommodate described prompting frame between described original position and described final position, at described
Described prompting frame is shown between beginning position and described final position.
It is optionally, described when accommodating default prompting frame between described original position and described final position,
Described prompting frame is shown between described original position and described final position, including:
Calculate the first vertical dimension between described original position and described final position;
If described first vertical dimension is more than the height of described prompting frame, at described original position and described end
Stop bit shows described prompting frame between putting.
Optionally, described according to the position relationship between described original position and described final position and institute
State the height of prompting frame, determine the display position of described prompting frame, also include:
Obtain the second vertical dimension between described original position and the top of screen;
If described second vertical dimension is more than the height of described prompting frame, aobvious above described original position
Show described prompting frame;
The first vertical dimension between the described original position of described calculating and described final position, including:
If described second vertical dimension is less than the height of described prompting frame, calculate described original position and described
The first vertical dimension between final position.
Optionally, described according to the position relationship between described original position and described final position and institute
State the height of prompting frame, determine the display position of described prompting frame, also include:
If described first vertical dimension is less than the height of described prompting frame, aobvious in the lower section of described final position
Show described prompting frame.
Optionally, described according to the position relationship between described original position and described final position and institute
State the height of prompting frame, determine the display position of described prompting frame, also include:
According to the corresponding relation of predeterminable area Yu prompting frame height, determine the prompting that described selection region is corresponding
Frame height;
The prompting frame height that acquisition determines is as the height of described prompting frame.
Second aspect according to disclosure embodiment, it is provided that the device of a kind of display reminding frame, including:
Detection module, for detecting the selection region in the page;
Acquisition module, for obtaining selection region the rising in the described page that described detection module detects
Beginning position and final position;
Determine module, for the described original position that obtains according to described acquisition module and described final position it
Between position relationship and the height of described prompting frame, determine the display position of described prompting frame.
Optionally, described determine that module also includes:
First determines submodule, for determining described original position that described acquisition module obtains and/or described
Final position is the most visible on screen;
First processes submodule, if determining that submodule determines that described original position is at screen for described first
Upper invisible, use the tip position of the visible part selecting region to replace described original position;
Second processes submodule, if determining that submodule determines that described final position is at screen for described first
Upper invisible, use the bottom position of the visible part selecting region to replace described final position.
Optionally, described determine module, also include:
First display sub-module, for the described original position obtained when described acquisition module and described termination
When can accommodate described prompting frame between position, show between described original position and described final position
Described prompting frame.
Optionally, described determine module, also include:
First calculating sub module, for calculating described original position and the described end that described acquisition module obtains
Stop bit put between the first vertical dimension;
Described first display sub-module, hangs down if being additionally operable to described the first of described first calculating sub module calculating
Straight distance, more than the height of described prompting frame, shows institute between described original position and described final position
State prompting frame.
Optionally, described determine module, also include:
Second calculating sub module, for calculating described original position and the screen that described acquisition module obtains
The second vertical dimension between top;
Second display sub-module, if described second vertical dimension calculated for described second calculating sub module
More than the height of described prompting frame, at the displayed above described prompting frame of described original position;
Described first calculating sub module, hangs down if being additionally operable to described the second of described second calculating sub module calculating
Straight distance less than the height of described prompting frame, calculates the between described original position and described final position
One vertical dimension.
Optionally, described determine module, also include:
3rd display sub-module, if described first vertical dimension calculated for described first calculating sub module
Less than the height of described prompting frame, show described prompting frame in the lower section of described final position.
Optionally, described determine module, also include:
Second determines submodule, for the corresponding relation according to predeterminable area Yu prompting frame height, determines institute
That states that detection module detects selects prompting frame height corresponding to region;
Obtain submodule, determine that prompting frame height that submodule determines is as described for obtaining described second
The height of prompting frame.
The third aspect according to disclosure embodiment, it is provided that the device of a kind of display reminding frame, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Selection region in the detection page;
Obtain described selection region original position in the described page and final position;
According to the position relationship between described original position and described final position and the height of described prompting frame
Degree, determines the display position of described prompting frame.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
Technique scheme, by select region original position and final position between position relationship with
And the height of prompting frame, determine the display position of prompting frame.It is contemplated that select the initial of region
Position and final position and the height of prompting frame, therefore, the technical program can be avoided as much as showing
The part selected beyond region is caused and blocks by the prompting frame shown.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe
, the disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet these public affairs
The embodiment opened, and for explaining the principle of the disclosure together with description.
Fig. 1 is the flow chart of the method according to the display reminding frame shown in an exemplary embodiment.
Fig. 2 is the schematic diagram after exemplary user selects a certain region in the page.
Fig. 3 is the schematic diagram of display reminding frame in exemplary selection region in fig. 2.
Fig. 4 is the flow chart of the method according to the display reminding frame shown in another exemplary embodiment.
Fig. 5 is the flow chart of the method according to the display reminding frame shown in another exemplary embodiment.
Fig. 6 is that the tip position of the exemplary visible part using selection region is to replace original position
Schematic diagram.
Fig. 7 is that the bottom position of the exemplary visible part using selection region is to replace final position
Schematic diagram.
Fig. 8 is the flow chart of the method according to the display reminding frame shown in another exemplary embodiment.
Fig. 9 is the schematic diagram of the prompting frame displayed above in the original position selecting region.
Figure 10 is the block diagram of the device according to the display reminding frame shown in an exemplary embodiment.
Figure 11 is the acquisition module in the device according to the display reminding frame shown in another exemplary embodiment
Block diagram.
Figure 12 is cover half block really in the device according to the display reminding frame shown in another exemplary embodiment
Block diagram.
Figure 13 is cover half block really in the device according to the display reminding frame shown in another exemplary embodiment
Block diagram.
Figure 14 is cover half block really in the device according to the display reminding frame shown in another exemplary embodiment
Block diagram.
Figure 15 is cover half block really in the device according to the display reminding frame shown in another exemplary embodiment
Block diagram.
Figure 16 is cover half block really in the device according to the display reminding frame shown in another exemplary embodiment
Block diagram.
Figure 17 is the block diagram according to the terminal unit shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following
When description relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous
Key element.Embodiment described in following exemplary embodiment does not represent the institute consistent with the disclosure
There is embodiment.On the contrary, they only with as appended claims describes in detail, the one of the disclosure
The example of the apparatus and method that a little aspects are consistent.
Disclosure embodiment provide technical scheme, relate to terminal unit, such as can include smart mobile phone,
Panel computer, notebook computer, desktop computer.
Fig. 1 is the flow chart of the method according to a kind of display reminding frame shown in an exemplary embodiment, such as figure
Shown in 1, method in the terminal unit, comprises the following steps S11-S13:
In step s 11, the selection region in the detection page.
Such as, when user's predetermined registration operation in the page being detected, then the selection district in the page detected
Territory.User's predetermined registration operation in the page can be such as to touch region to be selected preset duration, click light
Cursor position arranges original position and the final position etc. selecting region.
In step s 12, this selection region original position in the page and final position are obtained.
It is illustrated in figure 2 the schematic diagram after user selects a certain region 202 in the page 201, can be by
Select region 202 to be highlighted, and also mark A and the stop bit of original position can be demonstrated
Mark B put.
In step s 13, according to the position relationship between original position and final position and prompting frame
Highly, the display position of prompting frame is determined.
Such as, when can accommodate prompting frame between original position and final position, at original position and end
Stop bit put between display reminding frame.Vertical dimension between original position and final position is more than prompting frame
Height time, then confirm to accommodate prompting frame between original position and final position.
It is illustrated in figure 3 the schematic diagram of display reminding frame in exemplary selection region in fig. 2.As
Shown in Fig. 3, prompting frame 203 shows in selecting region 202.Prompting frame 203 may be configured to
To the operation selecting region 202 to carry out, such as, include duplication, forwarding, Quan Xuan etc..
In other embodiments of the disclosure, the zones of different in the different pages can corresponding different prompting
Frame.Such as, region can be the region of literal type, the region of picture/mb-type, word and picture mixing
Region.The region correspondence prompting frame 1 of literal type, the region correspondence prompting frame 2 of picture/mb-type, word
The corresponding prompting frame in region 3 with picture mixing.Prompting frame 1, prompting frame 2, prompting frame 3 can include
Different operations.Different prompting frames can also have different height.Therefore, when display reminding frame,
The prompting frame selecting region corresponding can be determined according to the corresponding relation in default region Yu prompting frame height
Highly;The prompting frame height that acquisition determines is as the height of prompting frame to be shown.
In another embodiment of the disclosure, it is judged that whether can accommodate between original position and final position
The prompting frame preset, as shown in Figure 4, can use following steps:
In step S131, calculate the first vertical dimension between original position and final position.
In step S132, if the first vertical dimension is more than the height of prompting frame, in original position and
Display reminding frame between final position.
Show between original position and the final position selecting region by will be prompted to frame, it is achieved that will carry
Show that frame shows in selecting region.So, the prompting frame of display will not be to the part selected beyond region
Cause and block, it is to avoid make troubles for user.
In the present embodiment, by select region original position and final position between position relationship and
The height of prompting frame, determines the display position of prompting frame.It is contemplated that select the start bit in region
Putting the height with final position and prompting frame, therefore, the technical program can be avoided as much as display
Prompting frame block selecting the part beyond region to cause.
Sometimes, when user selects region in the page, may also can the scroll-up/down page, bigger to select
Region, now, due to the rolling of the page, the initial position and/or the final position that are marked on the page can
Can be invisible on screen;Or, after user selects region in the page, also can the scroll-up/down page
Checking, this will also result in, and the initial position being marked on the page and/or final position may be at screens
Upper invisible.In another embodiment of the disclosure, can effectively solve above-mentioned technical problem.Such as figure
It is the flow chart of method according to a kind of display reminding frame shown in another exemplary embodiment shown in 5, should
Method may comprise steps of:
In step s 51, the selection region in the detection page.
In step S52, obtain this selection region original position in the page and final position.
In step S53, determine that original position is the most visible on screen;If so, step S55 is performed;
If it is not, perform step S54.
In step S54, the tip position of the visible part selecting region is used to replace original position, so
Rear execution step S55.
As shown in Figure 6, invisible owing to the page scrolls up when mark A of the original position in Fig. 2
Time, use the tip position A ' of the visible part selecting region 202 to replace original position A.
In step S55, determine that final position is the most visible on screen;If so, step S57 is performed;
If it is not, perform step S56.
In step S56, the bottom position of the visible part selecting region is used to replace final position, so
Rear execution step S57.
As it is shown in fig. 7, when mark B of the final position in Fig. 2 is invisible owing to the page scrolls down through
Time, use the tip position B ' of the visible part selecting region 202 to replace B.
In step S57, if default prompting frame can be accommodated between original position and final position,
Display reminding frame between original position and final position.
In another embodiment of the disclosure, preferentially can select the prompting frame displayed above in region,
When the superjacent air space selecting region is not enough to display reminding frame, display reminding frame in selecting region.As
It is the flow chart of method according to a kind of display reminding frame shown in another exemplary embodiment shown in Fig. 8,
The method may comprise steps of:
Selection region in step S81, in the detection page.
In step S82, obtain this selection region original position in the page and final position.
In step S83, obtain vertical dimension D1 between original position and the top of screen.
In step S84, it is judged that whether vertical dimension D1 is more than the height of prompting frame;If so, perform
Step S85;If it is not, perform step S86.
In step S85, at the prompting frame displayed above of original position.
As it is shown in figure 9, at the prompting frame displayed above of original position A selecting region 202.
In a step s 86, vertical dimension D2 between original position and final position is calculated.
In step S87, it is judged that whether vertical dimension D2 is more than the height of prompting frame;If so, perform
Step S88;If it is not, perform step S89.
In step S88, display reminding frame between original position and final position.Such as above-mentioned Fig. 3 institute
Show.
In step S89, at the lower section display reminding frame of final position.
Following for disclosure device embodiment, may be used for performing method of disclosure embodiment.
Figure 10 is the block diagram of the device according to a kind of display reminding frame shown in an exemplary embodiment, this dress
Put can pass through software, hardware or both be implemented in combination with become the some or all of of electronic equipment.
As shown in Figure 10, the device of this display reminding frame includes:
Detection module 101, is configured to detect the selection region in the page;
Such as, when user's predetermined registration operation in the page being detected, then the selection district in the page detected
Territory.User's predetermined registration operation in the page can be such as to touch region to be selected preset duration, click light
Cursor position arranges original position and the final position etc. selecting region.
Acquisition module 102, is configured to obtain the selection region that detects of detection module 101 in the page
Original position and final position;
It is illustrated in figure 2 the schematic diagram after user selects a certain region 202 in the page 201, can be by
Selected areas 202 is highlighted, and also can demonstrate mark A and the stop bit of original position
Mark B put.
Determine module 103, be configured to original position and the final position obtained according to acquisition module 102
Between position relationship and the height of prompting frame, determine the display position of prompting frame.
In the present embodiment, by select region original position and final position between position relationship and
The height of prompting frame, determines the display position of prompting frame.It is contemplated that select the start bit in region
Putting the height with final position and prompting frame, therefore, the technical program can be avoided as much as display
Prompting frame block selecting the part beyond region to cause.
When user selects region in the page, may also can the scroll-up/down page, to select bigger region,
Now, owing to the rolling of the page, the initial position being marked on the page and/or final position may be at screens
Upper invisible;Or, after user selects region in the page, also can check by the scroll-up/down page,
This will also result in, and the initial position being marked on the page and/or final position may be invisible on screen.
In another embodiment of the disclosure, as shown in figure 11, determine that module 103 includes:
First determines submodule 1031, be configured to determine that original position that acquisition module 102 obtains and/
Or final position is the most visible on screen;
First processes submodule 1032, if being configured to first to determine that submodule 1021 determines original position
On screen invisible, use select region visible part tip position replace original position;
Second processing module 1033, if being configured to first to determine that submodule 1021 determines that final position exists
On screen invisible, use select region visible part bottom position replace final position.
As shown in Figure 6, invisible owing to the page scrolls up when mark A of the original position in Fig. 2
Time, use the tip position A ' of the visible part selecting region 202 to replace original position A.Such as Fig. 7
Shown in, when mark B of the final position in Fig. 2 is invisible owing to the page scrolls down through, use choosing
The tip position B ' of the visible part selecting region 202 replaces B.
In another embodiment of the disclosure, as shown in figure 12, determine module 103, also include:
First display sub-module 1034, for the original position obtained when acquisition module 102 and final position
Between when can accommodate prompting frame, display reminding frame between original position and final position.
It is illustrated in figure 3 the schematic diagram of display reminding frame in exemplary selection region in fig. 2.As
Shown in Fig. 3, prompting frame 203 shows in selecting region 202.Prompting frame 203 may be configured to
To the operation selecting region 202 to carry out, such as, include duplication, forwarding, Quan Xuan etc..
In the present embodiment, show between original position and the final position selecting region by will be prompted to frame,
Achieve and will be prompted to frame and show and selecting in region.So, the prompting frame of display will not be to selecting region
Part in addition causes blocks, it is to avoid make troubles for user.
In another embodiment of the disclosure, as shown in figure 13, determine module 103, also include:
First calculating sub module 1035, is configured to calculate original position and the end that acquisition module 102 obtains
Stop bit put between the first vertical dimension;
First display sub-module 1034, hangs down if being configured to the first of the first calculating sub module 1031 calculating
Straight distance is more than the height of prompting frame, display reminding frame between original position and final position.
In another embodiment of the disclosure, as shown in figure 14, determine module 103, also include:
Second calculating sub module 1036, is configured to calculate original position and the screen that acquisition module 102 obtains
The second vertical dimension between the top of curtain;
Second display sub-module 1037, hangs down if being configured to the second of the second calculating sub module 1033 calculating
Straight distance is more than the height of prompting frame, at the prompting frame displayed above of original position;
As it is shown in figure 9, at the prompting frame displayed above of original position A selecting region 202.
First calculating sub module 1035, hangs down if being configured to the second of the second calculating sub module 1033 calculating
Straight distance, less than the height of prompting frame, calculates the first vertical dimension between original position and final position.
In another embodiment of the disclosure, as shown in figure 15, described determine module 103, also include:
3rd display sub-module 1038, if for the first calculating sub module 1031 calculate first vertically away from
From the height less than prompting frame, at the lower section display reminding frame of final position.
In another embodiment of the disclosure, as shown in figure 15, described determine module 103, also include:
Second determines submodule 1039, for the corresponding relation according to predeterminable area Yu prompting frame height, really
That determines that detection module 101 detects selects prompting frame height corresponding to region;
Obtain submodule 1040, determine that the prompting frame height that submodule 1039 determines is made for obtaining second
Height for prompting frame.
Zones of different in the different pages can corresponding different prompting frame.Such as, region can be word
The region of type, the region of picture/mb-type, word and the region of picture mixing.The region pair of literal type
Answer the prompting corresponding with the region that picture mixes of prompting frame 1, the region correspondence prompting frame 2 of picture/mb-type, word
Frame 3.Prompting frame 1, prompting frame 2, prompting frame 3 can include different operations.Different prompting frames
Can also have different height.Therefore, when display reminding frame, can be according to predeterminable area and prompting
The corresponding relation of frame height, determines the prompting frame height selecting region corresponding;Obtain the prompting frame determined high
Spend the height of the prompting frame as described selection region.
The disclosure also provides for the device of a kind of display reminding frame, including:
Processor;
It is configured to store the memorizer of processor executable;
Wherein, processor is configured to:
Selection region in the detection page;
Obtain described selection region original position in the described page and final position;
According to the position relationship between described original position and described final position and the height of described prompting frame
Degree, determines the display position of described prompting frame.
About the device in above-described embodiment, the concrete mode that wherein modules performs to operate is having
Close in the embodiment of the method and be described in detail, explanation will be not set forth in detail herein.
Figure 17 is the frame according to a kind of device 800 for display reminding frame shown in an exemplary embodiment
Figure.Such as, device 800 can be mobile phone, computer, digital broadcast terminal, and information receiving and transmitting sets
Standby, game console, tablet device, armarium, body-building equipment, personal digital assistant etc..
With reference to Figure 17, device 800 can include following one or more assembly: processes assembly 802, deposits
Reservoir 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, input/output (I/O)
Interface 812, sensor cluster 814, and communications component 816.
Process assembly 802 and generally control the integrated operation of device 800, such as with display, call,
The operation that data communication, camera operation and record operation are associated.Process assembly 802 and can include one
Or multiple processor 820 performs instruction, to complete all or part of step of above-mentioned method.Additionally,
Process assembly 802 and can include one or more module, it is simple to process between assembly 802 and other assemblies
Mutual.Such as, process assembly 802 and can include multi-media module, to facilitate multimedia groupware 808
And process between assembly 802 mutual.
Memorizer 804 is configured to store various types of data to support the operation at equipment 800.This
The example of a little data includes any application program for operation on device 800 or the instruction of method, connection
It is personal data, telephone book data, message, picture, video etc..Memorizer 804 can be by any type
Volatibility or non-volatile memory device or combinations thereof realize, such as static RAM
(SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable programmable is read-only to be deposited
Reservoir (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic is deposited
Reservoir, flash memory, disk or CD.
The various assemblies that power supply module 806 is device 800 provide electric power.Power supply module 806 can include
Power-supply management system, one or more power supplys, and other with generate for device 800, manage and distribute electricity
The assembly that power is associated.
The screen of one output interface of offer that multimedia groupware 808 is included between device 800 and user.
In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).As
Really screen includes that touch panel, screen may be implemented as touch screen, to receive the input letter from user
Number.Touch panel includes that one or more touch sensor touches with sensing, slides and on touch panel
Gesture.Touch sensor can not only sense touch or the border of sliding action, but also detect and touch
Or slide relevant persistent period and pressure.In certain embodiments, multimedia groupware 808 includes
One front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, such as screening-mode or
During video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each
Front-facing camera and post-positioned pick-up head can be a fixing optical lens system or have focal length and optics
Zoom capabilities.
Audio-frequency assembly 810 is configured to output and/or input audio signal.Such as, audio-frequency assembly 810 wraps
Include a mike (MIC), when device 800 is in operator scheme, as call model, logging mode and
During speech recognition mode, mike is configured to receive external audio signal.The audio signal received can
To be further stored at memorizer 804 or to send via communications component 816.In certain embodiments,
Audio-frequency assembly 810 also includes a speaker, is used for exporting audio signal.
I/O interface 812 provides interface, above-mentioned periphery for processing between assembly 802 and peripheral interface module
Interface module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: homepage is pressed
Button, volume button, start button and locking press button.
Sensor cluster 814 includes one or more sensor, for providing various aspects for device 800
State estimation.Such as, what sensor cluster 814 can detect equipment 800 opens/closed mode,
The relative localization of assembly, such as assembly are display and the keypad of device 800, sensor cluster 814
Can also detect device 800 or the position change of 800 1 assemblies of device, user contacts with device 800
Presence or absence, device 800 orientation or acceleration/deceleration and the variations in temperature of device 800.Sensor
Assembly 814 can include proximity transducer, is configured to detect when not having any physical contact attached
The existence of nearly object.Sensor cluster 814 can also include optical sensor, as CMOS or CCD schemes
As sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 is also
Acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensing can be included
Device.
Communications component 816 is configured to facilitate wired or wireless mode between device 800 and other equipment
Communication.Device 800 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or
Combinations thereof.In one exemplary embodiment, communication component 816 via broadcast channel receive from
The broadcast singal of external broadcasting management system or broadcast related information.In one exemplary embodiment, logical
Letter parts 816 also include near-field communication (NFC) module, to promote junction service.Such as, at NFC
Module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB)
Technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits
(ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), able to programme patrol
Collect device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor
Or other electronic components realize, it is used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage including instruction is additionally provided
Medium, such as, include the memorizer 804 of instruction, and above-mentioned instruction can be held by the processor 820 of device 800
Row is to complete said method.Such as, non-transitory computer-readable recording medium can be ROM, with
Machine access memorizer (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is by mobile terminal
When processor performs so that mobile terminal is able to carry out a kind of method of display reminding frame, and method includes:
Selection region in the detection page;
Obtain described operation and select region original position in the described page and final position;
According to the position relationship between described original position and described final position and the height of described prompting frame
Degree, determines the display position of described prompting frame.
Optionally, described according to the position relationship between described original position and described final position and institute
State the height of prompting frame, determine the display position of described prompting frame, including:
Determine that described original position and/or described final position are the most visible on screen;
If described original position is invisible on screen, use the tip position of the visible part selecting region
Replace described original position;
If described final position is invisible on screen, use the bottom position of the visible part selecting region
Replace described final position.
Optionally, described according to the position relationship between described original position and described final position and institute
State the height of prompting frame, determine the display position of described prompting frame, including:
When can accommodate described prompting frame between described original position and described final position, at described
Described prompting frame is shown between beginning position and described final position.
It is optionally, described when accommodating default prompting frame between described original position and described final position,
Described prompting frame is shown between described original position and described final position, including:
Calculate the first vertical dimension between described original position and described final position;
If described first vertical dimension is more than the height of described prompting frame, at described original position and described end
Stop bit shows described prompting frame between putting.
Optionally, described according to the position relationship between described original position and described final position and institute
State the height of prompting frame, determine the display position of described prompting frame, also include:
Obtain the second vertical dimension between described original position and the top of screen;
If described second vertical dimension is more than the height of described prompting frame, aobvious above described original position
Show described prompting frame;
The first vertical dimension between the described original position of described calculating and described final position, including:
If described second vertical dimension is less than the height of described prompting frame, calculate described original position and described
The first vertical dimension between final position.
Optionally, described according to the position relationship between described original position and described final position and institute
State the height of prompting frame, determine the display position of described prompting frame, also include:
If described first vertical dimension is less than the height of described prompting frame, aobvious in the lower section of described final position
Show described prompting frame.
Optionally, described according to the position relationship between described original position and described final position and institute
State the height of prompting frame, determine the display position of described prompting frame, also include:
According to the corresponding relation of predeterminable area Yu prompting frame height, determine the prompting that described selection region is corresponding
Frame height;
The prompting frame height that acquisition determines is as the height of described prompting frame.
Those skilled in the art, after considering description and putting into practice disclosure disclosed herein, will readily occur to this
Other embodiment disclosed.The application is intended to any modification, purposes or the adaptability of the disclosure
Change, these modification, purposes or adaptations are followed the general principle of the disclosure and include these public affairs
Open undocumented common knowledge in the art or conventional techniques means.Description and embodiments only by
Being considered as exemplary, the true scope of the disclosure and spirit are pointed out by claim below.
It should be appreciated that the disclosure be not limited to described above and illustrated in the accompanying drawings accurately
Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only by institute
Attached claim limits.
Claims (15)
1. the method for a display reminding frame, it is characterised in that including:
Selection region in the detection page;
Obtain described selection region original position in the described page and final position;
According to the position relationship between described original position and described final position and the height of described prompting frame
Degree, determines the display position of described prompting frame.
Method the most according to claim 1, it is characterised in that described according to described original position and
Position relationship between described final position and the height of described prompting frame, determine the aobvious of described prompting frame
Show position, including:
Determine that described original position and/or described final position are the most visible on screen;
If described original position is invisible on screen, use the tip position of the visible part selecting region
Replace described original position;
If described final position is invisible on screen, use the bottom position of the visible part selecting region
Replace described final position.
Method the most according to claim 1, it is characterised in that described according to described original position and
Position relationship between described final position and the height of described prompting frame, determine the aobvious of described prompting frame
Show position, including:
When can accommodate described prompting frame between described original position and described final position, at described
Described prompting frame is shown between beginning position and described final position.
Method the most according to claim 3, it is characterised in that described when described original position with institute
State when can accommodate described prompting frame between final position, described original position and described final position it
Between show described prompting frame, including:
Calculate the first vertical dimension between described original position and described final position;
If described first vertical dimension is more than the height of described prompting frame, at described original position and described end
Stop bit shows described prompting frame between putting.
Method the most according to claim 4, it is characterised in that described according to described original position and
Position relationship between described final position and the height of described prompting frame, determine the aobvious of described prompting frame
Show position, also include:
Obtain the second vertical dimension between described original position and the top of screen;
If described second vertical dimension is more than the height of described prompting frame, aobvious above described original position
Show described prompting frame;
The first vertical dimension between the described original position of described calculating and described final position, including:
If described second vertical dimension is less than the height of described prompting frame, calculate described original position and described
The first vertical dimension between final position.
Method the most according to claim 5, it is characterised in that described according to described original position and
Position relationship between described final position and the height of described prompting frame, determine the aobvious of described prompting frame
Show position, also include:
If described first vertical dimension is less than the height of described prompting frame, aobvious in the lower section of described final position
Show described prompting frame.
Method the most according to claim 1, it is characterised in that described according to described original position and
Position relationship between described final position and the height of described prompting frame, determine the aobvious of described prompting frame
Show position, also include:
According to the corresponding relation of predeterminable area Yu prompting frame height, determine the prompting that described selection region is corresponding
Frame height;
The prompting frame height that acquisition determines is as the height of described prompting frame.
8. the device of a display reminding frame, it is characterised in that including:
Detection module, for detecting the selection region in the page;
Acquisition module, for obtaining the described selection region of described detection module detection in the described page
Original position and final position;
Determine module, for the described original position obtained according to described acquisition module and described final position
Between position relationship and the height of described prompting frame, determine the display position of described prompting frame.
Device the most according to claim 8, it is characterised in that described determine that module also includes:
First determines submodule, for determining described original position that described acquisition module obtains and/or described
Final position is the most visible on screen;
First processes submodule, if determining that submodule determines that described original position is at screen for described first
Upper invisible, use the tip position of the visible part selecting region to replace described original position;
Second processes submodule, if determining that submodule determines that described final position is at screen for described first
Upper invisible, use the bottom position of the visible part selecting region to replace described final position.
Device the most according to claim 8, it is characterised in that described determine module, also includes:
First display sub-module, for the described original position obtained when described acquisition module and described termination
When can accommodate described prompting frame between position, show between described original position and described final position
Described prompting frame.
11. devices according to claim 10, it is characterised in that described determine module, also include:
First calculating sub module, for calculating described original position and the described end that described acquisition module obtains
Stop bit put between the first vertical dimension;
Described first display sub-module, hangs down if being additionally operable to described the first of described first calculating sub module calculating
Straight distance, more than the height of described prompting frame, shows institute between described original position and described final position
State prompting frame.
12. devices according to claim 11, it is characterised in that described determine module, also include:
Second calculating sub module, for calculating described original position and the screen that described acquisition module obtains
The second vertical dimension between top;
Second display sub-module, if described second vertical dimension calculated for described second calculating sub module
More than the height of described prompting frame, at the displayed above described prompting frame of described original position;
Described first calculating sub module, hangs down if being additionally operable to described the second of described second calculating sub module calculating
Straight distance less than the height of described prompting frame, calculates the between described original position and described final position
One vertical dimension.
13. devices according to claim 12, it is characterised in that described determine module, also include:
3rd display sub-module, if described first vertical dimension calculated for described first calculating sub module
Less than the height of described prompting frame, show described prompting frame in the lower section of described final position.
14. devices according to claim 8, it is characterised in that described determine module, also include:
Second determines submodule, for the corresponding relation according to predeterminable area Yu prompting frame height, determines institute
That states that detection module detects selects prompting frame height corresponding to region;
Obtain submodule, determine that prompting frame height that submodule determines is as described for obtaining described second
The height of prompting frame.
The device of 15. 1 kinds of display reminding frames, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Selection region in the detection page;
Obtain described selection region original position in the described page and final position;
According to the position relationship between described original position and described final position and the height of described prompting frame
Degree, determines the display position of described prompting frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610267135.3A CN105975199A (en) | 2016-04-26 | 2016-04-26 | Method and device for displaying prompt box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610267135.3A CN105975199A (en) | 2016-04-26 | 2016-04-26 | Method and device for displaying prompt box |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105975199A true CN105975199A (en) | 2016-09-28 |
Family
ID=56993884
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610267135.3A Pending CN105975199A (en) | 2016-04-26 | 2016-04-26 | Method and device for displaying prompt box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105975199A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102087572A (en) * | 2009-12-02 | 2011-06-08 | 乐金电子(中国)研究开发中心有限公司 | Display method and device of Chinese character input window of mobile terminal |
CN103425395A (en) * | 2013-08-29 | 2013-12-04 | 宇龙计算机通信科技(深圳)有限公司 | Text copying method and mobile terminal |
CN104102424A (en) * | 2013-04-05 | 2014-10-15 | 索尼公司 | Information processing apparatus, information processing method, and program |
CN104142786A (en) * | 2014-07-26 | 2014-11-12 | 珠海市君天电子科技有限公司 | Prompt box display method and terminal |
CN105005430A (en) * | 2015-07-17 | 2015-10-28 | 深圳市金立通信设备有限公司 | Window display method and terminal |
-
2016
- 2016-04-26 CN CN201610267135.3A patent/CN105975199A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102087572A (en) * | 2009-12-02 | 2011-06-08 | 乐金电子(中国)研究开发中心有限公司 | Display method and device of Chinese character input window of mobile terminal |
CN104102424A (en) * | 2013-04-05 | 2014-10-15 | 索尼公司 | Information processing apparatus, information processing method, and program |
CN103425395A (en) * | 2013-08-29 | 2013-12-04 | 宇龙计算机通信科技(深圳)有限公司 | Text copying method and mobile terminal |
CN104142786A (en) * | 2014-07-26 | 2014-11-12 | 珠海市君天电子科技有限公司 | Prompt box display method and terminal |
CN105005430A (en) * | 2015-07-17 | 2015-10-28 | 深圳市金立通信设备有限公司 | Window display method and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105069786B (en) | Line detection method and device | |
CN104503689B (en) | Application interface display methods and device | |
CN104238912B (en) | application control method and device | |
CN105117033B (en) | The connection method of external equipment and device | |
CN103927081A (en) | Method and device for processing notification events | |
CN105354489A (en) | Right granting method and apparatus | |
CN107102772A (en) | Touch control method and device | |
CN106896991A (en) | A kind of method and device of fresh information | |
CN107783711A (en) | Application program is controlled to perform the method and device of operation | |
CN105630337A (en) | Control controlling method and device | |
CN106959807A (en) | View angle switch method and device | |
CN106503131A (en) | Obtain the method and device of interest information | |
CN107704190A (en) | Gesture identification method, device, terminal and storage medium | |
CN105892869A (en) | Image position adjusting method and device | |
CN107239351A (en) | Method of attaching and device | |
CN105323152A (en) | Message processing method, device and equipment | |
CN105550213A (en) | Picture browsing method and device | |
CN105739840A (en) | Terminal and starting method of application programs in terminal | |
CN105187671A (en) | Recording method and device | |
CN105335061A (en) | Information display method and apparatus and terminal | |
CN106503048A (en) | Browser color method to set up and device | |
CN104281368A (en) | Interface display method and device and terminal device | |
CN106775210A (en) | The method and apparatus that wallpaper is changed | |
CN106775708A (en) | The page layout switch control method and device of mobile terminal | |
CN109521938A (en) | Determination method, apparatus, electronic equipment and the storage medium of data evaluation information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160928 |