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

Control click 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: 2017-08-08
TCL CORPORATION
View PDF5 Cites 0 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 click event processing method and system
  • Control click event processing method and system
  • Control click 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 clearer and clearer, 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 the 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 (retes...

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 discloses a click event processing method and system for a control, wherein the method includes a step: when the control receives a user's click event, obtain the coordinates of the click relative to the origin of the control (x 0 ,y 0 ); determine whether the control has animation effects; when the control has animation effects, the coordinates of the click relative to the origin of the control (x 0 ,y 0 ) into coordinates (x, y) relative to the origin of the bitmap; determine whether the coordinates (x, y) of the clicked point relative to the origin of the bitmap are within the bitmap area, and if so, determine whether the pixel of the coordinates of the clicked position is It is 0, when it is not 0, it responds to the click event.

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
Patent Type & Authority Patents(China)
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