CN105094757A - Method and device for emptying text content on Android system, and terminal device - Google Patents

Method and device for emptying text content on Android system, and terminal device Download PDF

Info

Publication number
CN105094757A
CN105094757A CN201410177676.8A CN201410177676A CN105094757A CN 105094757 A CN105094757 A CN 105094757A CN 201410177676 A CN201410177676 A CN 201410177676A CN 105094757 A CN105094757 A CN 105094757A
Authority
CN
China
Prior art keywords
text
empty
button
content
rendered object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410177676.8A
Other languages
Chinese (zh)
Inventor
江翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410177676.8A priority Critical patent/CN105094757A/en
Publication of CN105094757A publication Critical patent/CN105094757A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The present invention provides a method and device for emptying text contents on an Android system. The device comprises a display unit for establishing a drawable object in an edit text control and displaying an emptying button by using the drawable object; a monitoring unit for monitoring screen touch events in a corresponding region of the drawable object; and an emptying unit for emptying the text content in the edit text control according to a monitoring result of the monitoring unit. By using the method and the device, for a layout using deletable text edit boxes, only one kind of edit text control is required to be defined, thereby simplifying the control layout, and multiresolution multi-pixel density of a plurality of terminal devices can be adapted.

Description

At the method for the empty content of text of Android system supernatant, device and terminal device
Technical field
The present invention relates to the editable text control field of Android system, particularly a kind of method and apparatus at the empty content of text of Android system supernatant.
Background technology
At present, editable text (EditText) control general in Android (Android) system, the soft keyboard that the system of employing provides is to obtain user's input and to be presented in the middle of control by input content.When user want to delete input content time, need to be deleted singly by the delete button on soft keyboard, but when user inputted more word and think all to empty re-enter time, the delete button repeatedly triggered on soft keyboard of having to.PC (PC) can be passed through entirely select disposable deletion input content, but this operation is not very convenient in mobile terminal.
At present in mobile terminal, had and increased the button that can click (Button) control by the appropriate location in editable text control, the click event monitoring Button control empties the implementation of content of text.
To in the research and practice process of prior art, inventor finds to there is following problem in prior art: each needs use the layout can deleting text edit box needs definition EditText and Button two controls, need the click of registering Button control to monitor simultaneously, thus make control layout complexity loaded down with trivial details; Further, two different controls are superimposed, and need the suitability considering the many picture element densities of multiresolution, thus cause implementation feasible on a certain station terminal, and may face the problem of layout entanglement on another station terminal.
Summary of the invention
The object of the embodiment of the present application is to provide a kind of method at the empty content of text of Android system supernatant, device and terminal device, to realize for using the layout can deleting text edit box, can only need to define a kind of editable text control, thus the complexity that can simplify control layout is loaded down with trivial details, and can the many picture element densities of multiresolution of adaptive multiple terminal device.
For solving the problems of the technologies described above, a kind of method at the empty content of text of Android system supernatant that the embodiment of the present application provides is achieved in that
The method comprises:
Creating in editable text control can rendered object, uses described can displaying and empty button by rendered object;
Monitor described can the screen touch event of rendered object corresponding region; And
The content of text in described editable text control is emptied according to snoop results.
According to an aspect of above-described embodiment, described in empty button and be positioned at described editable text control inside and occupy position right and placed in the middle up and down.
A kind of device at the empty content of text of Android system supernatant that the embodiment of the present application provides is achieved in that
This device comprises:
Display unit, creating in editable text control can rendered object, uses described can displaying and empty button by rendered object;
Monitoring unit, monitor described can the screen touch event of rendered object corresponding region; And
Empty unit, empty the content of text in described editable text control according to the snoop results of described monitoring unit.
According to an aspect of above-described embodiment, empty button described in described display unit makes and be positioned at position right and placed in the middle up and down, residence, described editable text control inside.
A kind of terminal device that the embodiment of the present application provides is achieved in that this terminal device comprises the device at the empty content of text of Android system supernatant of above-described embodiment.
The technical scheme provided from above the embodiment of the present application, according to the technical scheme of the application, can only need to define a kind of editable text control for using the layout can deleting text edit box, thus the complexity that can simplify control layout is loaded down with trivial details, and can the many picture element densities of multiresolution of adaptive multiple terminal device.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a composition schematic diagram of the device at the empty content of text of Android system supernatant of the embodiment of the present application;
Fig. 2 is that the concrete of the editable text control of the embodiment of the present application realizes class figure.
Fig. 3 is the composition schematic diagram emptying unit in the device of the empty content of text of Android system supernatant of the embodiment of the present application;
Fig. 4 is another composition schematic diagram of the device at the empty content of text of Android system supernatant of the embodiment of the present application;
Fig. 5 is a process flow diagram of the method at the empty content of text of Android system supernatant of the embodiment of the present application;
Fig. 6 is the process flow diagram emptying the content of text in editable text control according to snoop results of the embodiment of the present application;
Fig. 7 is the concrete process flow diagram emptying content of text of the embodiment of the present application;
Fig. 8 is another process flow diagram of the method at the empty content of text of Android system supernatant of the embodiment of the present application;
Fig. 9 is the process flow diagram emptying button of the concrete rendering text input control of the embodiment of the present application;
Figure 10 is a schematic block diagram of the formation of the terminal device of the embodiment of the present application.
Embodiment
The embodiment of the present application provides a kind of method at the empty content of text of Android system supernatant, device and terminal device.
Technical scheme in the application is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
Embodiment 1
The embodiment of the present application 1 provides a kind of device at the empty content of text of Android system supernatant.
Fig. 1 is a composition schematic diagram of the device at the empty content of text of Android system supernatant of the embodiment of the present application 1, and as shown in Figure 1, device 100 comprises: display unit 101, monitoring unit 102 and empty unit 103.
Wherein, display unit 101 to use in Android system editable text control to create can rendered object (drawable), can be shown and empty button by rendered object (such as being realized by drawableRight or drawableLeft attribute) by this; Monitoring unit 102 monitors this can the screen touch event of rendered object corresponding region; Empty unit 103 and empty content of text in this editable text control according to the snoop results of monitoring unit 102.
In the embodiment of the present application, display unit 101 can make to empty button and is positioned at editable text control inside and occupies right, placed in the middle or occupy left position.
In the embodiment of the present application, Fig. 2 is that concrete one of editable text control realizes class figure.As shown in Figure 2, editable text control provides onPreDraw () method, dispatchTouchEvent () method, above two methods to be all in due course initiatively triggers callback by system.Before wherein onPreDraw () readjustment betides editable text drafting, overriding the method can be passed through, for editable text provides self-defining drafting behavior.
In an embodiment of the embodiment of the present application, the screen touch event that monitoring unit 102 is monitored is realized by dispatchTouchEvent () method, dispatchTouchEvent () readjustment betides after editable text interior zone triggers screen touch event, by the position coordinates provided in parameter event wherein, the region of touch can be located.
As shown in Figure 2, in the embodiment of the present application, editable text control additionally provides setCompoundDrawables () method, and the method is for arranging the picture element of editable text control inside circumference for representing.GetText () method can obtain the word in current text input frame.GetWidth () method can obtain the width of current text frame, and setText () method can arrange the content in current text frame.
In the embodiment of the present application, display unit 101 Android can be utilized to provide editable text control in can rendered object.Such as, in the present embodiment, this can realize by drawableRight attribute by rendered object, this drawableRight attribute can at the self-defined picture of right hand edge of editable text control inside for representing, therefore, display unit 101 can with can showing and empty button by rendered object, thus, for using the layout can deleting text edit box can only need to define a kind of editable text control, thus the complexity that can simplify control layout is loaded down with trivial details.
In an embodiment of the embodiment of the present application, in the editable text control that display unit 101 can also utilize Android to provide, the spacing emptying button and input text content of self-defined displaying can be carried out by rendered object.Such as, in the present embodiment, this can realize by drawablePadding attribute by rendered object.But the present embodiment is not limited thereto, other attributes in the editable text control that also can be provided by Android realize.Thus, displaying contents can be optimized further, enhance the experience of user.
In an embodiment of the embodiment of the present application, display unit 101 can make to empty button and be positioned at position right and placed in the middle up and down, residence, editable text control inside.In another embodiment of the embodiment of the present application, display unit 101 also can make to empty button and be positioned at the position that editable text control inside occupies a left side.Therefore, be positioned at all the time editable text control inside occupy right and up and down placed in the middle or occupy that left position represents can the picture that defines of rendered object (drawableRight attribute), thus can the many picture element densities of multiresolution of adaptive multiple terminal device.
Fig. 3 is the composition schematic diagram emptying unit 103 of the embodiment of the present application 1.As shown in Figure 3, empty unit 103 to comprise: the second judging unit 1031 and content processing unit 1032.
Wherein, what by the screen touch event that monitoring unit 102 listens to, the second judging unit 1031 judged whether user inputs touch point be in that display unit 101 shows empties in the region of button; Content processing unit 1032, when this touch point is in this region emptying button, empties the content of text of editable text control.
In the embodiment of the present application, when system triggers when touch event, the second judging unit 1031 is specifically for judging whether the x coordinate of this touch point is greater than TextField._width and the described difference emptying the icon width of button.
Such as, the getText () method that editable text control provides can obtain the word in current text input frame, getWidth () method can obtain the width of current text frame, setText () method can arrange the content in current text frame, therefore, the x coordinate of touch point is obtained by event.getX () method, getWidth () method obtains the width of text box, second judging unit 1031 judges whether x coordinate event.getX () of touch point is greater than the value that TextField._width getWidth () deducts the icon width drawableRight.getIntrinSicWidth () emptying button.Wherein, when this x coordinate is greater than this difference, that is, touch point is dropped on this and is emptied in the figure target area of button, then content processing unit 1032 just empties the content of text in text box.Thus, the accuracy emptying content of text operation can be improved, thus strengthen Consumer's Experience.
In the embodiment of the present application, the function of monitoring unit 102 similarly to the prior art, does not repeat them here.The all parts of device 100 can be realized by specialized hardware, firmware, software or its combination, and does not depart from the scope of the embodiment of the present application.
By the present embodiment, for using the layout can deleting text edit box can only need to define a kind of editable text control, thus the complexity that can simplify control layout is loaded down with trivial details, and can the many picture element densities of multiresolution of adaptive multiple terminal device.In addition, the accuracy emptying content of text operation can be improved, thus strengthen Consumer's Experience.
Embodiment 2
The embodiment of the present application 2 provides a kind of device at the empty content of text of Android system supernatant.The basis of embodiment 1 is further described the application.
Fig. 4 is a composition schematic diagram of the device at the empty content of text of Android system supernatant of the embodiment of the present application 2, and as shown in Figure 4, device 400 comprises: the first judging unit 401, display unit 402, monitoring unit 403 and empty unit 404.
Wherein, the first judging unit 401 can use the pre-rendered object of editable text control (such as being realized by onPreDraw attribute), judges whether to need displaying to empty button according to the current text frame of this editable text control.Such as, in the present embodiment, this pre-rendered object realizes by onPreDraw attribute, and wherein, text box is not for showing that this empties button time empty in this prior.Display unit 402, when needs displaying empties button, editable text control can be used in Android system to create can rendered object, can be shown and empty button by rendered object by this.Such as, can realize by drawableRight attribute by rendered object.Monitoring unit 403, can monitor this can the screen touch event of rendered object corresponding region; Empty unit 404, the content of text in this editable text control can be emptied according to the snoop results of monitoring unit 403.
In example 2, monitoring unit 403 and empty unit 404 and the monitoring unit 102 in embodiment 1 and empty unit 103 and have identical 26S Proteasome Structure and Function, does not repeat them here.
In the embodiment of the present application, first judging unit 401 employs the pre-rendered object (onPreDraw attribute) of editable text control, wherein when editable text control adjusts back pre-rendered object (onPreDraw attribute), first judging unit 401 judges whether current text frame has word, if this current text frame has word, then show and empty button, otherwise do not show.Thus, avoid and do not have during content of text, to show the interference emptying button and input user current, thus enhance Consumer's Experience.
In the embodiment of the present application, when the first judging unit 401 judges to need displaying to empty button, display unit 402 can use editable text control in Android system to create drawableRight attribute, is shown empty button by this drawableRight attribute.
In the embodiment of the present application, realizing of display unit 402 and the realization that empties unit 404 and above-described embodiment 1 corresponding units is identical, does not repeat them here.
In the embodiment of the present application, all parts of device 400 can be realized by specialized hardware, firmware, software or its combination, and does not depart from the scope of the embodiment of the present application.
Pass through the present embodiment, can only need to define a kind of editable text control for using the layout can deleting text edit box, can the many picture element densities of multiresolution of adaptive multiple terminal device, and avoid and do not have during content of text, to show the interference emptying button and input user current.In addition, the accuracy emptying content of text operation can be improved, thus strengthen Consumer's Experience.
Embodiment 3
The embodiment of the present application 3 provides a kind of method at the empty content of text of Android system supernatant, and corresponding with the device of embodiment 1, identical content repeats no more.
Fig. 5 is a process flow diagram of the method at the empty content of text of Android system supernatant of the embodiment of the present application 3, and as shown in Figure 5, the method comprises:
Step 501, creating in editable text control can rendered object, uses this can to show and empty button by rendered object;
Step 502, monitoring this can the screen touch event of rendered object corresponding region;
Step 503, empties the content of text in this editable text control according to snoop results.
In step 501, this can realize by drawableRight attribute by rendered object.
In step 501, the emptying button and can be positioned at this editable text control inside and occupy position right and placed in the middle up and down of displaying.
Fig. 6 is the process flow diagram emptying the content of text in this editable text control according to snoop results of the embodiment of the present application, as shown in Figure 6, comprises according to the content of text that snoop results empties in this editable text control:
By screen touch event, step 601, judges whether touch point that user inputs is in and empties in the region of button;
Step 602, when this touch point is in this region emptying button, empties the content of text of editable text control.
In step 601, by judging whether the x coordinate of described touch point is greater than TextField._width and the described difference emptying the icon width of button, judge whether touch point that user inputs is in this and empties in the region of button, wherein, when this x coordinate is greater than this difference, determine that touch point is dropped on this and emptied in the figure target area of button.
In an embodiment of the present embodiment, the concrete flow process emptying content of text as shown in Figure 7.Fig. 7 is the concrete process flow diagram emptying content of text of the embodiment of the present application, shows example during concrete enforcement.As shown in Figure 7, screen touch event is realized by dispatchTouchEvent () method, judge that event.getX () >getWidth ()-drawableRight.getIntrinSicWidth () is as true time again, the setText () content arranged in current text frame is null, that is, the content of text of editable text control is emptied.Thus, the accuracy emptying content of text operation can be improved, thus strengthen Consumer's Experience.
In the embodiment of the present application, realizing of the realization of each step above-mentioned and corresponding units in embodiment 1 is identical, and the embodiment of the present application repeats no more.
By the present embodiment, for using the layout can deleting text edit box can only need to define a kind of editable text control, thus the complexity that can simplify control layout is loaded down with trivial details, and can the many picture element densities of multiresolution of adaptive multiple terminal device.In addition, the accuracy emptying content of text operation can be improved, thus strengthen Consumer's Experience.
Embodiment 4
The embodiment of the present application 4 provides a kind of method at the empty content of text of Android system supernatant, and corresponding with the device of embodiment 2, identical content repeats no more.
Fig. 8 is the process flow diagram of the method at the empty content of text of Android system supernatant of the embodiment of the present application 4, and as shown in Figure 8, the method comprises:
Step 801, uses the pre-rendered object of editable text control, judges whether to need displaying to empty button according to the current text frame of editable text control;
Step 802, when text box is not empty in this prior, creating in editable text control can rendered object, uses this can to show and empty button by rendered object;
Step 803, monitoring this can the screen touch event of rendered object corresponding region;
Step 804, empties the content of text in this editable text control according to snoop results.
In step 801, this pre-rendered object realizes by onPreDraw attribute.
In step 802, this can realize by drawableRight attribute by rendered object.
In an embodiment of the embodiment of the present application, the process flow diagram emptying button of rendering text input control as figure 9.Fig. 9 is the process flow diagram emptying button of the concrete rendering text input control of the embodiment of the present application, shows example during concrete enforcement.As shown in Figure 9, after calling the onPreDraw attribute of editable text control, judge if (TextUtils.isEmpty (getText ())), if this is judged as very, then calling setCompoundDrawables () makes editable text control inside circumference be all null for the picture element represented, and does not namely show and empties button; If this is judged as vacation, then calls setCompoundDrawables () and the drawableRight attribute of editable text control is shown empty button.
In the embodiment of the present application, realizing of the realization of each step above-mentioned and corresponding units in embodiment 2 is identical, and the embodiment of the present application repeats no more.
Pass through the present embodiment, can only need to define a kind of editable text control for using the layout can deleting text edit box, can the many picture element densities of multiresolution of adaptive multiple terminal device, and avoid and do not have during content of text, to show the interference emptying button and input user current.In addition, the accuracy emptying content of text operation can be improved, thus strengthen Consumer's Experience.
Embodiment 5
The embodiment of the present application provides a kind of terminal device, and it comprises the device at the empty content of text of Android system supernatant as described in embodiment 1,2.The pre-rendered object readjustment of this terminal device process editable text control, be whether that sky judges whether to show and empties button according to content of text, what utilize editable text control to provide can show and empty button by rendered object, and the screen touch event of rendered object corresponding region can empty content of text in editable text control by monitoring this.
In the present embodiment, this pre-rendered object realizes by onPreDraw attribute, and this can realize by drawableRight attribute by rendered object.
Figure 10 is a schematic block diagram of the formation of the terminal device 700 of the embodiment of the present application.As shown in Figure 10, terminal device 700 can comprise central processing unit 701 and storer 702; Storer 702 is coupled to central processing unit 701.It should be noted that this figure is exemplary; The structure of other types can also be used, supplement or replace this structure, to realize corresponding function.
In one embodiment, can should be integrated in central processing unit 701 in the function of the device of the empty content of text of Android system supernatant.As shown in Figure 10, terminal device 700 can also comprise: receiving element 703, for receiving the instruction of user's input; Display device 704, for by the content in text box and empty button and show; Power supply 705, for providing electric power to terminal device.
In another embodiment, should device of the empty content of text of Android system supernatant can with central processing unit 701 separate configuration, such as this can be configured to the chip be connected with central processing unit 701 at the device of the empty content of text of Android system supernatant, realize this function at the device of the empty content of text of Android system supernatant by the control of central processing unit.
It should be noted that terminal device 700 is also not necessary to all parts comprised shown in Figure 10; In addition, terminal device 700 can also comprise the parts do not illustrated in Figure 10, can with reference to prior art.
As shown in Figure 10, central processing unit 701, sometimes also referred to as controller or operational controls, can comprise microprocessor or other processor devices and/or logical unit, and central processing unit 701 receives input and the operation of all parts of control terminal 700.
Wherein, storer 702 can be such as one or more of in buffer, flash memory, hard disk driver, removable medium, volatile memory, nonvolatile memory or other appropriate device, can store the program storing and perform for information about; Further, central processing unit 701 can perform this program that this storer 702 stores, to realize information storage or process etc.The function of miscellaneous part and existing similar, repeats no more herein.Each parts of terminal device 700 can be realized by specialized hardware, firmware, software or its combination, and do not depart from the scope of the application.
The embodiment of the present application also provides a kind of computer-readable program, and wherein when performing described program in terminal device, described program makes computing machine in described terminal device, perform the method at the empty content of text of Android system supernatant described in embodiment 3 or 4.
The embodiment of the present application also provides a kind of storage medium storing computer-readable program, and wherein said computer-readable program makes computing machine in terminal device, perform the method at the empty content of text of Android system supernatant described in embodiment 3 or 4.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing of the present invention.Equally, when implementing method of the present invention, each step can be realized in same or multiple software and/or hardware.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
The present invention can be used in numerous general or special purpose computing system environment or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, system, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, the distributed computing environment comprising above any system or equipment etc. based on microprocessor.
The present invention can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the present invention in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
Although depict the present invention by embodiment, those of ordinary skill in the art know, the present invention has many distortion and change and do not depart from spirit of the present invention, and the claim appended by wishing comprises these distortion and change and do not depart from spirit of the present invention.

Claims (11)

1., in a method for the empty content of text of Android system supernatant, it is characterized in that, described method comprises:
Creating in editable text control can rendered object, uses described can displaying and empty button by rendered object;
Monitor described can the screen touch event of rendered object corresponding region; And
The content of text in described editable text control is emptied according to snoop results.
2. method according to claim 1, is characterized in that, described in empty button and be positioned at described editable text control inside and occupy position right and placed in the middle up and down.
3. method according to claim 1, is characterized in that, use is described can before rendered object shows and empties button, described method also comprises:
Use the pre-rendered object of described editable text control, judge whether to need to empty button described in displaying according to the current text frame of described editable text control; And
When described current text frame is not empty, described in displaying, empty button.
4. method according to claim 1, is characterized in that, comprises according to the content of text that snoop results empties in described editable text control:
Judge touch point that user inputs empties in the region of button described in whether being in by described screen touch event; And
Time in the region emptying button described in described touch point is in, empty the content of text of described editable text control.
5. method according to claim 4, is characterized in that, judge touch point that user inputs whether be in described in empty button region in specifically comprise:
Judge whether the x coordinate of described touch point is greater than TextField._width and the described difference emptying the icon width of button.
6., at a device for the empty content of text of Android system supernatant, it is characterized in that, described device comprises:
Display unit, creating in editable text control can rendered object, uses described can displaying and empty button by rendered object;
Monitoring unit, monitor described can the screen touch event of rendered object corresponding region; And
Empty unit, empty the content of text in described editable text control according to the snoop results of described monitoring unit.
7. device according to claim 6, is characterized in that, empties button and be positioned at position right and placed in the middle up and down, residence, described editable text control inside described in described display unit makes.
8. device according to claim 6, is characterized in that, described device also comprises:
First judging unit, uses the pre-rendered object of described editable text control, judges whether to need to empty button described in displaying according to the current text frame of described editable text control;
Further, described display unit does not empty button at described current text frame described in showing time empty.
9. device according to claim 6, is characterized in that, described in empty unit and comprise:
By described screen touch event, second judging unit, judges touch point that user inputs empties in the region of button described in whether being in; And
Content processing unit, time in the region emptying button described in described touch point is in, empties the content of text of described editable text control.
10. device according to claim 9, is characterized in that,
Described second judging unit is specifically for judging whether the x coordinate of described touch point is greater than TextField._width and the described difference emptying the icon width of button.
11. 1 kinds of terminal devices, described terminal device comprises the device at the empty content of text of Android system supernatant as described in claim 6 to 10.
CN201410177676.8A 2014-04-29 2014-04-29 Method and device for emptying text content on Android system, and terminal device Pending CN105094757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410177676.8A CN105094757A (en) 2014-04-29 2014-04-29 Method and device for emptying text content on Android system, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410177676.8A CN105094757A (en) 2014-04-29 2014-04-29 Method and device for emptying text content on Android system, and terminal device

Publications (1)

Publication Number Publication Date
CN105094757A true CN105094757A (en) 2015-11-25

Family

ID=54575303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410177676.8A Pending CN105094757A (en) 2014-04-29 2014-04-29 Method and device for emptying text content on Android system, and terminal device

Country Status (1)

Country Link
CN (1) CN105094757A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653121A (en) * 2015-12-22 2016-06-08 山东大学 Method for realizing Undo/Redo in text edition on the basis of android system
CN109274850A (en) * 2017-07-18 2019-01-25 京瓷办公信息***株式会社 The control method of image processing apparatus and image processing apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459746A (en) * 2002-05-23 2003-12-03 力捷电脑股份有限公司 Method and device capable of cleaning away inputted character string at once
CN101399877A (en) * 2007-09-30 2009-04-01 中兴通讯股份有限公司 Method and device for removing all customer data of terminal device
CN102331907A (en) * 2011-09-13 2012-01-25 中兴通讯股份有限公司 Character deleting method and device for terminal having touch screen, and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459746A (en) * 2002-05-23 2003-12-03 力捷电脑股份有限公司 Method and device capable of cleaning away inputted character string at once
CN101399877A (en) * 2007-09-30 2009-04-01 中兴通讯股份有限公司 Method and device for removing all customer data of terminal device
CN102331907A (en) * 2011-09-13 2012-01-25 中兴通讯股份有限公司 Character deleting method and device for terminal having touch screen, and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IAN_ANDROID: "[Android]文本框实现搜索和清空效果", 《HTTPS://WENKU.BAIDU.COM/VIEW/B7B821C8A1C7AA00B52ACBCA.HTML?FROM=SEARCH》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653121A (en) * 2015-12-22 2016-06-08 山东大学 Method for realizing Undo/Redo in text edition on the basis of android system
CN105653121B (en) * 2015-12-22 2019-03-22 山东大学 A method of it realizes to cancel in copy editor based on Android system and reform
CN109274850A (en) * 2017-07-18 2019-01-25 京瓷办公信息***株式会社 The control method of image processing apparatus and image processing apparatus

Similar Documents

Publication Publication Date Title
CN106445292B (en) Method and system for managing application programs in different body modes
CN104133629A (en) Double-screen interaction method and mobile terminal
CN104571874B (en) The method and apparatus of switching at runtime keyboard background
CN103593231A (en) Data processing method and device and mobile terminal
CN104395882A (en) Creation and context-aware presentation of customized emoticon item sets
CN112257135A (en) Model loading method and device based on multithreading, storage medium and terminal
CN111596911B (en) Method, device, computer equipment and storage medium for generating control
CN104035804A (en) Application integrating method and application integrating device
CN104601683A (en) File download management method, mobile terminal and communication system
CN104978180A (en) Unhandled event reminding method, unhandled event reminding device and mobile terminal
CN106250109A (en) A kind of multipad display packing, device and mobile terminal
CN105955770A (en) Application program uninstalling method and terminal
US10628287B2 (en) Identification and handling of nested breakpoints during debug session
CN107111418A (en) With minimum destructive icon displacement
CN105354065A (en) Multi-product software upgrading method and terminal
CN104216819A (en) Method for managing terminal application
CN105094757A (en) Method and device for emptying text content on Android system, and terminal device
CN105824533B (en) A kind of picture loading method, device and terminal
CN113407254B (en) Form generation method and device, electronic equipment and storage medium
CN105589627B (en) Shortcut menu display method, shortcut menu display device and terminal
CN107291564B (en) Information copying and pasting method and device and electronic equipment
CN106066874B (en) Object processing method and terminal
CN105279164A (en) File processing method and device based on IOS system
CN105446516A (en) Information input method and device
CN112905072B (en) Application processing method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151125