CN105373385A - Multi-resolution UI (User Interface) adaption scripting development method of Android application - Google Patents
Multi-resolution UI (User Interface) adaption scripting development method of Android application Download PDFInfo
- Publication number
- CN105373385A CN105373385A CN201510817803.0A CN201510817803A CN105373385A CN 105373385 A CN105373385 A CN 105373385A CN 201510817803 A CN201510817803 A CN 201510817803A CN 105373385 A CN105373385 A CN 105373385A
- Authority
- CN
- China
- Prior art keywords
- topology file
- multiresolution
- adaptive
- resolution
- scripting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention relates to an Android mobile application, and provides a multi-resolution UI (User Interface) adaption scripting development method of an Android application. A user compiles and finishes a UI layout file according to an UI effect design drawing and annotations output by UI design personnel, and a system takes the UI layout file as an original input layout file of a multi-resolution adaption script; and when the method is used, the system analyzes the original input layout file according to the multi-resolution adaption script, and if analysis data is a numerical value scaling type constant, a value is calculated according to a corresponding scaling when a new layout file is generated. The system adopts the multi-resolution adaption script file to carry out data analysis on the original input layout file to generate the new layout file, so that one type of layout file is suitable for interfaces of various sizes, and a UI research and development amount is greatly lowered. The multi-resolution UI adaption scripting development method of the Android application is the development method suitable for multi-resolution UI adaption scripting.
Description
Technical field
The present invention relates to Android Mobile solution, the development approach of the particularly adaptive scripting in a kind of multiresolution UI interface.
Background technology
The size of Android device screen is miscellaneous on the market at present, and if millet is 4 inches, Xoom flat board is 10 inches; Resolution is also very strange, and 800 × 480,960 × 540 etc.; The fragmentation problem Always On My Mind especially of Android version.That especially develops in my company opens in objective serial cell-phone customer terminal, and high-quality requires to be applied on the various types of client especially, and ensures that the UI display on each type all keeps maximum fidelity with the design of innovation center.Android official SDK provides various adaptation method, but artificial adaptive workload is very large, a topology file is to adaptive institute organic type, workload is about 8 ~ 10 times of stand-alone type exploitation amount, this causes very large puzzlement to UI R&D worker, especially, when project process is in short supply with research and development human resources, problem is more outstanding.
Summary of the invention
Technical matters to be solved by this invention, is just to provide the adaptive scripting development approach in a kind of Android application multiresolution UI interface to realize simplifying the adaptation work for multiresolution of Android mobile terminal UI developer, promotes the adaptive development efficiency of UI.
The present invention solve the technical problem, the technical scheme adopted is, the method of the adaptive scripting exploitation in a kind of Android application multiresolution UI interface, the UI effect design figure that user exports according to UI designer and mark, write UI topology file, system is using the original input topology file of UI topology file as the adaptive script of multiresolution;
During use, system is resolved original input topology file according to the adaptive script of multiresolution, if resolution data is numerical value scaling type constant, calculates value when generating new topology file according to corresponding scaling.
Concrete, the adaptive script of described multiresolution is XML format.
Concrete, system is resolved original input topology file according to the adaptive script of multiresolution, if resolution data is not by the constant value that resolution affects, will remain unchanged when generating new topology file.
Concrete, system is resolved original input topology file according to the adaptive script of multiresolution, if resolution data is weight type constant value, will remain unchanged when generating new topology file.
Concrete, system is resolved original input topology file according to the adaptive script of multiresolution, if resolution data is system UI constant value, will remain unchanged when generating new topology file.
The invention has the beneficial effects as follows: system produces new topology file after adopting the adaptive script file of multiresolution to carry out Data Analysis to original input topology file, thus realizes the interface that a kind of topology file is applicable to sizes, greatly reduces UI research and development amount.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of Android application of the present invention multiresolution UI interface adaptive scripting development approach embodiment.
Below in conjunction with the embodiment of embodiment, foregoing of the present invention is described in further detail again.But this should be interpreted as that the scope of the above-mentioned theme of the present invention is only limitted to following example.Without departing from the idea case in the present invention described above, the various replacement made according to ordinary skill knowledge and customary means or change, all should comprise within the scope of the invention.
Embodiment
Technical scheme of the present invention is described in detail below in conjunction with embodiment:
The present invention is directed to when unified software is applicable to different size screen in prior art and need to carry out artificial adaptation, and artificial adaptive workload is very large, a topology file is to adaptive institute organic type, workload is the problem of about 8 ~ 10 times of stand-alone type exploitation amount, the method of the adaptive scripting exploitation in a kind of Android application multiresolution UI interface is provided, the UI effect design figure that user exports according to UI designer and mark, write UI topology file, system is using the original input topology file of UI topology file as the adaptive script of multiresolution; During use, system is resolved original input topology file according to the adaptive script of multiresolution, if resolution data is numerical value scaling type constant, calculates value when generating new topology file according to corresponding scaling.System produces new topology file after adopting the adaptive script file of multiresolution to carry out Data Analysis to original input topology file, thus realizes the interface that a kind of topology file is applicable to sizes, greatly reduces UI research and development amount.
Embodiment
Tell development along with science and technology, the size of smart mobile phone is on the market scarcely identical, and we are when researching and developing various UI research and development, then need to consider the smart mobile phone being applicable to arbitrary dimension.Although Android official SDK provides various adaptation method, but artificial adaptive workload is very large, a topology file is to adaptive institute organic type, workload is about 8 ~ 10 times of stand-alone type exploitation amount, this causes very large puzzlement to UI R&D worker, especially, when project process is in short supply with research and development human resources, problem is more outstanding.How making more easily only to need primary development that same UI topology file just can be made to be applicable to the smart mobile phone of arbitrary dimension, is the problem continuing at present to solve.
Complete set UI design effect figure is provided for UI designer, the problem of the adaptive intricate operation complexity that UI personnel run in concrete exploitation cataloged procedure, by a topology file coding in this example, then by script intelligence convergent-divergent, complete the adaptation work of the topology file of different resolution.General plotting is as follows: because all topology files of Android are all structured documents of xml form definition, each UI pixel (density of equipment dpi) value constant is with key+value formal semantics and stzwctlrred definition, so we propose research staff at once provide a set of standard UI topology file and pixel value constant, and this standardized definition is the complete mark assignment according to UI designer just, do not need to remake any calculating and escape, and dissolve with a set of machine script Complete Semantics and analyse standard UI topology file and pixel value constant, thus generate complete a set of UI topology file.
The method of the adaptive scripting exploitation in a kind of Android application multiresolution UI interface that this example provides, specific works method as shown in Figure 1:
The UI effect design figure that user exports according to UI designer and mark, write UI topology file; Trial run ensure to run in the corresponding real equipment of standard UI layout errorless after, system is using the original input topology file of UI topology file as the adaptive script of multiresolution of XML format;
During use, concrete, system is resolved original input topology file according to the adaptive script of multiresolution, if resolution data is not by the constant value that resolution affects, will remain unchanged when generating new topology file; If resolution data is weight type constant value, will remain unchanged when generating new topology file; If resolution data is system UI constant value, will remain unchanged when generating new topology file; If resolution data is numerical value scaling type constant, when generating new topology file, calculate value according to corresponding scaling.
System produces new topology file after adopting the adaptive script file of multiresolution to carry out Data Analysis to original input topology file, thus realizes the interface that a kind of topology file is applicable to sizes, greatly reduces UI research and development amount.
Claims (5)
1. the method for the adaptive scripting exploitation in Android application multiresolution UI interface, it is characterized in that, the UI effect design figure that user exports according to UI designer and mark, write UI topology file, system is using the original input topology file of UI topology file as the adaptive script of multiresolution;
During use, system is resolved original input topology file according to the adaptive script of multiresolution, if resolution data is numerical value scaling type constant, calculates value when generating new topology file according to corresponding scaling.
2. the method for the adaptive scripting exploitation in a kind of Android application multiresolution UI interface according to claim 1, is characterized in that, the adaptive script of described multiresolution is XML format.
3. the method for the adaptive scripting exploitation in a kind of Android application multiresolution UI interface according to claim 1, it is characterized in that, system is resolved original input topology file according to the adaptive script of multiresolution, if resolution data is not by the constant value that resolution affects, will remain unchanged when generating new topology file.
4. the method for the adaptive scripting exploitation in a kind of Android application multiresolution UI interface according to claim 1, it is characterized in that, system is resolved original input topology file according to the adaptive script of multiresolution, if resolution data is weight type constant value, will remain unchanged when generating new topology file.
5. the method for the adaptive scripting exploitation in a kind of Android application multiresolution UI interface according to claim 1, it is characterized in that, system is resolved original input topology file according to the adaptive script of multiresolution, if resolution data is system UI constant value, will remain unchanged when generating new topology file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510817803.0A CN105373385A (en) | 2015-11-23 | 2015-11-23 | Multi-resolution UI (User Interface) adaption scripting development method of Android application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510817803.0A CN105373385A (en) | 2015-11-23 | 2015-11-23 | Multi-resolution UI (User Interface) adaption scripting development method of Android application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105373385A true CN105373385A (en) | 2016-03-02 |
Family
ID=55375613
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510817803.0A Pending CN105373385A (en) | 2015-11-23 | 2015-11-23 | Multi-resolution UI (User Interface) adaption scripting development method of Android application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105373385A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648700A (en) * | 2016-12-29 | 2017-05-10 | 深圳Tcl数字技术有限公司 | Display method and device compatible with different resolution ratios |
CN109992181A (en) * | 2019-03-27 | 2019-07-09 | 努比亚技术有限公司 | A kind of method, wearable device and storage medium being adapted to application program for mobile terminal interface |
CN112416504A (en) * | 2021-01-04 | 2021-02-26 | 广东创能科技股份有限公司 | Method capable of realizing automatic compatible adaptation for different devices |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023849A (en) * | 2009-09-22 | 2011-04-20 | 北京搜狗科技发展有限公司 | Processing method and device for multi-platform multi-resolution application program interface |
CN102890632A (en) * | 2012-09-18 | 2013-01-23 | 深圳市融创天下科技股份有限公司 | Screen adaptation method, system and terminal device |
CN103164197A (en) * | 2011-12-14 | 2013-06-19 | 中兴通讯股份有限公司 | User interface (UI) distribution self-adaption method, mobile device and distribution generating device |
CN103336691A (en) * | 2013-06-29 | 2013-10-02 | 安科智慧城市技术(中国)有限公司 | Dynamic layout method and system based on Android |
CN103345388A (en) * | 2013-06-05 | 2013-10-09 | 中国电子科技集团公司第十五研究所 | Android-operating-system-based system and device for adapting software to mobile terminal |
CN104111839A (en) * | 2014-07-29 | 2014-10-22 | 广东能龙教育股份有限公司 | Absolute positioning method based on canvas |
-
2015
- 2015-11-23 CN CN201510817803.0A patent/CN105373385A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023849A (en) * | 2009-09-22 | 2011-04-20 | 北京搜狗科技发展有限公司 | Processing method and device for multi-platform multi-resolution application program interface |
CN103164197A (en) * | 2011-12-14 | 2013-06-19 | 中兴通讯股份有限公司 | User interface (UI) distribution self-adaption method, mobile device and distribution generating device |
CN102890632A (en) * | 2012-09-18 | 2013-01-23 | 深圳市融创天下科技股份有限公司 | Screen adaptation method, system and terminal device |
CN103345388A (en) * | 2013-06-05 | 2013-10-09 | 中国电子科技集团公司第十五研究所 | Android-operating-system-based system and device for adapting software to mobile terminal |
CN103336691A (en) * | 2013-06-29 | 2013-10-02 | 安科智慧城市技术(中国)有限公司 | Dynamic layout method and system based on Android |
CN104111839A (en) * | 2014-07-29 | 2014-10-22 | 广东能龙教育股份有限公司 | Absolute positioning method based on canvas |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648700A (en) * | 2016-12-29 | 2017-05-10 | 深圳Tcl数字技术有限公司 | Display method and device compatible with different resolution ratios |
CN109992181A (en) * | 2019-03-27 | 2019-07-09 | 努比亚技术有限公司 | A kind of method, wearable device and storage medium being adapted to application program for mobile terminal interface |
CN112416504A (en) * | 2021-01-04 | 2021-02-26 | 广东创能科技股份有限公司 | Method capable of realizing automatic compatible adaptation for different devices |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105843821B (en) | A kind of data processing method and system of configurable report | |
WO2015188626A1 (en) | Method for viewing single line diagram of electric power system on mobile terminal in real time | |
CN104331294A (en) | Visual program generation method and device | |
CN104461538B (en) | Report form generation method and report generating system | |
CN108804322A (en) | Automated testing method, device, computer equipment and storage medium | |
CN103034940A (en) | Method and system for automatic analysis report generation | |
CN104407976A (en) | Method and device for generating interface robustness test case | |
CN106557351B (en) | The data processing method and device of built-in application program | |
SG179427A1 (en) | Human behavioral modeling and simulation framework | |
CN104731588B (en) | Page layout document generating method and page layout file creating apparatus | |
CN105373385A (en) | Multi-resolution UI (User Interface) adaption scripting development method of Android application | |
CN105242914A (en) | Model driven code generation method and system | |
CN108829653A (en) | A kind of generation method of report, device, equipment and medium | |
US8296723B2 (en) | Configurable unified modeling language building blocks | |
CN109976803A (en) | A kind of generation method and device of file | |
CN105068853A (en) | Channel package output method and apparatus | |
CN112256670A (en) | Data migration method, terminal device and readable storage medium | |
CN108446262A (en) | A kind of list generates, analysis method and device | |
CN103677819A (en) | Method and device for achieving code forward engineering based on OSGI | |
CN106406884A (en) | A .NET MVC mode-based fundamental development framework for WEB background management application systems | |
CN104809534A (en) | Business process management system | |
CN105447068A (en) | SAP system based dynamic report generation method and system | |
CN105955730A (en) | Method for obtaining SSR (Server Security Reinforcement) centralized management platform statement | |
SG179426A1 (en) | Human transparency paradigm | |
CN104123166A (en) | Generation method for ipa installation package in non-Xcode environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160302 |