CN104778037A - Display method and display device for widgets of application program - Google Patents

Display method and display device for widgets of application program Download PDF

Info

Publication number
CN104778037A
CN104778037A CN201510121713.8A CN201510121713A CN104778037A CN 104778037 A CN104778037 A CN 104778037A CN 201510121713 A CN201510121713 A CN 201510121713A CN 104778037 A CN104778037 A CN 104778037A
Authority
CN
China
Prior art keywords
widget
target
shape
edited
edit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510121713.8A
Other languages
Chinese (zh)
Other versions
CN104778037B (en
Inventor
赵建凯
伍亮雄
邱诗定
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510121713.8A priority Critical patent/CN104778037B/en
Publication of CN104778037A publication Critical patent/CN104778037A/en
Application granted granted Critical
Publication of CN104778037B publication Critical patent/CN104778037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a display method and a display device for widgets of an application program. The display method and the display device are applied to terminal equipment. The display method comprises the following steps of firstly, performing editing operation of shape editing on widgets to be edited by an operating body to generate an editing instruction of the widgets; secondly, acquiring the target shapes of the widgets to be edited, which are set by a user; adjusting the display shapes of the widgets to be edited into the target shapes to obtain target widgets; adjusting display parameters of display contents in the target widgets into the target shapes; finally, displaying the adjusted display contents in the widgets. According to the method, the user can edge the display shapes of the widgets according to own demands; in addition, the display parameters of the display contents in the widgets are adjusted while the display shapes of the widgets are adjusted, so that the condition that the display contents deform due to the change of display shapes of the widgets is avoided.

Description

The widget display packing of application program and device
Technical field
The disclosure relates to terminal device technical field, particularly relates to a kind of application window widget display packing and device.
Background technology
The widget (Widget) of application program be small application view (such as, clock widget, weather widget, music widget etc.), can be embedded in other application program, and can receive periodic upgrade content exist.Personalization is one of Widget key character, and user can like according to oneself, and the widget oneself liked adds on the desktop of terminal device (such as, smart mobile phone, panel computer etc.), thus makes that mobile phone desktop is more gorgeous, individual character.
But the display format of the widget provided in correlation technique is all square or rectangular, such as, the display format of n*n, can not meet the demand of user individual display shape.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of widget display packing and device of application program.
In order to solve the problems of the technologies described above, disclosure embodiment discloses following technical scheme:
According to the first aspect of disclosure embodiment, a kind of widget display packing of application program is provided, comprises:
Treat according to operating body the editing operation that editor widget carries out Shape Editing, produce widget edit instruction;
According to described widget edit instruction, obtain the target shape of widget to be edited;
The display shape of described widget to be edited is adjusted to described target shape, obtains target window widget;
The display parameter of displaying contents in described target window widget are adjusted to described target shape;
The displaying contents after adjustment is shown in described target window widget.
In conjunction with first aspect, in the first possible implementation of first aspect, described according to described widget edit instruction, obtain the target shape of widget to be edited, comprising:
After receiving described widget edit instruction, obtain the touch motion track of operating body;
The shape that described touch motion track is formed is defined as described target shape.
In conjunction with first aspect, in the implementation that the second of first aspect is possible, described according to described widget edit instruction, obtain the target shape of widget to be edited, comprising:
The target in-edit of the widget described to be edited that determination operation body is selected;
Obtain the target location of described target in-edit;
The target shape of described widget to be edited is determined according to the target location of described target in-edit.
In conjunction with the implementation that the second of first aspect is possible, in the third possible implementation of first aspect, the target location of the described target in-edit of described acquisition, comprising:
Obtain the moving parameter of described target in-edit; Described moving parameter comprises moving direction and displacement;
According to described moving direction, displacement, and the target location of target in-edit described in predeterminable range ratio-dependent.
In conjunction with the first of first aspect and first aspect to any one in the third possible implementation, in the 4th kind of possible implementation of first aspect, described method also comprises:
Obtain the attribute information of the widget to be edited that operating body is chosen;
Judge whether described widget to be edited allows to carry out Shape Editing according to the attribute information of described widget to be edited;
When determining that described widget to be edited allows to carry out Shape Editing, perform the step producing widget edit instruction.
According to the second aspect of disclosure embodiment, a kind of widget display device of application program is provided, comprises:
Directive generation module, for treating the editing operation that editor widget carries out Shape Editing according to operating body, produces widget edit instruction;
First acquisition module, for according to described widget edit instruction, obtains the target shape of widget to be edited;
First adjusting module, for the display shape of described widget to be edited is adjusted to described target shape, obtains target window widget;
Second adjusting module, for being adjusted to described target shape by the display parameter of displaying contents in described target window widget;
Display module, for showing the displaying contents after adjustment in described target window widget.
In conjunction with second aspect, in the first possible implementation of second aspect, described first acquisition module, comprising:
First obtains submodule, for after receiving described widget edit instruction, obtains the touch motion track of operating body;
First determines submodule, is defined as described target shape for the shape formed by described touch motion track.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, described first acquisition module, comprising:
Second determines submodule, for the target in-edit of the widget described to be edited that determination operation body is selected;
Second obtains submodule, for obtaining the target location of described target in-edit;
3rd determines submodule, for determining the target shape of described widget to be edited according to the target location of described target in-edit.
In conjunction with the implementation that the second of second aspect is possible, in the third possible implementation of second aspect, described second obtains submodule, comprising:
3rd obtains submodule, and for obtaining the moving parameter of described target in-edit, described moving parameter comprises moving direction and displacement;
4th determines submodule, for according to described moving direction, displacement, and the target location of target in-edit described in predeterminable range ratio-dependent.
In conjunction with the first of second aspect and second aspect to any one in the third possible implementation, in the 4th kind of possible implementation of second aspect, described device also comprises:
Second acquisition module, for obtaining the attribute information of the widget to be edited that operating body is chosen;
Judge module, for the attribute information according to described widget to be edited, judge whether described widget to be edited allows to carry out Shape Editing, when determining that described widget to be edited allows to carry out Shape Editing, treat according to operating body the editing operation that editor widget carries out Shape Editing by described directive generation module, produce the step of widget edit instruction.
According to the second aspect of disclosure embodiment, a kind of terminal device is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Treat according to operating body the editing operation that editor widget carries out Shape Editing, produce widget edit instruction;
According to described widget edit instruction, obtain the target shape of widget to be edited;
The display shape of described widget to be edited is adjusted to described target shape, obtains target window widget;
The display parameter of displaying contents in described target window widget are adjusted to described target shape;
The displaying contents after adjustment is shown in described target window widget.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: treat according to operating body the editing operation that editor widget carries out Shape Editing, generating window widget edit instruction, then, the target shape of the widget to be edited of user's setting is obtained.The display shape of widget to be edited is adjusted to target shape, obtains target window widget; And, the display parameter of displaying contents in target window widget are adjusted to target shape.Finally, in target window widget, show the displaying contents after adjustment.Utilize the method, user can according to the display shape of the demand editor widget of oneself.And, while the display shape of adjustment widget, have adjusted the display parameter of displaying contents in widget, avoid the display shape due to widget to change and cause displaying contents to be out of shape.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of the widget display packing of a kind of application program according to an exemplary embodiment;
Fig. 2 is the method flow diagram of a kind of S120 according to an exemplary embodiment;
Fig. 3 is the method flow diagram of the another kind of S120 according to an exemplary embodiment;
Fig. 4 is a kind of widget display effect schematic diagram according to an exemplary embodiment;
Fig. 5 is the another kind of widget display effect schematic diagram according to an exemplary embodiment;
Fig. 6 is another the widget display effect schematic diagram according to an exemplary embodiment;
Fig. 7 is the method flow diagram of the step S124 according to an exemplary embodiment;
Fig. 8 is the widget display packing process flow diagram of the another kind of application program according to the disclosure one exemplary embodiment;
Fig. 9 is the block diagram of the widget display device of a kind of application program according to an exemplary embodiment;
Figure 10 is the block diagram of a kind of first acquisition module according to an exemplary embodiment;
Figure 11 is the block diagram of another kind first acquisition module according to an exemplary embodiment;
Figure 12 is the block diagram of the second acquisition submodule according to an exemplary embodiment;
Figure 13 is the block diagram of the widget display device of another kind of application program according to an exemplary embodiment;
Figure 14 is the block diagram of the device of a kind of widget display packing for realizing application program according to an exemplary embodiment.
By above-mentioned accompanying drawing, illustrate the embodiment that the disclosure is clear and definite more detailed description will be had hereinafter.These accompanying drawings be not in order to limited by any mode the disclosure design scope, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the process flow diagram of the widget display packing of a kind of application program according to an exemplary embodiment, the method is applied to terminal device (such as, smart mobile phone, panel computer etc.) in, as shown in Figure 1, said method comprising the steps of:
In step s 110, treat according to operating body the editing operation that editor widget carries out Shape Editing, produce widget edit instruction.
Terminal device detects that operating body is treated after editor widget carries out the editing operation of Shape Editing, produces corresponding widget edit instruction according to described editing operation.
Wherein, described editing operation can be the long action by widget, or, the clicking operation of the editor's shape control in the menu bar of window widget.
In the step s 120, according to described widget edit instruction, the target shape of widget to be edited is obtained.
Terminal device obtains the target shape of widget to be edited after producing widget edit instruction.
In the disclosure one exemplary embodiment, described target shape can be that the shape of operating body to the widget created edits the net shape obtained.
In another exemplary embodiment of the present disclosure, operating body directly can draw the target shape of widget to be edited.
In another exemplary embodiment of the present disclosure, the selectable shape of display window widget in a menu, user selects wherein a kind of target shape as widget to be edited from menu.
In step s 130, which, the display shape of described widget to be edited is adjusted to described target shape, obtains target window widget.
Adjust the display shape parameter of widget to be edited, the display shape of widget to be edited is adjusted to described target shape, obtain target window widget.
In step S140, the display parameter of displaying contents in described target window widget are adjusted to described target shape.
After having adjusted the display shape of widget to be edited, need the displaying contents adjusted further in this widget, thus displaying contents and target window widget are matched.
In step S150, in described target window widget, show the displaying contents after adjustment.
The widget display packing of the application program that the present embodiment provides, the editing operation that editor widget carries out Shape Editing is treated according to operating body, generating window widget edit instruction, then, obtains the target shape of the widget to be edited of user's setting.The display shape of widget to be edited is adjusted to target shape, obtains target window widget; And, the display parameter of displaying contents in target window widget are adjusted to target shape.Finally, in target window widget, show the displaying contents after adjustment.Utilize the method, user can according to the display shape of the demand editor widget of oneself.And, while the display shape of adjustment widget, have adjusted the display parameter of displaying contents in widget, avoid the display shape due to widget to change and cause displaying contents to be out of shape.
Fig. 2 is the process flow diagram of the step S120 according to an exemplary embodiment, and in the present embodiment, operating body directly can draw the target shape of widget to be edited, and as shown in Figure 2, step S120 can comprise step S121 ~ S122.
In step S121, after receiving described widget edit instruction, obtain the touch motion track of operating body.
After receiving widget edit instruction, can show one piece of blank drawing board on the touchscreen, allow user on drawing board, draw the shape of widget, terminal device obtains the touch motion track of operating body on drawing board.
In step S122, the shape that described touch motion track is formed is defined as described target shape.
Using the touch motion track of operating body on drawing board as target shape.
The method of the target shape of the acquisition that the present embodiment provides widget to be edited, directly can be drawn the shape of widget, once can draw out the display shape of the widget oneself wanted by user, simple to operate, and speed of drawing is fast.
Fig. 3 is the process flow diagram of the step S120 according to an exemplary embodiment, in the present embodiment, after terminal device detects widget edit instruction, the border that user can treat editor widget is edited, as shown in Figure 3, step S120 can comprise step S123 ~ S125.
In step S123, the target in-edit of the widget described to be edited that determination operation body is selected.
Terminal device detects that user treats after editor widget carries out the editing operation of editing, and widget to be edited enters editing mode, can carry out the in-edit edited in the boundary display of widget display shape to be edited.
Then, the target in-edit that user chooses is determined.User can move to any direction drag target in-edit, thus changes the position of target in-edit, and then changes the display shape of widget.
As shown in Figure 4, shown on the display interface of terminal device 1 is the widget 2 of news client.When pressing the optional position on this widget 2 with the head of a household, there will be in the corner of this widget 2 and marginal position can in-edit, i.e. A, B, C, D, E, F.User can on selection window widget 2 arbitrarily can in-edit as target in-edit, suppose that user chooses in-edit E as target in-edit.
In step S124, obtain the target location of described target in-edit.
In the disclosure one exemplary embodiment, terminal device can detect the position that user's drag target in-edit finally stops, and this position is defined as the target location of target in-edit.Wherein, can by detecting the target location of the moving parameter determination target in-edit of target in-edit.
Still for the example shown in Fig. 4, if target in-edit E drags down by user, then the lower boundary of this widget 2 moves down, then the window transform that can show four titles is as shown in Figure 4 the window that can show six titles shown in Fig. 5.
In step s 125, the target shape of described widget to be edited is determined according to the target location of described target in-edit.
Still for the widget 2 shown in Fig. 4, suppose that the target in-edit that user chooses is in-edit E and in-edit F, and, user drags two target in-edits and moves up, obtain widget as shown in Figure 6, the right half part of window moves up, and namely target in-edit E and F moves up, and left-half does not move, namely in Fig. 6 can in-edit D and H (wherein can in-edit H by can in-edit E divide produce) mobile.The below of in-edit E and F is the desktop of terminal device, still can place other application icon, like this, can improve the desktop utilization factor of terminal device.
The method of the target shape of the acquisition that the present embodiment provides widget to be edited, editor can be carried out by user to the border of existing widget to obtain, can according to the shape of the Content adaptation widget shown in existing widget, thus the editor of in-edit can obtain the target shape of widget to be edited according to user to widget, simple to operate.
Fig. 7 is the method flow diagram of the step S124 according to an exemplary embodiment, and as shown in Figure 7, step S124 comprises step S1241 ~ S1242:
In step S1241, obtain the moving parameter of described target in-edit, described moving parameter comprises moving direction and displacement.
In step S1242, according to described moving direction, displacement, and the target location of target in-edit described in predeterminable range ratio-dependent.
Described predeterminable range ratio can be selected as required by user, if predeterminable range ratio is 1, then target in-edit finally moves the target location that the position stopped is exactly target in-edit.If predeterminable range ratio is 0.8, then the displacement of target in-edit is multiplied by 0.8 position obtained is target location.
The method of the target location of the acquisition target in-edit that the present embodiment provides is the moving parameter obtaining target in-edit, then, according to the target location of moving parameter and predeterminable range ratio-dependent target in-edit, like this, user can select suitable predeterminable range ratio according to demand, more flexibly.
Fig. 8 is the widget display packing process flow diagram of the another kind of application program according to the disclosure one exemplary embodiment, and as shown in Figure 8, the method can also comprise the following steps on basis embodiment illustrated in fig. 1:
In step S210, obtain the attribute information of the widget to be edited that operating body is chosen.
Described attribute information can comprise the information whether widget allows to carry out Shape Editing; Or described attribute information can be the title of widget owning application.
In step S220, judge whether described widget to be edited allows to carry out Shape Editing according to described attribute information; If so, then step S110 is performed; If not, then current process is terminated.
If attribute information is the title of widget owning application, then judge whether described widget is applicable to compiling other shape according to the title of application program.Such as, can specify the application program being not suitable for carrying out Shape Editing in advance, if widget owning application to be edited is preassigned application program, then widget to be edited is not suitable for carrying out Shape Editing.
Such as, the shape normally rectangle of photograph album widget, is not suitable for compiling other shape, if compile other shape, in photograph album widget, the photo of display deformation can occur.
The widget display packing of the application program that the present embodiment provides, before generating window widget edit instruction, first judge whether widget to be edited allows to carry out Shape Editing, if run and carry out Shape Editing, then continue to perform follow-up flow process, improve the validity of the Shape Editing of widget.
Fig. 9 is the block diagram of the widget display device of a kind of application program according to an exemplary embodiment, this application of installation is in terminal device, as shown in Figure 9, described device can comprise: directive generation module 110, first acquisition module 120, first adjusting module 130, second adjusting module 140 and display module 150.
Directive generation module 110 is configured to, and treats according to operating body the editing operation that editor widget carries out Shape Editing, produces widget edit instruction;
First acquisition module 120 is configured to, and according to described widget edit instruction, obtains the target shape of widget to be edited.
First adjusting module 130 is configured to, and the display shape of described widget to be edited is adjusted to described target shape, obtains target window widget.
Second adjusting module 140 is configured to, and the display parameter of displaying contents in described target window widget are adjusted to described target shape.
Display module 150 is configured to, and shows the displaying contents after adjustment in described target window widget.
The widget display device of the application program that the present embodiment provides, the editing operation that editor widget carries out Shape Editing is treated according to operating body, generating window widget edit instruction, then, obtains the target shape of the widget to be edited of user's setting.The display shape of widget to be edited is adjusted to target shape, obtains target window widget; And, the display parameter of displaying contents in target window widget are adjusted to target shape.Finally, in target window widget, show the displaying contents after adjustment.Utilize the method, user can according to the display shape of the demand editor widget of oneself.And, while the display shape of adjustment widget, have adjusted the display parameter of displaying contents in widget, avoid the display shape due to widget to change and cause displaying contents to be out of shape.
Figure 10 is the block diagram of a kind of first acquisition module according to an exemplary embodiment, and as shown in Figure 10, described first acquisition module 120 can comprise the first acquisition submodule 121 and first and determine submodule 122.
First obtains submodule 121 is configured to, and after receiving described widget edit instruction, obtains the touch motion track of operating body.
First determines that submodule 122 is configured to, and the shape that described touch motion track is formed is defined as described target shape.
The shape directly can being drawn widget by user that the present embodiment provides, once can draw out the display shape of the widget oneself wanted, simple to operate, and speed of drawing is fast.
Figure 11 is the block diagram of another kind first acquisition module according to an exemplary embodiment, and as shown in figure 11, described first acquisition module 120 comprises: second determines that submodule 123, second obtains submodule 124 and the 3rd and determines submodule 125.
Second determines that submodule 123 is configured to, the target in-edit of the widget described to be edited that determination operation body is selected.
Second obtains submodule 124 is configured to, and obtains the target location of described target in-edit.
In the disclosure one exemplary embodiment, as shown in figure 12, described second acquisition submodule 124 can comprise: the 3rd obtains submodule 1241 and the 4th determines submodule 1242.
3rd obtains submodule 1241 is configured to, and obtain the moving parameter of described target in-edit, described moving parameter comprises moving direction and displacement.
4th determines that submodule 1242 is configured to, according to described moving direction, displacement, and the target location of target in-edit described in predeterminable range ratio-dependent.
3rd determines that submodule 125 is configured to, and determines the target shape of described widget to be edited according to the target location of described target in-edit.
The method of the target shape of the acquisition that the present embodiment provides widget to be edited, editor can be carried out by user to the border of existing widget to obtain, can according to the shape of the Content adaptation widget shown in existing widget, thus the editor of in-edit can obtain the target shape of widget to be edited according to user to widget, simple to operate.
Figure 13 is the block diagram of the widget display device of another kind of application program according to an exemplary embodiment, and as shown in figure 13, this device can also comprise on basis embodiment illustrated in fig. 9: the second acquisition module 210 and judge module 220.
Second acquisition module 210 is configured to, and obtains the attribute information of the widget to be edited that operating body is chosen.
Judge module 220 is configured to, according to the attribute information of described widget to be edited, judge whether described widget to be edited allows to carry out Shape Editing, when determining that described widget to be edited allows to carry out Shape Editing, treat according to operating body the editing operation that editor widget carries out Shape Editing by described directive generation module 110, produce the step of widget edit instruction.
The widget display device of the application program that the present embodiment provides, before generating window widget edit instruction, first judge whether widget to be edited allows to carry out Shape Editing, if run and carry out Shape Editing, then continue to perform follow-up flow process, improve the validity of the Shape Editing of widget.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 14 is the block diagram of the device 800 of a kind of widget display packing for realizing application program according to an exemplary embodiment.Such as, device 800 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
As shown in figure 14, device 800 can comprise following one or more assembly: processing components 802, storer 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor module 814, and communications component 816.
The integrated operation of the usual control device 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing components 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.
Storer 804 is configured to store various types of data to be supported in the operation of device 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 806 is device 800 provide electric power.Power supply module 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.
Multimedia groupware 808 is included in the screen providing an output interface between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When device 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loudspeaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 814 comprises one or more sensor, for providing the state estimation of various aspects for device 800.Such as, sensor module 814 can detect the opening/closing state of device 800, the relative positioning of assembly, such as described assembly is display and the keypad of device 800, the position of all right pick-up unit 800 of sensor module 814 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, the temperature variation of device 800 orientation or acceleration/deceleration and device 800.Sensor module 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 816 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (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 described storage medium is performed by the processor of mobile terminal, make terminal device can perform a kind of widget display packing of application program, described method comprises:
Treat according to operating body the editing operation that editor widget carries out Shape Editing, produce widget edit instruction;
According to described widget edit instruction, obtain the target shape of widget to be edited;
The display shape of described widget to be edited is adjusted to described target shape, obtains target window widget;
The display parameter of displaying contents in described target window widget are adjusted to described target shape;
The displaying contents after adjustment is shown in described target window widget.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (11)

1. a widget display packing for application program, is characterized in that, comprising:
Treat according to operating body the editing operation that editor widget carries out Shape Editing, produce widget edit instruction;
According to described widget edit instruction, obtain the target shape of widget to be edited;
The display shape of described widget to be edited is adjusted to described target shape, obtains target window widget;
The display parameter of displaying contents in described target window widget are adjusted to described target shape;
The displaying contents after adjustment is shown in described target window widget.
2. method according to claim 1, is characterized in that, described according to described widget edit instruction, obtains the target shape of widget to be edited, comprising:
After receiving described widget edit instruction, obtain the touch motion track of operating body;
The shape that described touch motion track is formed is defined as described target shape.
3. method according to claim 1, is characterized in that, described according to described widget edit instruction, obtains the target shape of widget to be edited, comprising:
The target in-edit of the widget described to be edited that determination operation body is selected;
Obtain the target location of described target in-edit;
The target shape of described widget to be edited is determined according to the target location of described target in-edit.
4. method according to claim 3, is characterized in that, the target location of the described target in-edit of described acquisition, comprising:
Obtain the moving parameter of described target in-edit; Described moving parameter comprises moving direction and displacement;
According to described moving direction, displacement, and the target location of target in-edit described in predeterminable range ratio-dependent.
5. the method according to any one of claim 1-4, is characterized in that, described method also comprises:
Obtain the attribute information of the widget to be edited that operating body is chosen;
Judge whether described widget to be edited allows to carry out Shape Editing according to the attribute information of described widget to be edited;
When determining that described widget to be edited allows to carry out Shape Editing, perform the step producing widget edit instruction.
6. a widget display device for application program, is characterized in that, comprising:
Directive generation module, for treating the editing operation that editor widget carries out Shape Editing according to operating body, produces widget edit instruction;
First acquisition module, for according to described widget edit instruction, obtains the target shape of widget to be edited;
First adjusting module, for the display shape of described widget to be edited is adjusted to described target shape, obtains target window widget;
Second adjusting module, for being adjusted to described target shape by the display parameter of displaying contents in described target window widget;
Display module, for showing the displaying contents after adjustment in described target window widget.
7. device according to claim 6, is characterized in that, described first acquisition module, comprising:
First obtains submodule, for after receiving described widget edit instruction, obtains the touch motion track of operating body;
First determines submodule, is defined as described target shape for the shape formed by described touch motion track.
8. device according to claim 6, is characterized in that, described first acquisition module, comprising:
Second determines submodule, for the target in-edit of the widget described to be edited that determination operation body is selected;
Second obtains submodule, for obtaining the target location of described target in-edit;
3rd determines submodule, for determining the target shape of described widget to be edited according to the target location of described target in-edit.
9. device according to claim 8, is characterized in that, described second obtains submodule, comprising:
3rd obtains submodule, and for obtaining the moving parameter of described target in-edit, described moving parameter comprises moving direction and displacement;
4th determines submodule, for according to described moving direction, displacement, and the target location of target in-edit described in predeterminable range ratio-dependent.
10. the device according to any one of claim 6-9, is characterized in that, described device also comprises:
Second acquisition module, for obtaining the attribute information of the widget to be edited that operating body is chosen;
Judge module, for the attribute information according to described widget to be edited, judge whether described widget to be edited allows to carry out Shape Editing, when determining that described widget to be edited allows to carry out Shape Editing, treat according to operating body the editing operation that editor widget carries out Shape Editing by described directive generation module, produce the step of widget edit instruction.
11. 1 kinds of terminal devices, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Treat according to operating body the editing operation that editor widget carries out Shape Editing, produce widget edit instruction;
According to described widget edit instruction, obtain the target shape of widget to be edited;
The display shape of described widget to be edited is adjusted to described target shape, obtains target window widget;
The display parameter of displaying contents in described target window widget are adjusted to described target shape;
The displaying contents after adjustment is shown in described target window widget.
CN201510121713.8A 2015-03-19 2015-03-19 The widget display methods and device of application program Active CN104778037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510121713.8A CN104778037B (en) 2015-03-19 2015-03-19 The widget display methods and device of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510121713.8A CN104778037B (en) 2015-03-19 2015-03-19 The widget display methods and device of application program

Publications (2)

Publication Number Publication Date
CN104778037A true CN104778037A (en) 2015-07-15
CN104778037B CN104778037B (en) 2019-01-04

Family

ID=53619523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510121713.8A Active CN104778037B (en) 2015-03-19 2015-03-19 The widget display methods and device of application program

Country Status (1)

Country Link
CN (1) CN104778037B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549814A (en) * 2015-12-01 2016-05-04 惠州Tcl移动通信有限公司 Mobile terminal based photographing method and mobile terminal
CN109032441A (en) * 2017-06-09 2018-12-18 阿里巴巴集团控股有限公司 A kind of management method at interface, device, equipment and storage medium
CN109976637A (en) * 2019-03-27 2019-07-05 网易(杭州)网络有限公司 Dialog box method of adjustment, dialog box adjustment device, electronic equipment and storage medium
CN110691161A (en) * 2018-07-06 2020-01-14 上海涌玉文化传播有限公司 Mobile phone display screen advertisement pushing system and advertisement display method
WO2024036998A1 (en) * 2022-08-19 2024-02-22 荣耀终端有限公司 Display method, storage medium, and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092512A (en) * 2013-01-06 2013-05-08 东莞宇龙通信科技有限公司 Terminal and position adjusting method of input panel
CN104123078A (en) * 2014-08-12 2014-10-29 广州三星通信技术研究有限公司 Method and device for inputting information
CN104156166A (en) * 2014-07-21 2014-11-19 小米科技有限责任公司 Controls distribution adjustment method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092512A (en) * 2013-01-06 2013-05-08 东莞宇龙通信科技有限公司 Terminal and position adjusting method of input panel
CN104156166A (en) * 2014-07-21 2014-11-19 小米科技有限责任公司 Controls distribution adjustment method and device
CN104123078A (en) * 2014-08-12 2014-10-29 广州三星通信技术研究有限公司 Method and device for inputting information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
向萍等: "《中文版Office2003从入门到精通》", 31 January 2014 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549814A (en) * 2015-12-01 2016-05-04 惠州Tcl移动通信有限公司 Mobile terminal based photographing method and mobile terminal
CN109032441A (en) * 2017-06-09 2018-12-18 阿里巴巴集团控股有限公司 A kind of management method at interface, device, equipment and storage medium
CN109032441B (en) * 2017-06-09 2021-12-28 斑马智行网络(香港)有限公司 Interface management method, device, equipment and storage medium
CN110691161A (en) * 2018-07-06 2020-01-14 上海涌玉文化传播有限公司 Mobile phone display screen advertisement pushing system and advertisement display method
CN109976637A (en) * 2019-03-27 2019-07-05 网易(杭州)网络有限公司 Dialog box method of adjustment, dialog box adjustment device, electronic equipment and storage medium
WO2024036998A1 (en) * 2022-08-19 2024-02-22 荣耀终端有限公司 Display method, storage medium, and electronic device

Also Published As

Publication number Publication date
CN104778037B (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN105657173B (en) Volume adjusting method, device and mobile terminal
CN104598104A (en) Widget processing method and device
CN105487863A (en) Interface setting method and device based on scene
CN104363154A (en) Smart home device control method and device
CN107066172A (en) The document transmission method and device of mobile terminal
CN104778037A (en) Display method and display device for widgets of application program
CN105159559A (en) Mobile terminal control method and mobile terminal
CN105388779A (en) Control method and device for intelligent equipment
CN104793843A (en) Desktop display method and device
CN105511740A (en) Method and device for switching application interface
CN105487749A (en) Application icon organizing method and device
CN104199598A (en) Menu display method and device
CN104978200A (en) Application program display method and device
CN104731688A (en) Method and device for prompting reading schedule
CN110069758A (en) A kind of dissemination method of multimedia messages, device and storage medium
CN103914148A (en) Function interface display method and device and terminal equipment
CN104020924A (en) Label establishing method and device and terminal
CN104461348A (en) Method and device for selecting information
CN105242942A (en) Application control method and apparatus
CN104636170A (en) Application acquiring method and device and electronic device
CN104834433A (en) Method and device for editing text and terminal
CN105139378A (en) Card boundary detection method and apparatus
CN104503690A (en) Arrangement method and device for application icons
CN104978113A (en) Dockbar processing method and apparatus
CN105224174A (en) The display packing of Paste and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant