[go: up one dir, main page]

CN106933590B - A method and system for realizing model adaptation of mobile terminal of power grid project - Google Patents

A method and system for realizing model adaptation of mobile terminal of power grid project Download PDF

Info

Publication number
CN106933590B
CN106933590B CN201710146519.4A CN201710146519A CN106933590B CN 106933590 B CN106933590 B CN 106933590B CN 201710146519 A CN201710146519 A CN 201710146519A CN 106933590 B CN106933590 B CN 106933590B
Authority
CN
China
Prior art keywords
grid project
mobile terminal
matched
elements
density
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.)
Expired - Fee Related
Application number
CN201710146519.4A
Other languages
Chinese (zh)
Other versions
CN106933590A (en
Inventor
曹明德
解涛
白耀鹏
原敏宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Shanxi Electric Power Co Ltd
State Grid Corp of China SGCC
Original Assignee
State Grid Shanxi Electric Power Co Ltd
State Grid Corp of China SGCC
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by State Grid Shanxi Electric Power Co Ltd, State Grid Corp of China SGCC filed Critical State Grid Shanxi Electric Power Co Ltd
Priority to CN201710146519.4A priority Critical patent/CN106933590B/en
Publication of CN106933590A publication Critical patent/CN106933590A/en
Application granted granted Critical
Publication of CN106933590B publication Critical patent/CN106933590B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention belongs to the technical field of internet, and particularly relates to a power grid project mobile terminal machine type adaptation implementation method and a system thereof.

Description

一种电网项目移动端机型适配实现方法及其系统A method and system for realizing model adaptation of mobile terminal of power grid project

技术领域technical field

本发明属于互联网技术领域,具体涉及一种应用于电力行业电网项目移动端机型适配的实现方法及其系统。The invention belongs to the field of Internet technology, and in particular relates to an implementation method and a system for the adaptation of mobile terminal models applied to power grid projects in the power industry.

背景技术Background technique

目前,随着我国移动智能设备市场的不断发展,电网公司逐渐将项目移植到移动端上应用。移动设备有很多先天的优势,如它的便捷性、高效性以及易用性等,但它在给我们提供了很多的便利的同时,也给我们带来了很多的困扰,最主要的问题就是项目在移植过程中会遇到移动设备不完全兼容的问题,导致用户界面出现控件变形、覆盖、点击开关和选项控件反应以及数据显示的紊乱等问题。所以,为了保障电网项目在移动端的顺利安全运行,开展移动端机型适配技术研究,具有重要的科学意义和实用价值。At present, with the continuous development of my country's mobile smart device market, power grid companies are gradually transplanting projects to mobile applications. Mobile devices have many innate advantages, such as their convenience, efficiency and ease of use, but while they provide us with a lot of convenience, they also bring us a lot of trouble. The main problem is that During the porting process, the project will encounter the problem that the mobile device is not fully compatible, which will lead to problems such as control deformation, overlay, click switch and option control reaction, and data display disorder in the user interface. Therefore, in order to ensure the smooth and safe operation of power grid projects on the mobile terminal, it is of great scientific significance and practical value to carry out research on mobile terminal model adaptation technology.

发明内容SUMMARY OF THE INVENTION

本发明克服现有技术存在的不足,所要解决的技术问题为:提供一种能够根据像素百分比实现电网项目移动端机型适配的方法,解决了将电网项目移植到移动端时产生的不兼容问题。The invention overcomes the shortcomings of the prior art, and the technical problem to be solved is: to provide a method that can realize the adaptation of the mobile terminal model of the power grid project according to the pixel percentage, and solve the incompatibility when the power grid project is transplanted to the mobile terminal. question.

本发明提供的一种电网项目移动端机型适配实现方法,包括:A method for realizing model adaptation of a mobile terminal of a power grid project provided by the present invention includes:

S101单位转化:将电网项目应用程序的用户界面所包含的图片元素、功能按钮元素和文字元素的计量单位全部转化为以像素为计量单位;S101 Unit conversion: Convert all the measurement units of the picture elements, function button elements and text elements contained in the user interface of the grid project application to pixels as the measurement unit;

S102 百分比计算:在电网项目应用程序的manifest清单文件中自定义一个设计初稿,为经步骤S101转化计量单位后的图片元素、功能按钮元素和文字元素提供像素百分比计算;S102 Percentage calculation: customize a first design draft in the manifest file of the power grid project application, and provide pixel percentage calculation for the picture elements, function button elements and text elements after converting the measurement unit in step S101;

S103 缺陷修正:对经步骤S102处理后电网项目应用程序的缺陷进行修正;S103 Defect correction: correct the defects of the power grid project application program processed in step S102;

S104完成匹配:将经过步骤S103修正后的电网项目应用程序导入待匹配电网项目的移动端完成适配。S104 Complete the matching: import the grid project application program corrected in step S103 into the mobile terminal of the grid project to be matched to complete the adaptation.

所述电网项目应用程序的用户界面所包含的图片元素和功能按钮元素的计量单位为设备独立像素,所述设备独立像素转化为像素的公式为像素=设备独立像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi。The unit of measurement of the picture elements and function button elements included in the user interface of the power grid project application is the device-independent pixel, and the formula for converting the device-independent pixel into a pixel is pixel=device-independent pixel*(target screen density/standard density ), the target screen density is the screen density of the mobile terminal of the grid project to be matched, and the standard density is 160dpi.

所述电网项目应用程序的用户界面所包含的文字元素的计量单位为放大像素,所述放大像素转化为像素的公式为像素=放大像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi。The measurement unit of the text elements included in the user interface of the power grid project application is enlarged pixels, and the formula for converting the enlarged pixels into pixels is pixel=enlarged pixels*(target screen density/standard density), the target screen density For the screen density of the mobile terminal of the grid project to be matched, the standard density is 160dpi.

所述在电网项目应用程序的manifest清单文件中定义的设计初稿的尺寸与待匹配电网项目的移动端的屏幕分辨率相一致,以所述待匹配电网项目的移动端的屏幕分辨率为基数,计算经步骤S101转化计量单位后的图片元素、功能按钮元素和文字元素在待匹配电网项目的移动端的屏幕上显示时所占的百分比。The size of the first draft of the design defined in the manifest file of the grid project application is consistent with the screen resolution of the mobile terminal of the grid project to be matched, and the screen resolution of the mobile terminal of the grid project to be matched is used as the base to calculate the Step S101 is the percentage of the picture element, function button element and text element after the conversion of the measurement unit displayed on the screen of the mobile terminal of the grid item to be matched.

所述步骤S103中的缺陷是指文字元素在待匹配电网项目的移动端上显示时产生的显示异常,对上述缺陷进行修正时,需要参考待匹配电网项目移动端系统的父窗体,并且缩小文字元素与电网项目应用程序中其它有明显边距的图片元素或是功能元素之间的距离。The defect in the step S103 refers to the abnormal display generated when the text element is displayed on the mobile terminal of the power grid project to be matched. When correcting the above defect, it is necessary to refer to the parent window of the mobile terminal system of the power grid project to be matched, and zoom out. The distance between text elements and other graphic elements with significant margins or functional elements in the Grid Projects application.

同时本发明还提供了一种实现电网项目移动端机型匹配的系统,包括:At the same time, the present invention also provides a system for realizing model matching of mobile terminals of power grid projects, including:

单位转化模块:用于将电网项目应用程序的用户界面所包含的图片元素、功能按钮元素和文字元素的计量单位全部转化为以像素为计量单位;Unit conversion module: used to convert the measurement units of picture elements, function button elements and text elements included in the user interface of the grid project application program into pixels as the measurement unit;

功能按钮function button

百分比计算模块:在电网项目应用程序的manifest清单文件中自定义一个设计初稿,为经转化计量单位后的图片元素、功能按钮元素和文字元素提供像素百分比计算;Percentage calculation module: customize a design draft in the manifest file of the grid project application, and provide pixel percentage calculation for the picture elements, function button elements and text elements after the conversion unit of measurement;

缺陷修正模块:对经像素百分比计算处理后电网项目应用程序的缺陷进行修正;Defect correction module: correct the defects of the grid project application program after pixel percentage calculation processing;

完成匹配模块:将经过缺陷修正后的电网项目应用程序导入待匹配电网项目的移动端完成适配。Completing the matching module: Import the grid project application after the defect correction into the mobile terminal of the grid project to be matched to complete the adaptation.

所述电网项目应用程序的用户界面所包含的图片元素和功能按钮元素的计量单位为设备独立像素,所述单位转化模块在将设备独立像素转化为像素时,使用的算法为像素=设备独立像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi。The unit of measurement of the picture element and the function button element included in the user interface of the power grid project application is the device-independent pixel. When the unit conversion module converts the device-independent pixel into the pixel, the algorithm used is pixel=device-independent pixel. *(target screen density/standard density), the target screen density is the screen density of the mobile terminal of the grid project to be matched, and the standard density is 160dpi.

所述电网项目应用程序的用户界面所包含的文字元素的计量单位为放大像素,所述单位转化模块在将放大像素转化为像素时,使用的算法为像素=放大像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi。The unit of measurement of the text elements included in the user interface of the power grid project application program is enlarged pixels, and the unit conversion module uses an algorithm when converting the enlarged pixels into pixels as pixels=enlarged pixels*(target screen density/standard density), the target screen density is the screen density of the mobile terminal of the grid project to be matched, and the standard density is 160dpi.

所述百分比计算模块在电网项目应用程序的manifest清单文件中定义的设计初稿的尺寸与待匹配电网项目的移动端的屏幕分辨率相一致,以所述待匹配电网项目的移动端的屏幕分辨率为基数,计算经转化计量单位后的图片元素、功能按钮元素和文字元素在待匹配电网项目的移动端的屏幕上显示时所占的百分比。The size of the design draft defined in the manifest file of the grid project application program by the percentage calculation module is consistent with the screen resolution of the mobile terminal of the grid project to be matched, and the screen resolution of the mobile terminal of the grid project to be matched is the base number , and calculate the percentage of the picture elements, function button elements and text elements that are converted into measurement units when displayed on the screen of the mobile terminal of the grid item to be matched.

所述缺陷修正模块用于修正文字元素在待匹配电网项目的移动端上显示时产生的显示异常,对上述缺陷进行修正时,需要参考待匹配电网项目移动端系统的父窗体,并且缩小文字元素与电网项目应用程序中其它有明显边距的图片元素或是功能按钮元素之间的距离。The defect correction module is used to correct the display abnormality when the text element is displayed on the mobile terminal of the power grid project to be matched. When correcting the above defects, it is necessary to refer to the parent window of the mobile terminal system of the power grid project to be matched, and reduce the text The distance between the element and other clearly margined image elements or function button elements in the Grid Items application.

本发明针对电网项目移动端机型不兼容的问题,提供了一种电网项目移动端机型适配实现方法及其系统,与现有技术相比,采用本发明提供的移动端机型适配实现方法实施移动端适配时,电网项目应用程序中的图形控件不变形,显示完整,无覆盖,点击功能控件时反应灵敏,数据显示有序、完整,实现了电网项目应用程序与移动端的良好兼容。Aiming at the problem of incompatibility of mobile terminal models of power grid projects, the present invention provides a method and a system for implementing mobile terminal model adaptation of power grid projects. Compared with the prior art, the mobile terminal model adaptation provided by the present invention is adopted. Implementation method When the mobile terminal adaptation is implemented, the graphic controls in the power grid project application are not deformed, the display is complete, and there is no coverage. When the function control is clicked, the response is sensitive, and the data display is orderly and complete, which realizes the power grid project application and the mobile terminal. compatible.

附图说明Description of drawings

下面结合附图对本发明做进一步详细的说明;The present invention is described in further detail below in conjunction with the accompanying drawings;

图1为本发明提供的电网项目移动端机型适配实现方法的流程示意图;FIG. 1 is a schematic flowchart of a method for implementing a mobile terminal model adaptation of a power grid project provided by the present invention;

图2为本发明提供的实现电网项目移动端机型匹配的系统的结构示意图。FIG. 2 is a schematic structural diagram of a system for realizing model matching of mobile terminals of a power grid project provided by the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部的实施例;基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, not all of the embodiments; based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention .

如图1所示,本发明提供的电网项目移动端机型适配实现方法,包括:As shown in Figure 1, the method for realizing the model adaptation of the mobile terminal of the power grid project provided by the present invention includes:

S101单位转化:将电网项目应用程序的用户界面所包含的图片元素、功能按钮元素和文字元素的计量单位全部转化为以像素为计量单位;S101 Unit conversion: Convert all the measurement units of the picture elements, function button elements and text elements contained in the user interface of the grid project application to pixels as the measurement unit;

功能按钮function button

S102 百分比计算:在电网项目应用程序的manifest清单文件中自定义一个设计初稿,为经步骤S101转化计量单位后的图片元素、功能按钮元素和文字元素提供像素百分比计算;S102 Percentage calculation: customize a first design draft in the manifest file of the power grid project application, and provide pixel percentage calculation for the picture elements, function button elements and text elements after converting the measurement unit in step S101;

S103 缺陷修正:对经步骤S102处理后电网项目应用程序的缺陷进行修正;S103 Defect correction: correct the defects of the power grid project application program processed in step S102;

S104完成匹配:将经过步骤S103修正后的电网项目应用程序导入待匹配电网项目的移动端完成适配。S104 Complete the matching: import the grid project application program corrected in step S103 into the mobile terminal of the grid project to be matched to complete the adaptation.

所述电网项目应用程序的用户界面所包含的图片元素和功能按钮元素的计量单位为设备独立像素,所述设备独立像素转化为像素的公式为像素=设备独立像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi。The unit of measurement of the picture elements and function button elements included in the user interface of the power grid project application is the device-independent pixel, and the formula for converting the device-independent pixel into a pixel is pixel=device-independent pixel*(target screen density/standard density ), the target screen density is the screen density of the mobile terminal of the grid project to be matched, and the standard density is 160dpi.

所述电网项目应用程序的用户界面所包含的文字元素的计量单位为放大像素,所述放大像素转化为像素的公式为The measurement unit of the text elements included in the user interface of the power grid project application is enlarged pixels, and the formula for converting the enlarged pixels into pixels is:

像素=放大像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi。Pixel = magnified pixel * (target screen density/standard density), the target screen density is the screen density of the mobile terminal of the grid project to be matched, and the standard density is 160dpi.

所述在电网项目应用程序的manifest清单文件中定义的设计初稿的尺寸与待匹配电网项目的移动端的屏幕分辨率相一致,以所述待匹配电网项目的移动端的屏幕分辨率为基数,计算经步骤S101转化计量单位后的图片元素、功能按钮元素和文字元素在待匹配电网项目的移动端的屏幕上显示时所占的百分比。The size of the first draft of the design defined in the manifest file of the grid project application is consistent with the screen resolution of the mobile terminal of the grid project to be matched, and the screen resolution of the mobile terminal of the grid project to be matched is used as the base to calculate the Step S101 is the percentage of the picture element, function button element and text element after the conversion of the measurement unit displayed on the screen of the mobile terminal of the grid item to be matched.

所述步骤S103中的缺陷是指文字元素在待匹配电网项目的移动端上显示时产生的显示异常,上述异常的产生是由于文字与生俱来的特性,并不像别的什么图片或者按钮等等控件有明显的边距,即使给文字元素按像素百分比进行了适配,但还是会与设计稿有一些出入;对上述缺陷进行修正时,需要参考待匹配电网项目移动端系统的父窗体,并且缩小文字元素与电网项目应用程序中其它有明显边距的图片元素或是功能按钮元素之间的距离。The defect in the step S103 refers to the display abnormality when the text element is displayed on the mobile terminal of the grid item to be matched. The above abnormality is caused by the inherent characteristics of the text, not like any other pictures or buttons. etc. The controls have obvious margins. Even if the text elements are adapted by pixel percentage, there will still be some discrepancies with the design draft; when correcting the above defects, it is necessary to refer to the parent window of the mobile terminal system of the grid project to be matched body, and reduce the distance between text elements and other graphic elements with significant margins or function button elements in the grid project application.

如图2所示,本发明还提供了一种实现电网项目移动端机型匹配的系统,包括:As shown in Figure 2, the present invention also provides a system for realizing the matching of mobile terminal models of power grid projects, including:

单位转化模块:用于将电网项目应用程序的用户界面所包含的图片元素、功能按钮元素和文字元素的计量单位全部转化为以像素为计量单位;Unit conversion module: used to convert the measurement units of picture elements, function button elements and text elements included in the user interface of the grid project application program into pixels as the measurement unit;

功能按钮function button

百分比计算模块:在电网项目应用程序的manifest清单文件中自定义一个设计初稿,为经转化计量单位后的图片元素、功能按钮元素和文字元素提供像素百分比计算;Percentage calculation module: customize a design draft in the manifest file of the grid project application, and provide pixel percentage calculation for the picture elements, function button elements and text elements after the conversion unit of measurement;

缺陷修正模块:对经像素百分比计算处理后电网项目应用程序的缺陷进行修正;Defect correction module: correct the defects of the grid project application program after pixel percentage calculation processing;

完成匹配模块:将经过缺陷修正后的电网项目应用程序导入待匹配电网项目的移动端完成适配。Completing the matching module: Import the grid project application after the defect correction into the mobile terminal of the grid project to be matched to complete the adaptation.

所述电网项目应用程序的用户界面所包含的图片元素和功能按钮元素的计量单位为设备独立像素,所述单位转化模块在将设备独立像素转化为像素时,使用的算法为像素=设备独立像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi。The unit of measurement of the picture element and the function button element included in the user interface of the power grid project application is the device-independent pixel. When the unit conversion module converts the device-independent pixel into the pixel, the algorithm used is pixel=device-independent pixel. *(target screen density/standard density), the target screen density is the screen density of the mobile terminal of the grid project to be matched, and the standard density is 160dpi.

所述电网项目应用程序的用户界面所包含的文字元素的计量单位为放大像素,所述单位转化模块在将放大像素转化为像素时,使用的算法为The unit of measurement of the text elements included in the user interface of the power grid project application program is enlarged pixels, and the unit conversion module uses an algorithm when converting the enlarged pixels into pixels as follows:

像素=放大像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi。Pixel = magnified pixel * (target screen density/standard density), the target screen density is the screen density of the mobile terminal of the grid project to be matched, and the standard density is 160dpi.

所述百分比计算模块在电网项目应用程序的manifest清单文件中定义的设计初稿的尺寸与待匹配电网项目的移动端的屏幕分辨率相一致,以所述待匹配电网项目的移动端的屏幕分辨率为基数,计算经转化计量单位后的图片元素、功能按钮元素和文字元素在待匹配电网项目的移动端的屏幕上显示时所占的百分比。The size of the design draft defined in the manifest file of the grid project application program by the percentage calculation module is consistent with the screen resolution of the mobile terminal of the grid project to be matched, and the screen resolution of the mobile terminal of the grid project to be matched is the base number , and calculate the percentage of the picture elements, function button elements and text elements that are converted into measurement units when displayed on the screen of the mobile terminal of the grid item to be matched.

所述缺陷修正模块用于修正文字元素在待匹配电网项目的移动端上显示时产生的显示异常,对上述缺陷进行修正时,需要参考待匹配电网项目移动端系统的父窗体,并且缩小文字元素与电网项目应用程序中其它有明显边距的图片元素或是功能按钮元素之间的距离。The defect correction module is used to correct the display abnormality when the text element is displayed on the mobile terminal of the power grid project to be matched. When correcting the above defects, it is necessary to refer to the parent window of the mobile terminal system of the power grid project to be matched, and reduce the text The distance between the element and other clearly margined image elements or function button elements in the Grid Items application.

本发明主要解决了电网项目应用程序中数据显示紊乱、图片变形、图形的覆盖、开关及功能按钮无反应等问题,但由于文字没有明显边距这一与生俱来的特性,需要在项目应用程序XML布局文件中进行文字元素及该文字元素与其他有明显边距的图片等元素之间距离的微调,最终达到电网项目在不同机型上的完美显示。The invention mainly solves the problems of data display disorder, picture deformation, graphic overlay, unresponsive switch and function buttons in the grid project application program, etc. In the program XML layout file, the text element and the distance between the text element and other elements with obvious margins are fine-tuned, and finally the perfect display of the grid item on different models is achieved.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.

Claims (2)

1.一种电网项目移动端机型适配实现方法,其特征在于包括:1. a power grid project mobile terminal model adaptation implementation method is characterized in that comprising: S101 单位转化:将电网项目应用程序的用户界面所包含的图片元素、功能按钮元素和文字元素的计量单位全部转化为以像素为计量单位;S101 Unit conversion: Convert all the measurement units of picture elements, function button elements and text elements included in the user interface of the grid project application to pixels as the measurement unit; 所述电网项目应用程序的用户界面所包含的图片元素和功能按钮元素的计量单位为设备独立像素,所述设备独立像素转化为像素的公式为像素=设备独立像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi;The unit of measurement of the picture elements and function button elements included in the user interface of the power grid project application is the device-independent pixel, and the formula for converting the device-independent pixel into a pixel is pixel=device-independent pixel*(target screen density/standard density ), the target screen density is the screen density of the mobile terminal of the grid project to be matched, and the standard density is 160dpi; 所述电网项目应用程序的用户界面所包含的文字元素的计量单位为放大像素,所述放大像素转化为像素的公式为像素=放大像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi;The unit of measurement of the text elements included in the user interface of the power grid project application is enlarged pixels, and the formula for converting the enlarged pixels into pixels is pixel=enlarged pixels*(target screen density/standard density), the target screen density is the screen density of the mobile terminal of the grid project to be matched, and the standard density is 160dpi; S102 百分比计算:在电网项目应用程序的manifest清单文件中定义的设计初稿的尺寸与待匹配电网项目的移动端的屏幕分辨率相一致,以所述待匹配电网项目的移动端的屏幕分辨率为基数,计算经步骤S101转化计量单位后的图片元素、功能按钮元素和文字元素在待匹配电网项目的移动端的屏幕上显示时所占的百分比;S102 Percentage calculation: The size of the design draft defined in the manifest file of the grid project application is consistent with the screen resolution of the mobile terminal of the grid project to be matched, and the screen resolution of the mobile terminal of the grid project to be matched is the base number, Calculate the percentage of the picture elements, function button elements and text elements after the conversion of the measurement unit in step S101 when displayed on the screen of the mobile terminal of the grid item to be matched; S103 缺陷修正:对经步骤S102处理后电网项目应用程序的缺陷进行修正;所述缺陷是指文字元素在待匹配电网项目的移动端上显示时产生的显示异常,对上述缺陷进行修正时,需要参考待匹配电网项目移动端系统的父窗体,并且缩小文字元素与电网项目应用程序中其它有明显边距的图片元素或是功能按钮元素之间的距离;S103 Defect correction: correct the defects of the grid project application after the processing in step S102; the defect refers to the abnormal display generated when the text element is displayed on the mobile terminal of the grid project to be matched. Refer to the parent form of the mobile terminal system of the grid project to be matched, and reduce the distance between the text element and other image elements or function button elements with obvious margins in the grid project application; S104 完成匹配:将经过步骤S103修正后的电网项目应用程序导入待匹配电网项目的移动端完成适配。S104 Complete the matching: import the grid project application program corrected in step S103 into the mobile terminal of the grid project to be matched to complete the adaptation. 2.一种实现电网项目移动端机型匹配的系统,其特征在于包括:2. A system for realizing the matching of mobile terminal models of power grid projects is characterized in that comprising: 单位转化模块:用于将电网项目应用程序的用户界面所包含的图片元素、功能按钮元素和文字元素的计量单位全部转化为以像素为计量单位;所述电网项目应用程序的用户界面所包含的图片元素和功能按钮元素的计量单位为设备独立像素;Unit conversion module: used to convert all measurement units of picture elements, function button elements and text elements included in the user interface of the power grid project application into pixels as the measurement unit; Image elements and function button elements are measured in device-independent pixels; 所述单位转化模块在将设备独立像素转化为像素时,使用的算法为像素=设备独立像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi;When the unit conversion module converts device-independent pixels into pixels, the algorithm used is pixel=device-independent pixel*(target screen density/standard density), and the target screen density is the screen density of the mobile terminal of the grid project to be matched, The standard density is 160dpi; 所述电网项目应用程序的用户界面所包含的文字元素的计量单位为放大像素,所述单位转化模块在将放大像素转化为像素时,使用的算法为像素=放大像素*(目标屏密度/标准密度),所述目标屏密度为待匹配电网项目的移动端的屏幕密度,所述标准密度为160dpi;The unit of measurement of the text elements included in the user interface of the power grid project application program is enlarged pixels, and the unit conversion module uses an algorithm when converting the enlarged pixels into pixels as pixels=enlarged pixels*(target screen density/standard density), the target screen density is the screen density of the mobile terminal of the grid project to be matched, and the standard density is 160dpi; 功能按钮;function button; 百分比计算模块:在电网项目应用程序的manifest清单文件中定义的设计初稿的尺寸与待匹配电网项目的移动端的屏幕分辨率相一致,以所述待匹配电网项目的移动端的屏幕分辨率为基数,计算经转化计量单位后的图片元素、功能按钮元素和文字元素在待匹配电网项目的移动端的屏幕上显示时所占的百分比;Percentage calculation module: The size of the design draft defined in the manifest file of the grid project application is consistent with the screen resolution of the mobile terminal of the grid project to be matched, and the screen resolution of the mobile terminal of the grid project to be matched is the base number, Calculate the percentage of picture elements, function button elements and text elements that are displayed on the screen of the mobile terminal of the grid project to be matched after the conversion of the measurement unit; 缺陷修正模块:对经像素百分比计算处理后电网项目应用程序的缺陷进行修正;所述缺陷修正模块用于修正文字元素在待匹配电网项目的移动端上显示时产生的显示异常,对上述缺陷进行修正时,需要参考待匹配电网项目移动端系统的父窗体,并且缩小文字元素与电网项目应用程序中其它有明显边距的图片元素或是功能按钮元素之间的距离;Defect correction module: corrects the defects of the grid project application program after pixel percentage calculation processing; the defect correction module is used to correct the display abnormality generated when the text element is displayed on the mobile terminal of the grid project to be matched, and correct the above defects. When making corrections, it is necessary to refer to the parent form of the mobile terminal system of the grid project to be matched, and reduce the distance between the text element and other image elements or function button elements with obvious margins in the grid project application; 完成匹配模块:将经过缺陷修正后的电网项目应用程序导入待匹配电网项目的移动端完成适配。Completing the matching module: Import the grid project application after the defect correction into the mobile terminal of the grid project to be matched to complete the adaptation.
CN201710146519.4A 2017-03-13 2017-03-13 A method and system for realizing model adaptation of mobile terminal of power grid project Expired - Fee Related CN106933590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710146519.4A CN106933590B (en) 2017-03-13 2017-03-13 A method and system for realizing model adaptation of mobile terminal of power grid project

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710146519.4A CN106933590B (en) 2017-03-13 2017-03-13 A method and system for realizing model adaptation of mobile terminal of power grid project

Publications (2)

Publication Number Publication Date
CN106933590A CN106933590A (en) 2017-07-07
CN106933590B true CN106933590B (en) 2020-10-23

Family

ID=59433828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710146519.4A Expired - Fee Related CN106933590B (en) 2017-03-13 2017-03-13 A method and system for realizing model adaptation of mobile terminal of power grid project

Country Status (1)

Country Link
CN (1) CN106933590B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415754A (en) * 2018-03-15 2018-08-17 万帮充电设备有限公司 Android UI adaptation methods and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890632A (en) * 2012-09-18 2013-01-23 深圳市融创天下科技股份有限公司 Screen adaptation method, system and terminal device
CN103744595A (en) * 2013-12-30 2014-04-23 广州华多网络科技有限公司 Self-adaption display method and configuration file generating method and device
CN104598185A (en) * 2014-12-31 2015-05-06 乐视网信息技术(北京)股份有限公司 Character font correction method and system
CN105242921A (en) * 2015-09-23 2016-01-13 国网上海市电力公司 Compatibile UI developing device and application therefor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7928994B2 (en) * 2003-07-16 2011-04-19 Transpacific Image, Llc Graphics items that extend outside a background perimeter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890632A (en) * 2012-09-18 2013-01-23 深圳市融创天下科技股份有限公司 Screen adaptation method, system and terminal device
CN103744595A (en) * 2013-12-30 2014-04-23 广州华多网络科技有限公司 Self-adaption display method and configuration file generating method and device
CN104598185A (en) * 2014-12-31 2015-05-06 乐视网信息技术(北京)股份有限公司 Character font correction method and system
CN105242921A (en) * 2015-09-23 2016-01-13 国网上海市电力公司 Compatibile UI developing device and application therefor

Also Published As

Publication number Publication date
CN106933590A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN104994283B (en) A local distortion correction method and mobile terminal
US10230907B2 (en) Thermal imaging device and normative photographing method for thermal image
CN106797451A (en) Visual Object Tracking System with Model Validation and Management
CN107465882A (en) A kind of image capturing method and mobile terminal
WO2019203351A1 (en) Image display device and image display method
CN105160632B (en) Distortion correction method and mobile terminal
CN108898549B (en) Picture processing method, picture processing device and terminal equipment
CN105511712B (en) A kind of image presentation method and device
CN103905740B (en) Method and device for improving automatic exposure effect realized through manual adjustment
CN115802174B (en) White picture correction method and device of display equipment, storage medium and electronic equipment
JP2012138897A5 (en)
WO2019100270A1 (en) Image noise calibration method and apparatus, image noise reduction method and apparatus, and image processing apparatus
CN106933590B (en) A method and system for realizing model adaptation of mobile terminal of power grid project
CN110992251B (en) Logo replacing method and device in video and electronic equipment
CN116489377A (en) Image processing method and electronic device
CN110113590A (en) A kind of conversion method and device of image color space
CN113990230B (en) Gamma curve vertex acquisition method, device, equipment and readable storage medium
US9881405B2 (en) Image processor for producing an image on an irregular surface in a wearable device
CN117746819A (en) Screen brightness adjustment methods, devices and equipment
CN115134573A (en) A color setting method, display device, and computer-readable storage medium
CN110533729A (en) Intelligent terminal, pixel processing method and computer readable storage medium
CN109614064A (en) Picture display method, picture display device and terminal equipment
CN114399627B (en) Image labeling method, device, electronic equipment and computer readable medium
CN104813272A (en) Colour modulation monitor, colour modulation system and colour modulation method
CN104994295B (en) The method and mobile terminal of a kind of distortion correction

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201023

Termination date: 20210313

CF01 Termination of patent right due to non-payment of annual fee