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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
