Unlock instant, AI-driven research and patent intelligence for your innovation.

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

An Android system, clearing technology, applied in the direction of program control device, data processing input/output process, instrument, etc., can solve the problems of disordered layout, complex and cumbersome control layout, etc., and achieve the effect of simplifying and cumbersome

Inactive Publication Date: 2015-11-25
ALIBABA GRP HLDG LTD
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] During the research and practice of the prior art, the inventor found the following problems in the prior art: every layout that needs to use a deletable text edit box needs to define two controls, EditText and Button, and needs to register the Button control Click monitoring, which makes the control layout complex and cumbersome; moreover, when two different controls are superimposed together, the adaptability of multi-resolution and multi-pixel density needs to be considered, resulting in a feasible implementation plan on a certain terminal, but it may be Facing the problem of disordered layout on another terminal

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for emptying text content on Android system, and terminal device
  • Method and device for emptying text content on Android system, and terminal device
  • Method and device for emptying text content on Android system, and terminal device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] Embodiment 1 of the present application provides a device for clearing text content on an Android system.

[0035] figure 1 It is a schematic diagram of the composition of the device for clearing text content on the Android system according to Embodiment 1 of the present application, such as figure 1 As shown, the device 100 includes: a display unit 101 , a listening unit 102 and a clearing unit 103 .

[0036] Wherein, the display unit 101 uses the editable text control in the Android system to create a drawable object (drawable), and displays the clear button through the drawable object (for example, realized through drawableRight or drawableLeft attributes); the monitoring unit 102 monitors the corresponding area of ​​the drawable object screen touch event; the clearing unit 103 clears the text content in the editable text control according to the monitoring result of the monitoring unit 102 .

[0037] In the embodiment of the present application, the display unit 1...

Embodiment 2

[0051] Embodiment 2 of the present application provides a device for clearing text content on an Android system. On the basis of embodiment 1, the present application is further described.

[0052] Figure 4 It is a schematic diagram of the composition of the device for clearing text content on the Android system according to Embodiment 2 of the present application, such as Figure 4 As shown, the apparatus 400 includes: a first judging unit 401 , a display unit 402 , a monitoring unit 403 and a clearing unit 404 .

[0053] Wherein, the first judging unit 401 may use the pre-drawn object of the editable text control (for example, implemented through the onPreDraw attribute), and judge whether to display the clear button according to the current text box of the editable text control. For example, in this embodiment, the pre-drawing object can be realized through the onPreDraw attribute, wherein the clear button is displayed when the current text box is not empty. The display...

Embodiment 3

[0061] Embodiment 3 of the present application provides a method for clearing text content on an Android system, which corresponds to the device in Embodiment 1, and the same content will not be described again.

[0062] Figure 5 It is a flow chart of the method for clearing text content on the Android system according to Embodiment 3 of the present application, such as Figure 5 As shown, the method includes:

[0063] Step 501, create a drawable object in the editable text control, and use the drawable object to display a clear button;

[0064] Step 502, monitor the screen touch event of the area corresponding to the drawable object;

[0065] Step 503, emptying the text content in the editable text control according to the monitoring result.

[0066] In step 501, the drawable object can be realized through the drawableRight property.

[0067] In step 501 , the displayed clear button may be located at a right-centered and vertically centered position within the editable t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

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

technical field [0001] The invention relates to the field of editable text controls of the Android system, in particular to a method and device for clearing text content on the Android system. Background technique [0002] Currently, the common editable text (EditText) control on the Android system uses the soft keyboard provided by the system to obtain user input and display the input content in the control. When the user wants to delete the input content, he needs to delete one by one through the delete button on the soft keyboard, but when the user has entered a lot of text and wants to clear all the input again, he has to trigger the soft keyboard multiple times. delete button. On a personal computer (PC), you can delete the input content at one time by selecting all, but this operation is not very convenient on the mobile terminal. [0003] At present, on the mobile terminal, there is already an implementation method of clearing the text content by adding a clickable ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06F3/0488
Inventor 江翔
Owner ALIBABA GRP HLDG LTD