Method for adapting horizontal and vertical screen interfaces of waterfall flow application on smart television
A smart TV, horizontal and vertical screen technology, applied in the direction of user interface execution, electrical digital data processing, instruments, etc., can solve the problems of increasing development costs and reducing development efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0026] The first step is to keep the size unit in the application consistent, all of which are dp, including the size unit used in the xml layout file and code;
[0027] In the second step, in Android, the conversion relationship between px and dp:
[0028] px=dp*density (1)
[0029] density=densityDpi / standard dpi 160 (2)
[0030] It can be seen from formula (1) that modifying the density and densityDpi of DisplayMertics can affect the final pixel value displayed on the screen. We take the screen width as the dimension and keep this dimension consistent with the design drawing.
[0031] Taking the design drawing as 1920x1080px as an example, the conversion to dp is 1280x720dp, and the width of the design drawing is 720dp. The width and height of the screen under the horizontal screen is 1080x1920px, which is adapted by the width. After adaptation, the density = the real width of the device (unit: px) / the reference width of the design drawing = 1080 / 1280 = 0.84375, densit...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com