Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method, device and terminal for realizing floating window capable of automatically rotating along with screen

A technology of automatic rotation and floating window, applied in program control devices, input/output processes of data processing, instruments, etc., can solve problems such as low operation efficiency, redundant control, low efficiency, etc., and achieve natural appearance and small calculation amount. , the effect of high efficiency

Active Publication Date: 2014-11-05
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Implementation method 2: Prepare multiple sets of candidate Views for the entire View in the same floating window, and select one of the candidate Views for display according to the rotation of the screen. Although this solution can avoid large-scale modification of the Android UI framework, the operation is redundant. inefficient operation
[0007] Implementation method 3: With the help of Android's existing View rotation animation, when the screen rotation is detected, the View is rotated synchronously, and after the rotation ends, it is frozen at the end of the animation state. This solution requires all floating window UIs and the entire View (recursive including all sub-Views) must be animated, which is inefficient and redundant in control

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, device and terminal for realizing floating window capable of automatically rotating along with screen
  • Method, device and terminal for realizing floating window capable of automatically rotating along with screen
  • Method, device and terminal for realizing floating window capable of automatically rotating along with screen

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Please refer to figure 1 , which is Embodiment 1 of the method of the present invention, a flow chart of a method for implementing a floating window that can automatically rotate following the screen (hereinafter specifically described in the Android system), including:

[0037] S101. Provide a screen container supporting a rotation attribute for the UI floating window view to be displayed;

[0038] First, provide a ViewGroup (referred to as RotateLayout) that supports the rotation property, and use this ViewGroup as the container of the View of the UI floating window to be displayed.

[0039] S102. Generate content corresponding to the screen and add it to the screen container, the content being the UI floating window view;

[0040] The corresponding content View (denoted as content View: ContentView) can be generated through the inflater's inflate() method and added to the above ViewGroup.

[0041] According to the UI drawing principle of Android, the control of dra...

Embodiment 2

[0048] Please refer to figure 2 , which is the second embodiment of the method of the present invention, a flowchart of a method for implementing a floating window that can automatically rotate following the screen, steps S201, S202, and S208 are the same as S101, S102, and S104 in the first embodiment, the difference is that Steps S203, S204, S205, S206, S207, the method includes:

[0049] S201. Provide a screen container supporting a rotation property for the UI floating window view to be displayed;

[0050] S202. Generate content corresponding to the screen and add it to the screen container, the content being the UI floating window view;

[0051] S203. Obtain the orientation corresponding to the current stack top application of the system and the orientation detected by the system gravity sensor, and record it as the first moment; register the gravity sensor listener of the system at the same time, start the system stack top monitoring program, and set the monitoring tim...

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 provides a method, a device and a terminal for realizing a floating window capable of automatically rotating along with a screen, wherein the method comprises the following steps that: an image container supporting a rotating attribute is provided for a UI (User Interface) floating window view to be displayed; a content corresponding to an image is generated and is added into the image container, wherein the content is the UI floating window view; a position attribute corresponding to the system current stack top application and a system gravity sensing detection position are obtained; if the change occurs, rotation compensation is carried out, the floating window is redrawn, and a rotation inverse matrix is obtained; and the coordinate of a user click event is subjected to rotation inverse transformation, so that the event can be delivered onto a UI assembly inside the corresponding floating window. The technical scheme of the method, the device and the terminal provided by the invention has the beneficial effects that the calculation quantity is smaller; the processing efficiency is higher; and the appearance of the UI assembly of the floating window is more natural.

Description

technical field [0001] The present invention relates to the technical field of floating window display, and in particular to a method, device and terminal for realizing a floating window that can automatically rotate following a screen. Background technique [0002] With the rapid development of smart terminal technology and the rapid development of smart terminal services, the use of floating windows to achieve interaction with users is becoming more and more diverse. The floating window is an independent window for popping up and moving, and the frame, div, etc. can realize functions such as prompts and notifications, and are generally called "floating windows". In daily life, we can experience the "floating window preview" function through terminals such as smartphones and tablets. From the perspective of user experience, this function can provide us with a very efficient operation method and make our terminals more humane , which enhances the convenience of users. [0...

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/44
CPCG06F2200/1614G06F3/048G06F2200/1637G06F3/0481G06F3/017G06F3/04842G06F3/04847
Inventor 陈建铭
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More