Specific embodiment
Illustrative embodiments are described more fully with reference to the drawings.However, illustrative embodiments can be with moreKind form is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure willMore fully and completely, and by the design of illustrative embodiments comprehensively it is communicated to those skilled in the art.It is describedFeature, structure or characteristic can be incorporated in any suitable manner in one or more embodiments.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figureNote indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are functionEnergy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software formEnergy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or placeThese functional entitys are realized in reason device device and/or microcontroller device.
It should be noted that term " comprising ", " being configured with ", " being set to " are to indicate open packet in the disclosureThe meaning including including, and refer to that other element/composition portion also may be present in the element in addition to listing/component part/other than waitingPoint/etc.;Term " first ", " second " etc. are only used as label, are not the limitations to its number of objects or order.
In an exemplary embodiment of the disclosure, a kind of sentence entry exchange method is provided firstly, is applied to have and hand overThe terminal device at mutual interface, the terminal device can be that by the touch control device of touch-control sensing.Specifically, the touch-control is setIt is standby to can be the various electric terminal equipments with interactive interface such as mobile phone, tablet computer, laptop, PDA, game machine.
With reference to shown in Fig. 1, which mainly be may comprise steps of:
Step S101. shows a sentence list with multiple sentence entries on interactive interface.
There are multiple sentence entries when user needs to open a window and the window in the interactive interface of terminal deviceWhen sentence list, it can be realized by click or other operations, sentence list or sentence list needed for opening userIt can be and be already present on interactive interface.The arrangement mode of multiple sentence entries in the sentence list can be in levelIt arranges on direction and is arranged into a column in a row or in the vertical direction, be also possible to line number in the horizontal direction and verticalColumns on direction is all larger than two mode.
Step S102. detects the first touch control operation for acting on sentence list, and obtains the touch-control position of the first touch control operationIt sets.
A sentence list with multiple sentence entries can be opened by step S101, this step can be to language thereinSentence entry is operated.Wherein, the operation of execution is first touch control operation, such as long press operation, double click operation etc..Work as judgementWhen whether long press operation can be used as the first touch control operation, the time of long press operation can be detected.For example, can be setThe time of long press operation is compared by first time threshold with first time threshold, is greater than first when the time of long press operationWhen time threshold, the position of touch of the first touch control operation is obtained;Conversely, when the time of the first touch control operation is less than this at the first timeWhen threshold value, it is believed that only general clicking operation.In addition to this, it when starting long press operation, can be grasped in the first touch-controlThe position of touch of work shows that a pressing operation identifies, and shows the time of start recording long press operation.
Step S103. shows sentence entry corresponding with position of touch as object statement entry, and on interactive interfaceShow the edit control for object statement entry, edit control is for adjusting display shape of the object statement entry in sentence listState.
In step s 102, the first touch control operation can be triggered and obtain the position of touch of the first touch control operation, the touch-controlThe corresponding sentence entry in position can be used as the object statement entry in this step, that is, the position of touch with the first touch control operationThe sentence entry of coincidence is object statement entry.For object statement entry, an edit control can be shown on interactive interface.BenefitWith display state of the adjustable object statement entry of edit control in sentence list.For example, the edit control may be implementedHide the functions such as two identical object statement entries of object statement entry or display.
According to the sentence entry exchange method in this example embodiment, by detecting the position of touch of the first touch control operation,Can be more accurate find this execution object of object statement entry, improve the accuracy for executing the first touch control operation;It is same with thisWhen, the display state of object statement entry is adjusted by setting edit control, can make the achievable editting function of edit controlIt directly displays in interactive interface, it is more clear, it is easily operated.
On the basis of above embodiments, the edit control in step S103 includes the void of the different editting functions of multiple correspondencesQuasi- button.
In step s 103, the edit control for object statement entry can be shown in interactive interface.Wherein, the editorControl includes the virtual push button of the different editting functions of multiple correspondences, and such as " deletion " button, " being inserted into new sentence " button, " copy " are pressedButton etc., a virtual push button realize a corresponding editting function.By the way that the void including the different editting functions of multiple correspondences is arrangedQuasi- button becomes edit control, edit control can be made more to gather, and facilitates display, saves interface shape.
On the basis of above embodiments, as shown in Fig. 2, sentence entry exchange method further include:
Step S201. detection acts on the second touch control operation of the virtual push button in edit control.
When user needs to adjust the display state of object statement entry, can virtually be pressed by multiple in edit controlButton come realize change object statement entry display state purpose.When the trigger event of the first touch control operation is detected,Multiple virtual push buttons in edit control can all show which virtual push button specifically executes which editting function is by byThe triggering of two touch control operations determines.Wherein, triggering mode can be click.When some virtual push button is triggered, can start to holdThe corresponding editting function of the row virtual push button.
Step S202. is when the second touch control operation acts on the first virtual push button, by object statement entry from sentence listMiddle deletion.
It can detecte the second touch control operation of the virtual push button acted in edit control, this step in step s 201List scene when the second touch control operation acts on some virtual push button.When the second touch control operation acts on the first virtual push buttonWhen, object statement entry can be deleted from sentence list, to remove the object statement entry no longer needed.
Step S203. is when the second touch control operation acts on the second virtual push button, the adjacent objects sentence in sentence listIt is empty newly-increased sentence entry that destination locations, which increase a content,.
It can detecte the second touch control operation of the virtual push button acted in edit control, this step in step s 201List scene when the second touch control operation acts on some virtual push button.When the second touch control operation acts on the second virtual push buttonWhen, it is empty newly-increased sentence entry that adjacent objects sentence destination locations, which increase a content, in sentence list.If sentence itemMesh is arranged into a column in the vertical direction, and adjacent objects sentence destination locations are the surface adjacent with object statement entryOr underface.Increasing this content is that empty newly-increased sentence entry is mainly used for being inserted into one newly in specific position according to specific requirementsSentence entry, can be in its content of text to be shown of the newly-increased blank space editor of sentence entry.
Step S204. is when the second touch control operation acts on third virtual push button, the adjacent objects sentence in sentence listDestination locations increase a content newly-increased sentence entry identical with object statement entry.
It can detecte the second touch control operation of the virtual push button acted in edit control, this step in step s 201List the scene that the second touch control operation acts on some virtual push button.When the second touch control operation acts on third virtual push button,Adjacent objects sentence destination locations increase a content newly-increased sentence item identical with object statement entry in sentence listMesh.For example, if multiple sentence entries in the sentence list opened are arranged into a column in the vertical direction, at this point, adjacent objectsSentence destination locations can be the surface or underface adjacent with object statement entry.When user needs to object statement itemWhen mesh is copied, third virtual push button can be triggered to complete the editting function.
The second touch control operation that three kinds of virtual push buttons in edit control are listed in the present embodiment, by acting on three kindsVirtual push button improves the accuracy of realization " one function of a button ".It should be noted that the second touch control operation can triggerSituation is not limited only to three of the above, can also include other a variety of situations, be not listed one by one.
In another exemplary embodiment of the present disclosure, sentence entry exchange method further includes detection and the first touch control operationContinuous third touch control operation, and display position of the object statement entry in sentence list is adjusted according to third touch control operation.
It, can be continuously real for the first touch control operation when adjusting display position of the object statement entry in sentence listThird touch control operation is applied, the adjustment to object statement entry display position is realized with third touch control operation.Wherein, third touch-controlOperation should be the touch control operation different from the first touch control operation, should also be a kind of touching that can continuously get up with the first touch control operationControl operation.For example, the first touch control operation can be long press operation, third touch control operation is slide.To object statement itemWhen mesh carries out long press operation, it can keep pressing, then carry out slide, object statement entry follows finger dragged, and oneIt is directly adjusted to new display position, stops pressing.
In the present embodiment, on the one hand, setting third touch control operation adjusts display of the object statement entry in sentence listTouch control operation and sentence list operation are combined, the convenience of list of entries operation can be improved by position;On the other hand,By third touch control operation continuously after the first touch control operation, the fluency of sentence list sequence is not only increased, is decreasedThe step of sentence list sorts, improves operating efficiency.
On the basis of above embodiments, sentence entry exchange method further includes continuous with the first touch control operation when detectingThird touch control operation when, hide for object statement entry edit control.
Such as step S102 and S103, the first touch control operation of sentence list and the volume of displaying target sentence entry can detecteCollect control.This step can be hidden when detecting third touch control operation continuous with the first touch control operation and be directed to object statementThe edit control of entry.Since third touch control operation is for adjusting display position of the object statement entry in sentence list, ifEdit control, which always show, may block sight, influence to adjust.The edit control of object statement entry is hidden, it can be withKeep the execution of third touch control operation more smooth, is moved easily.
On the basis of above embodiments, sentence entry exchange method further includes at the end of third touch control operation, againShow the edit control being hidden.
It, can be to target language when detecting third touch control operation continuous with the first touch control operation in a upper embodimentThe edit control of sentence entry is hidden, and in the present embodiment, at the end of detecting third touch control operation, can be shown again hiddenThe edit control of hiding.For example, the interactive interface for stopping pressing terminal device then puts touching when third touch control operation is slideControl operation terminates.In order to exchange have suffered display position object statement entry continue implement editting function, can show quilt againHiding edit control then realizes the corresponding editting function of virtual push button.Therefore, the present embodiment can guarantee continuing to executeWhen third touch control operation, the editting function of virtual push button included by the edit control of performance objective sentence entry will not influence.
On the basis of above embodiments, sentence entry exchange method further includes continuous with the first touch control operation when detectingThird touch control operation when, show that the adjustment of corresponding with object statement entry position identifies.
When user will be adjusted the display position of object statement entry, third touch control operation can be triggered.Work as inspectionWhen measuring third touch control operation continuous with the first touch control operation, in order to adjust object statement entry in sentence list in userDisplay position when give and prompt, can show position corresponding with object statement entry in the position of touch of third touch control operationSet adjustment mark.In order to show position adjustment mark, second time threshold can be set.Second time threshold is different from firstFirst time threshold in touch control operation should be a duration value for being greater than first time threshold.It is greater than when the time of long press operationFirst time threshold but when user does not trigger the virtual push button in edit control, pressing operation mark continues timing, until bigWhen second time threshold, interactive interface can show out position adjustment mark.For example, position adjustment mark can be one orMultiple directions arrow, multiple sentence entries in while statement list are according to the columns in the line number and vertical direction in horizontal directionWhen being all larger than two mode and being arranged, then the arrow can currently adjustable position carries out according to object statement entryThe display of upper and lower, left and right four direction;Multiple sentence entries in while statement list are to arrange in the horizontal direction in a row,So the arrow can currently adjustable position carries out the display of left and right both direction according to object statement entry;While statementMultiple sentence entries in list are to be arranged in a column in the vertical direction, then the arrow can work as according to object statement entryPreceding adjustable position carries out the display of upper and lower both direction, to indicate.That is specified position does not adjust markNumber is shown according to the actual situation.Also, position adjustment mark can fix the touch-control position for being shown in third touch control operationPlace is set, also may be displayed on any other position, it can also be during adjusting object statement entry display position, according to meshPoster sentence entry is moved.
It, can by showing position adjustment mark corresponding with object statement entry in the position of touch of third touch control operationTo indicate that object statement entry comes into effect third touch control operation, and adjustable display position is prompted, makes third touch control operationBecome to visualize on the terminal device, promotes the interactive experience of user.
It should be noted that, although the embodiment of exemplary embodiment above describes side in the disclosure with particular orderEach step of method, still, this does not require that perhaps hint must execute these steps or necessary in this particular orderIt executes whole steps and is just able to achieve desired result.Additionally or alternatively, it is convenient to omit certain steps, by multiple stepsIt merges into a step to execute, and/or a step is decomposed into execution of multiple steps etc..
The sentence entry exchange method in the embodiment of the present disclosure is described in detail below with reference to an application scenarios.
It is a mobile phone games interface as shown in Figure 3, which is open a sentence list, wherein comprising moreA sentence entry.Sentence list 31 in such as figure includes multiple sentence entries, wherein there is a sentence entry 32.
For multiple sentence entries, user selects one of them to edit as object statement entry.With reference to Fig. 4 A, whenWhen user carries out long press operation to object statement entry, it may appear that pressing operation mark, pressing operation mark are used to long-pressingOperation carries out timing.As shown in the figure, user's case statement entry 32 is used as object statement entry, and carries out long press operation, showsPressing operation mark 41 is shown, timing can be carried out to long press operation.The duration of timing is compared with first time threshold, whenDuration is greater than first time threshold, can show edit control.
With continued reference to Fig. 4 B, edit control 42 can carry out edit operation for object statement entry 32.As shown in the figure, it compilesThe virtual push button including three different editting functions in control 42 is collected, is the first virtual push button 421, the second virtual push button respectively422 and third virtual push button 423.Wherein, the first virtual push button 421 is " copy " button, be may be implemented adjacent in sentence listClose-target sentence destination locations increase the function of a content newly-increased sentence entry identical with object statement entry;Second is emptyQuasi- button 422 is " insertion New Terms " button, and the adjacent objects sentence destination locations in sentence list may be implemented and increase by oneA content is the function of empty newly-increased sentence entry;Third virtual push button 423 is " deletion " button, can be completed object statementThe function that entry is deleted from sentence list.When the display position of multiple sentence entries in generated sentence list need intoWhen row adjustment, can continuous first touch control operation implement third touch control operation, object statement item is adjusted according to third touch control operationDisplay position of the mesh in sentence list.
With reference to Fig. 4 C, when carrying out long press operation, if there is edit control, but user edit control is not made it is anyThe pressing operation mark of operation, long press operation continues timing, when length is greater than second time threshold at that time, interactive interface display positionAdjustment mark, the adjustable position for prompting user to execute the object statement entry.As shown, multiple sentence entries areIt is arranged into a column in the vertical direction, so position adjustment mark is the position adjustment mark of the upper and lower both direction of a direction.Therefore, which may only be adjusted in upper and lower both direction, and what is be carrying out in figure is downward adjustment displayPosition.
In addition, additionally providing a kind of window interface interactive device in the example embodiment of the disclosure.Referring to Figure 5,Sentence entry interactive device 500 may include: the first display module 501, detection module 502, the second display module 503.Wherein:
First display module 501 is configured as sentence list of the display one with multiple sentence entries on interactive interface;Detection module 502 is configured as the first touch control operation that detection acts on sentence list, and obtains the touch-control of the first touch control operationPosition;Second display module 503 is configured as using sentence entry corresponding with position of touch as object statement entry, and is being handed overDisplay is directed to the edit control of object statement entry on mutual interface, and edit control is for adjusting object statement entry in sentence listIn display state.
The detail of above-mentioned window interface interactive device has carried out in corresponding window interface exchange method in detailThin description, therefore details are not described herein again.
It should be noted that although be referred in the above detailed description sentence entry interactive device 500 several modules orUnit, but this division is not enforceable.In fact, according to embodiment of the present disclosure, above-described two or moreMultimode or the feature and function of unit can embody in a module or unit.Conversely, above-described oneModule or the feature and function of unit can be to be embodied by multiple modules or unit with further division.
In addition, in an exemplary embodiment of the disclosure, additionally providing a kind of electronic equipment that can be realized the above method.
The electronic equipment 600 of this embodiment according to the present invention is described referring to Fig. 6.The electronics that Fig. 6 is shown is setStandby 600 be only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrapIt includes but is not limited to: at least one above-mentioned processing unit 610, at least one above-mentioned storage unit 620, the different system components of connectionThe bus 630 of (including storage unit 620 and processing unit 610), display unit 640.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 610Row, so that various according to the present invention described in the execution of the processing unit 610 above-mentioned " illustrative methods " part of this specificationThe step of exemplary embodiment.
Storage unit 620 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit(RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
Storage unit 620 can also include program/utility with one group of (at least one) program module 62056204, such program module 6205 includes but is not limited to: operating system, one or more application program, other program mouldsIt may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 630 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storageCell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structuresLocal bus.
Electronic equipment 600 can also be with one or more external equipments 800 (such as keyboard, sensing equipment, bluetooth equipmentDeng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 600 communicate, and/or with makeAny equipment (such as the router, modulation /demodulation that the electronic equipment 600 can be communicated with one or more of the other calculating equipmentDevice etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be withBy network adapter 660 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,Such as internet) communication.As shown, network adapter 640 is communicated by bus 630 with other modules of electronic equipment 600.It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 600, including but notBe limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive andData backup storage system etc..
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described hereinIt can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosureThe technical solution of example can be embodied in the form of software products, which can store in a non-volatile memoriesIn medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (canTo be personal computer, server, terminal installation or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon withEnough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention can be withIt is embodied as a kind of form of program product comprising program code, it is described when described program product is run on the terminal deviceProgram code is for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to the present inventionThe step of various exemplary embodiments.
Refering to what is shown in Fig. 7, the program product 700 for realizing the above method of embodiment according to the present invention is described,It can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, such asIt is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing, which can be, appointsWhat include or the tangible medium of storage program that the program can be commanded execution system, device or device use or and itsIt is used in combination.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letterNumber medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray orSystem, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustiveList) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-onlyMemory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executingMatter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and itsThe program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, haveLine, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languagesCode, described program design language include object oriented program language-Java, C++ etc., further include conventionalProcedural programming language-such as " C " language or similar programming language.Program code can be fully in userIt calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculatingUpper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to farJourney calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISPTo be connected by internet).
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosureHis embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes orAdaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure orConventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claimIt points out.