Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Control clicking event processing method and system

A click event and processing method technology, applied in the direction of electrical digital data processing, data processing input/output process, instruments, etc., can solve the problem of inability to accurately judge whether to respond to user click events, etc., to improve user experience and optimize processing speed , Improve the effect of processing accuracy

Inactive Publication Date: 2014-01-29
TCL CORPORATION
View PDF5 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a control click event processing method and system, aiming at solving the problem that the existing control click event processing method cannot accurately determine whether to respond to the user click event if there is a transparent area

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
  • Control clicking event processing method and system
  • Control clicking event processing method and system
  • Control clicking event processing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The present invention provides a control click event processing method and system. In order to make the purpose, technical solution and effect of the present invention more clear and definite, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0044] see figure 1 , figure 1 It is a flow chart of a preferred embodiment of a control click event processing method of the present invention, as shown in the figure, which includes steps:

[0045] S101. When the control receives a click event from the user, obtain the coordinates of the click point relative to the origin of the control (x 0 ,y 0 );

[0046] In this embodiment, the control may be a basic control provided by the Android system, or it may be provided by the Android system by rewriting the control structure, onDraw (redrawing), or onMeasure (ret...

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 invention discloses a control clicking event processing method and system. The method comprises the following steps: when a control receives a clicking event by a user, a coordinate (x0, y0) relative to a control origin at the clicking position is acquired; whether the control has an animation effect is judged; when the control has the animation effect, the coordinate (x0, y0) relative to the control origin at the clicking position is converted into a coordinate (x, y) relative to a bitmap origin through matrix inverse transformation; whether the coordinate (x, y) relative to the bitmap origin at the clicking position is in a bitmap area is judged, if yes, whether the pixel value of the coordinate at the clicking position is 0 is judged, and a response to the clicking event is conducted when the pixel value of the coordinate at the clicking position is not 0.

Description

technical field [0001] The present invention relates to the technical field of user interface, in particular to a control click event processing method and system. Background technique [0002] The Android system provides many basic control implementations, but the controls provided by the Android system cannot achieve the functions or customized appearances that developers want. Therefore, developers often need to customize the controls to achieve the required functions. Custom controls have the characteristics of low coupling, high cohesion, flexible reference, and gorgeous appearance, so they are favored by developers. There are many ways to implement custom controls, such as inheriting existing controls and rewriting some existing methods; or inheriting View (view) class, using existing methods of View (view) to redraw, etc. In the control implementation process, responding to the user's click operation (mouse click or touch operation) is the basic operation for handlin...

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
IPC IPC(8): G06F3/0484G06F3/0488
Inventor 罗莎莎何康向树森刘剑威
Owner TCL CORPORATION
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products