The content of the invention
For above-mentioned technical problem, this specification embodiment provides a kind of user interface switching method, device and equipment, skill
Art scheme is as follows:
According to the one side of this specification embodiment, there is provided a kind of user interface switching method, including:
When user equipment two-dimensional code display scans interface, touching display screen of the first user of detection to the user equipment
Touch, the two-dimensional code scanning interface be used for scan second user offer Quick Response Code;
When detect it is described touch move along a first direction when, by the two-dimensional code scanning changing interface for comprising with institute
State the Quick Response Code displaying interface of Quick Response Code corresponding to the first user.
According to the one side of this specification embodiment, there is provided a kind of user interface switching method, including:
When user equipment shows that the Quick Response Code comprising Quick Response Code corresponding with the first user shows interface, detection described the
Touch of one user to the touching display screen of the user equipment;
When detecting that the touch is moved along second direction, Quick Response Code displaying changing interface is swept for Quick Response Code
Interface is retouched, the two-dimensional code scanning interface is used for the Quick Response Code for scanning second user offer.
According to the one side of this specification embodiment, there is provided a kind of user interface switching method, including:
When user equipment two-dimensional code display scans interface, touching display screen of the first user of detection to the user equipment
Touch, the two-dimensional code scanning interface be used for scan second user offer Quick Response Code;
When detecting that the touch is moved to the second place from first position, it is by the two-dimensional code scanning changing interface
Quick Response Code displaying interface comprising Quick Response Code corresponding with first user.
According to the one side of this specification embodiment, there is provided a kind of user interface switching method, including:
When user equipment shows that the Quick Response Code comprising Quick Response Code corresponding with the first user shows interface, detection described the
Touch of one user to the touching display screen of the user equipment;
When detecting that the touch is moved to four positions from the 3rd position, it is by Quick Response Code displaying changing interface
Two-dimensional code scanning interface, the two-dimensional code scanning interface are used for the Quick Response Code for scanning second user offer.
According to the one side of this specification embodiment, there is provided a kind of user interface switching method, including:
When user equipment two-dimensional code display scans interface, touching display screen of the first user of detection to the user equipment
Touch, the two-dimensional code scanning interface be used for scan second user offer Quick Response Code;
When detect it is described touch with first setting gesture it is corresponding when, by the two-dimensional code scanning changing interface for comprising
The Quick Response Code displaying interface of Quick Response Code corresponding with first user.
According to the one side of this specification embodiment, there is provided a kind of user interface switching method, including:
When user equipment shows that the Quick Response Code comprising Quick Response Code corresponding with the first user shows interface, detection described the
Touch of one user to the touching display screen of the user equipment;
It is two dimension by Quick Response Code displaying changing interface when detecting that the touch is corresponding with the second setting gesture
Code scanning interface, the two-dimensional code scanning interface are used for the Quick Response Code for scanning second user offer.
According to the one side of this specification embodiment, there is provided a kind of user interface switching device, including:
First detection unit, when user equipment two-dimensional code display scans interface, the first user of detection sets to the user
The touch of standby touching display screen, the two-dimensional code scanning interface are used for the Quick Response Code for scanning second user offer;
First switch unit, when detecting that the touch is moved along a first direction, by the two-dimensional code scanning interface
Switch to the Quick Response Code displaying interface comprising Quick Response Code corresponding with first user.
According to the one side of this specification embodiment, there is provided a kind of user interface switching device, including:
Second detection unit, show that the Quick Response Code comprising Quick Response Code corresponding with the first user shows interface in user equipment
When, detect touch of first user to the touching display screen of the user equipment;
Second switch unit, when detecting that the touch is moved along second direction, the Quick Response Code is shown into interface
Two-dimensional code scanning interface is switched to, the two-dimensional code scanning interface is used for the Quick Response Code for scanning second user offer.
According to the one side of this specification embodiment, there is provided a kind of user interface switching device, including:
First detection unit, when user equipment two-dimensional code display scans interface, the first user of detection sets to the user
The touch of standby touching display screen, the two-dimensional code scanning interface are used for the Quick Response Code for scanning second user offer;
First switch unit, when detecting that the touch is moved to the second place from first position, by the Quick Response Code
Scan changing interface and show interface for the Quick Response Code comprising Quick Response Code corresponding with first user.
According to the one side of this specification embodiment, there is provided a kind of user interface switching device, including:
Second detection unit, show that the Quick Response Code comprising Quick Response Code corresponding with the first user shows interface in user equipment
When, detect touch of first user to the touching display screen of the user equipment;
Second switch unit, when detecting that the touch is moved to four positions from the 3rd position, by the Quick Response Code
Displaying changing interface is two-dimensional code scanning interface, and the two-dimensional code scanning interface is used for the Quick Response Code for scanning second user offer.
According to the one side of this specification embodiment, there is provided a kind of user interface switching device, including:
First detection unit, when user equipment two-dimensional code display scans interface, the first user of detection sets to the user
The touch of standby touching display screen, the two-dimensional code scanning interface are used for the Quick Response Code for scanning second user offer;
First switch unit, when detecting that the touch is corresponding with the first setting gesture, by the two-dimensional code scanning
Changing interface shows interface for the Quick Response Code comprising Quick Response Code corresponding with first user.
According to the one side of this specification embodiment, there is provided a kind of user interface switching device, including:
Second detection unit, show that the Quick Response Code comprising Quick Response Code corresponding with the first user shows interface in user equipment
When, detect touch of first user to the touching display screen of the user equipment;
Second switch unit, when detecting that the touch is corresponding with the second setting gesture, the Quick Response Code is shown
Changing interface is two-dimensional code scanning interface, and the two-dimensional code scanning interface is used for the Quick Response Code for scanning second user offer.
According to the one side of this specification embodiment, there is provided a kind of user equipment, including:
Processor;
For storing the memory of processor-executable instruction;
The processor is configured as:
When user equipment two-dimensional code display scans interface, touching display screen of the first user of detection to the user equipment
Touch, the two-dimensional code scanning interface be used for scan second user offer Quick Response Code;
When detect it is described touch move along a first direction when, by the two-dimensional code scanning changing interface for comprising with institute
State the Quick Response Code displaying interface of Quick Response Code corresponding to the first user.
According to the one side of this specification embodiment, there is provided a kind of user equipment, including:
Processor;
For storing the memory of processor-executable instruction;
The processor is configured as:
When user equipment shows that the Quick Response Code comprising Quick Response Code corresponding with the first user shows interface, detection described the
Touch of one user to the touching display screen of the user equipment;
When detecting that the touch is moved along second direction, Quick Response Code displaying changing interface is swept for Quick Response Code
Interface is retouched, the two-dimensional code scanning interface is used for the Quick Response Code for scanning second user offer.
Effect caused by the technical scheme that this specification embodiment is provided includes:
By detecting the touch action of user, when detecting that touch action meets set condition, Quick Response Code is realized
Being switched fast between scanning interface and Quick Response Code displaying interface, avoids the cumbersome property of user.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
This specification embodiment can be limited.
In addition, any embodiment in this specification embodiment and above-mentioned whole effects need not be reached.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in this specification embodiment, below in conjunction with this
Accompanying drawing in specification embodiment, the technical scheme in this specification embodiment is described in detail, it is clear that described
Embodiment is only the part of the embodiment of this specification, rather than whole embodiments.Based on the embodiment in this specification,
The every other embodiment that those of ordinary skill in the art are obtained, it should all belong to the scope of protection.
In Internet era, using App barcode scanning function can realize such as " barcode scanning payment ", " barcode scanning plusing good friend ", " sweep
The affairs such as code concern public number ".This kind of App generally includes two kinds of user interfaces, and a kind of is to show the user's mark of oneself (such as:
Quick Response Code, bar code, biological characteristic of user identity etc. can be represented) interface (herein by taking instantly popular Quick Response Code as an example, will
The interface definition is " Quick Response Code displaying interface "), to be supplied to other people to carry out barcode scanning;It is another then be the use for providing other people
Family identifies the interface (being defined herein as at " two-dimensional code scanning interface ") being scanned, and including one on the interface is used for taking for barcode scanning
Scape frame, and obtain by the camera of user equipment the image of scanning object.It can be seen that for participating in the two of all kinds of barcode scanning affairs
For individual user, one of user is barcode scanning side, and another user is then by barcode scanning side.
In actual life, by taking plusing good friend as an example, it is desirable to which it is barcode scanning side that whom the both sides of mutual plusing good friend, which can't typically specify,
Or who is by barcode scanning side, at this time, usually occurs that both sides open the App of oneself, and mark displaying interface is switched to carry
Others is waited to carry out barcode scanning for respective Quick Response Code.Understand some awkward and wastes in friend or leader social life for new knowledge
Time.In order to avoid above-mentioned awkward and inconvenience, currently occur to realize in Quick Response Code displaying interface and two-dimensional code scanning circle
The demand being switched fast between face.And in the related art, it is mutual between Quick Response Code displaying interface and two-dimensional code scanning interface
Switching, which usually requires the relatively complicated operation (generally including multiple steps) of user, to be realized.
To solve the problems, such as there is currently, this specification embodiment provides a kind of user interface switching method, this method
Including:Show changing interface to the process at two-dimensional code scanning interface and from two-dimensional code scanning changing interface to two dimension from Quick Response Code
The process at code displaying interface.
It is shown in Figure 1, in one embodiment, for showing changing interface to the mistake at two-dimensional code scanning interface from Quick Response Code
Journey, this method may comprise steps of 101~102, wherein:
Step 101, when user equipment two-dimensional code display scans interface, the first user of detection touches to the user equipment
The touch of display screen is controlled, wherein, the two-dimensional code scanning interface is used for the Quick Response Code for scanning second user offer.
Herein, for a specific user equipment, the user for defining the user equipment is " the first user ",
And another user that definition participates in certain class barcode scanning affairs jointly with first user is " second user ".
Step 102, when detecting that the touch is moved along a first direction, it is by the two-dimensional code scanning changing interface
Quick Response Code displaying interface comprising Quick Response Code corresponding with first user.
Wherein, Quick Response Code (such as Quick Response Code) corresponding with first user can by user equipment under off-line state it is sharp
Generated and be shown to specific algorithm on the Quick Response Code displaying interface.
It is shown in Figure 2, in one embodiment, the mistake for showing interface from two-dimensional code scanning changing interface to Quick Response Code
Journey, this method may comprise steps of 201~202, wherein:
Step 201, the Quick Response Code exhibition for including Quick Response Code (such as Quick Response Code) corresponding with the first user is shown in user equipment
When showing interface, touch of first user to the touching display screen of the user equipment is detected.
Step 202, when detecting that the touch is moved along second direction, it is by Quick Response Code displaying changing interface
Two-dimensional code scanning interface, wherein, the two-dimensional code scanning interface is used for the Quick Response Code for scanning second user offer.
Fig. 3 shows a kind of exemplary user interface handoff procedure, it can be seen that is included on Quick Response Code displaying interface
The prompt message of one " right cunning sweeps Quick Response Code ", and the carrying comprising one " my Quick Response Code of left cunning " on two-dimensional code scanning interface
Show information.Certainly, a prompt message is also not necessarily just, can be designed as slidable control (i.e. user
Slide must be act on the control just it is effective), this is not restricted herein.When two dimension is shown in user equipment
During code displaying interface 10, if user makes the action slided to the right in touch display screen, the user equipment is from Quick Response Code
Displaying interface 10 switches to two-dimensional code scanning interface 20, wherein, the two-dimensional code scanning interface 20 needs to include a view-finder 21.
Similarly, when two-dimensional code scanning interface 20 is being shown in user equipment, if user makes to the left in touch display screen
The action of slip, then the user equipment from two-dimensional code scanning interface 20 switch to Quick Response Code displaying interface 10.It can be seen that user is herein
During operation it is very simple, all provide the situation to be scanned such as the Quick Response Code of oneself even if running into both sides, wherein a side
Changing interface can be quickly completed.Certainly, the direction that user slides is not limited to " to the right " or " to the left ".
Fig. 4 shows a kind of exemplary user interface handoff procedure, provides another user circle in this embodiment
The mechanism of face switching.When Quick Response Code displaying interface 10 is being shown in user equipment, if user is in touch display screen
Make that (position a) in figure is mobile or slides into the second place ((process can be with for the action of the position b) in figure from first position
Do not consider specific sliding path be how), then the user equipment from Quick Response Code displaying interface 10 switch to two-dimensional code scanning
Interface 20.Similarly, when two-dimensional code scanning interface 20 is being shown in user equipment, if user makees in touch display screen
Go out that (position c) in figure is mobile or slides into the 4th position (action of the position d) in figure, the then user equipment from the 3rd position
Quick Response Code displaying interface 10 is switched to from two-dimensional code scanning interface 20.
Fig. 5 shows a kind of exemplary user interface handoff procedure, provides another user circle in this embodiment
The mechanism of face switching.When Quick Response Code displaying interface 10 is being shown in user equipment, if user is in touch display screen
Touch action with first setting gesture (such as:A circle is drawn clockwise) it is corresponding, then the user equipment shows boundary from Quick Response Code
Face 10 switches to two-dimensional code scanning interface 20.Similarly, when two-dimensional code scanning interface 20 is being shown in user equipment, if
Touch action of the user in touch display screen sets gesture (such as with second:A circle is drawn counterclockwise) corresponding, the then user
Equipment switches to Quick Response Code displaying interface 10 from two-dimensional code scanning interface 20.
It should be noted that in feasible embodiment, first direction and second direction described in text can be with identical, text
Described in the first setting gesture and the second setting gesture can be same gesture, it is literary described in first position and the 3rd
Put, the second place and the 4th position can be same positions.
Corresponding to above method embodiment, this specification embodiment also provides a kind of user interface switching device.
Shown in Figure 6, in one embodiment, a kind of user interface switching device 300 can include:
First detection unit 301, can be configured as:When user equipment two-dimensional code display scans interface, detection first
Touch of the user to the touching display screen of the user equipment, wherein the two-dimensional code scanning interface carries for scanning second user
The Quick Response Code of confession.
First switch unit 302, can be configured as:When detecting that the touch is moved along a first direction, by institute
State two-dimensional code scanning changing interface and show interface for the Quick Response Code comprising Quick Response Code corresponding with first user.
In another embodiment, the first switch unit 302, can be configured as:When detect it is described touch from first
Put when being moved to the second place, by the two-dimensional code scanning changing interface to include Quick Response Code corresponding with first user
Quick Response Code shows interface.
In another embodiment, the first switch unit 302, can be configured as:When detecting that the touch sets with first
Determine gesture it is corresponding when, be to include the two dimension of Quick Response Code corresponding with first user by the two-dimensional code scanning changing interface
Code displaying interface.
Shown in Figure 7, in one embodiment, a kind of user interface switching device 400 can include:
Second detection unit 401, can be configured as:Shown in user equipment and include Quick Response Code corresponding with the first user
Quick Response Code displaying interface when, detect the touch of first user to the touching display screen of the user equipment.
Second switch unit 402, can be configured as:When detecting that the touch is moved along second direction, by institute
It is two-dimensional code scanning interface to state Quick Response Code displaying changing interface.
In another embodiment, the second switch unit 402, can be configured as:When detect it is described touch from the 3rd
Put when being moved to four positions, be two-dimensional code scanning interface by Quick Response Code displaying changing interface.
In another embodiment, the second switch unit 402, can be configured as:When detecting that the touch sets with second
Determine gesture it is corresponding when, by the Quick Response Code displaying changing interface be two-dimensional code scanning interface.
The function of modules and the implementation process of effect specifically refer to and step are corresponded in the above method in said apparatus
Implementation process, it will not be repeated here.
This specification embodiment also provides a kind of user equipment (such as mobile phone), and it comprises at least memory, processor and deposited
Storage on a memory and the computer program that can run on a processor, wherein, realize during computing device described program foregoing
User interface switching method.
Fig. 8 shows a kind of more specifically computing device hardware architecture diagram that this specification embodiment is provided,
The equipment can include:Processor 1010, memory 1020, input/output interface 1030, communication interface 1040 and bus
1050.Wherein processor 1010, memory 1020, input/output interface 1030 and communication interface 1040 are real by bus 1050
Now each other in the communication connection of device interior.
Processor 1010 can use general CPU (Central Processing Unit, central processing unit), micro- place
Reason device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one
Or the mode such as multiple integrated circuits is realized, for performing relative program, to realize technical side that this specification embodiment is provided
Case.
Memory 1020 can use ROM (Read Only Memory, read-only storage), RAM (Random Access
Memory, random access memory), the form such as static storage device, dynamic memory realize.Memory 1020 can store
Operating system and other applications, technical scheme that this specification embodiment is provided is being realized by software or firmware
When, related program code is stored in memory 1020, and is performed by processor 1010 to call.
Input/output interface 1030 is used to connect input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment can include keyboard, mouse, touch-screen, microphone, various kinds of sensors etc., output equipment can include display,
Loudspeaker, vibrator, indicator lamp etc..
Communication interface 1040 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment
Interaction.Wherein communication module can be realized by wired mode (such as USB, netting twine etc.) and communicated, can also be wirelessly
(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 1050 includes a path, equipment each component (such as processor 1010, memory 1020, input/it is defeated
Outgoing interface 1030 and communication interface 1040) between transmit information.
It should be noted that although the said equipment illustrate only processor 1010, memory 1020, input/output interface
1030th, communication interface 1040 and bus 1050, but in specific implementation process, the equipment can also include realizing normal fortune
Other assemblies necessary to row.In addition, it will be appreciated by those skilled in the art that, can also be only comprising real in the said equipment
Component necessary to existing this specification embodiment scheme, without including all components shown in figure.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
Embodiment can add the mode of required general hardware platform to realize by software.Based on such understanding, this specification is implemented
The part that the technical scheme of example substantially contributes to prior art in other words can be embodied in the form of software product,
The computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are making
It is each to obtain computer equipment (can be personal computer, server, or network equipment etc.) execution this specification embodiment
Method described in some parts of individual embodiment or embodiment.
System, device, module or the unit that above-described embodiment illustrates, it can specifically be realized by computer chip or entity,
Or realized by the product with certain function.One kind typically realizes that equipment is computer, and the concrete form of computer can
To be personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment
The combination of any several equipment.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for device
For applying example, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to embodiment of the method
Part explanation.Device embodiment described above is only schematical, wherein described be used as separating component explanation
Module can be or may not be it is physically separate, can be each module when implementing this specification embodiment scheme
Function realized in same or multiple softwares and/or hardware.Can also select according to the actual needs part therein or
Person's whole module realizes the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying the situation of creative work
Under, you can to understand and implement.
Described above is only the embodiment of this specification embodiment, it is noted that for the general of the art
For logical technical staff, on the premise of this specification embodiment principle is not departed from, some improvements and modifications can also be made, this
A little improvements and modifications also should be regarded as the protection domain of this specification embodiment.