CN107957896A - Disparity items self-adaptive layout method and system, storage medium and car-mounted terminal - Google Patents

Disparity items self-adaptive layout method and system, storage medium and car-mounted terminal Download PDF

Info

Publication number
CN107957896A
CN107957896A CN201711182839.1A CN201711182839A CN107957896A CN 107957896 A CN107957896 A CN 107957896A CN 201711182839 A CN201711182839 A CN 201711182839A CN 107957896 A CN107957896 A CN 107957896A
Authority
CN
China
Prior art keywords
layout
identification information
product
disparity items
item identification
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
Application number
CN201711182839.1A
Other languages
Chinese (zh)
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.)
Shanghai Pateo Electronic Equipment Manufacturing Co Ltd
Original Assignee
Shanghai Pateo Electronic Equipment Manufacturing Co Ltd
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 Shanghai Pateo Electronic Equipment Manufacturing Co Ltd filed Critical Shanghai Pateo Electronic Equipment Manufacturing Co Ltd
Priority to CN201711182839.1A priority Critical patent/CN107957896A/en
Publication of CN107957896A publication Critical patent/CN107957896A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of disparity items self-adaptive layout method and system, storage medium and car-mounted terminal, comprises the following steps:In the configuration file of application, it is laid out for project corresponding to same screen resolution setting standard layout and disparity items identification information;Obtain the screen resolution and item identification information of product;Judge in the configuration file with the presence or absence of the item identification information of the product;If it is not, the product uses the standard layout;If so, item identification information corresponding project layout of the product using product.The disparity items self-adaptive layout method and system of the present invention, storage medium and car-mounted terminal provide different layout informations for disparity items, corresponding layout information is preferentially selected according to item identification information, so as to provide the layout designs of different-style for disparity items.

Description

Disparity items self-adaptive layout method and system, storage medium and car-mounted terminal
Technical field
The present invention relates to the technical field of data processing, more particularly to a kind of disparity items self-adaptive layout method and is System, storage medium and car-mounted terminal.
Background technology
In the prior art, android system is only capable of being adapted to different layouts according to information such as screen resolution, time zones, from And carry out the display of different-style.But for the disparity items of same application, when its screen resolution is identical, although with Family experience is (User Experience, UE) and basically identical in logic, but can not be distinguished in layout, therefore can not realize The differentiation processing of disparity items.
The content of the invention
In view of the foregoing deficiencies of prior art, it is an object of the invention to provide a kind of disparity items self-adaptive layout Method and system, storage medium and car-mounted terminal, different layout informations are provided for disparity items, preferentially according to project label Information selects corresponding layout information, so as to providing the layout designs of different-style for disparity items.
In order to achieve the above objects and other related objects, the present invention provides a kind of disparity items self-adaptive layout method, bag Include following steps:In the configuration file of application, standard layout and disparity items mark letter are set for same screen resolution Cease corresponding project layout;Obtain the screen resolution and item identification information of product;Judge whether deposited in the configuration file In the item identification information of the product;If it is not, the product uses the standard layout;If so, the product uses product Item identification information corresponding project layout.
In one embodiment of the invention, the standard layout and project layout include topology file and resource text Part.
In one embodiment of the invention, the resource file includes picture and/or character string.
In one embodiment of the invention, the item identification information is project name or item designation.
Accordingly, the present invention provides a kind of disparity items self-adaptive layout system, including setup module, acquisition module and sentences Disconnected module;
The setup module is used in the configuration file of application, for same screen resolution setting standard layout and not The corresponding project layout with item identification information;
The acquisition module is used for the screen resolution and item identification information for obtaining product;
The judgment module is used to judge the item identification information that whether there is the product in the configuration file;If No, the product uses the standard layout;If so, the product uses the corresponding project cloth of item identification information of product Office.
In one embodiment of the invention, the standard layout and project layout include topology file and resource text Part.
In one embodiment of the invention, the resource file includes picture and/or character string.
In one embodiment of the invention, the item identification information is project name or item designation.
Meanwhile the present invention provides a kind of storage medium, computer program is stored thereon with, when which is executed by processor Realize above-mentioned disparity items self-adaptive layout method.
Finally, the present invention provides a kind of car-mounted terminal, including processor and memory;
The memory is used to store computer program;
The processor is used for the computer program for performing the memory storage, so that car-mounted terminal execution is above-mentioned Disparity items self-adaptive layout method.
As described above, the disparity items self-adaptive layout method and system of the present invention, storage medium and car-mounted terminal, have Below
Beneficial effect:
(1) different layout informations is provided for disparity items, corresponding cloth is preferentially selected according to item identification information Office's information;
(2) layout designs of different-style can be provided for disparity items, greatly improve user experience.
Brief description of the drawings
Fig. 1 is shown as flow chart of the disparity items self-adaptive layout method of the present invention in an embodiment;
Fig. 2 is shown as structure diagram of the disparity items self-adaptive layout system of the present invention in an embodiment;
Fig. 3 is shown as structure diagram of the car-mounted terminal of the present invention in an embodiment.
Component label instructions
21 setup modules
22 acquisition modules
23 judgment modules
31 processors
32 memories
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from Various modifications or alterations are carried out under the spirit of the present invention.
It should be noted that the diagram provided in the present embodiment only illustrates the basic conception of the present invention in a schematic way, Then in schema only display with it is of the invention in related component rather than component count, shape and size during according to actual implementation paint System, kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its assembly layout kenel also may be used Can be increasingly complex.
The disparity items self-adaptive layout method and system of the present invention, storage medium and car-mounted terminal are carried for disparity items For different layout informations, and corresponding layout information is preferentially selected according to item identification information, so as to for phase Disparity items with the same application of screen resolution provides the layout designs of different-style, greatly improves user experience.
As shown in Figure 1, in an embodiment, disparity items self-adaptive layout method of the invention comprises the following steps:
Step S1, in the configuration file of application, standard layout and different item target are set for same screen resolution Know the corresponding project layout of information.
Specifically, in the configuration file of application, a variety of layouts, i.e. screen can be pre-set for same screen resolution The corresponding standard layout of resolution ratio, the corresponding project layout of each item identification information.That is, for different projects, In order not to same display styles, disparity items layout is configured with.
In one embodiment of the invention, the standard layout and project layout include topology file and resource text Part.The resource file includes picture and/or character string.
In one embodiment of the invention, the item identification information uses project name or item designation.
For example, for two projects asteroid and neptune, there is provided two sets of resource files and topology file, are adopted respectively With following naming method:
drawable-asteroid-w720dp,layout-asteroid-w720dp,values-asteroid- w720dp.
drawable-neptune-w720dp,layout-neptune-w720dp,values-neptune-w720dp
Wherein asteroid and neptune represents item identification information, and w720dp represents screen width.
Step S2, the screen resolution and item identification information of product are obtained.
Specifically, for some product, the screen resolution and project label that the product is obtained in its system information are believed Breath.For example, acquired screen resolution is 1280*720, item identification information asteroid.
Step S3, judge in the configuration file with the presence or absence of the item identification information of the product;If it is not, the product Using the standard layout;If so, item identification information corresponding project layout of the product using product.
Specifically, the priority of setting item identification information is more than screen resolution.If there are item target in configuration file Know information, then the layout in this product is realized using the corresponding project layout of item identification information;If do not deposited in configuration file In item identification information, then the layout of this product is realized using standard layout.
Specifically, priority is set in the following ways:
<Resource-property level=1>ro.project.name</>
<Resource-property level=2>ro.device.resolution</>
Wherein, level represents priority, and the smaller priority of numeral is higher;The value of resource-property is represented Attribute, system such as can obtain project label letter according to the related data of the name acquiring system according to ro.project.name Breath, such as asteroid;Screen resolution, such as 1280X720 are obtained according to ro.device.resolution.
For example, when acquired item identification information is asteroid, then drawable-asteroid- is loaded The resource of w720dp;When acquired item identification information is fastorid, since there is no the item identification information, then add Carry the resource of drawable-w720dp.
Preferably, disparity items self-adaptive layout method of the invention is applied to android system.
As shown in Fig. 2, in an embodiment, disparity items self-adaptive layout system of the invention include setup module 21, Acquisition module 22 and judgment module 23.
Setup module 21 is used in the configuration file of application, and standard layout and difference are set for same screen resolution The corresponding project layout of item identification information.
Specifically, in the configuration file of application, a variety of layouts, i.e. screen can be pre-set for same screen resolution The corresponding standard layout of resolution ratio, the corresponding project layout of each item identification information.That is, for different projects, In order not to same display styles, disparity items layout is configured with.
In one embodiment of the invention, the standard layout and project layout include topology file and resource text Part.The resource file includes picture and/or character string.
In one embodiment of the invention, the item identification information uses project name or item designation.
For example, for two projects asteroid and neptune, there is provided two sets of resource files and topology file, are adopted respectively With following naming method:
drawable-asteroid-w720dp,layout-asteroid-w720dp,values-asteroid- w720dp.
drawable-neptune-w720dp,layout-neptune-w720dp,values-neptune-w720dp
Wherein asteroid and neptune represents item identification information, and w720dp represents screen width.
Acquisition module 22 is used for the screen resolution and item identification information for obtaining product.
Specifically, for some product, the screen resolution and project label that the product is obtained in its system information are believed Breath.For example, acquired screen resolution is 1280*720, item identification information asteroid.
Judgment module 23 is connected with setup module 21 and acquisition module 22, for judging to whether there is in the configuration file The item identification information of the product;If it is not, the product uses the standard layout;If so, the product is using product The corresponding project layout of item identification information.
Specifically, the priority of setting item identification information is more than screen resolution.If there are item target in configuration file Know information, then the layout in this product is realized using the corresponding project layout of item identification information;If do not deposited in configuration file In item identification information, then the layout of this product is realized using standard layout.
Specifically, priority is set in the following ways:
<Resource-property level=1>ro.project.name</>
<Resource-property level=2>ro.device.resolution</>
Wherein, level represents priority, and the smaller priority of numeral is higher;The value of resource-property is represented Attribute, system such as can obtain project label letter according to the related data of the name acquiring system according to ro.project.name Breath, such as asteroid;Screen resolution, such as 1280X720 are obtained according to ro.device.resolution.
For example, when acquired item identification information is asteroid, then drawable-asteroid- is loaded The resource of w720dp;When acquired item identification information is fastorid, since there is no the item identification information, then add Carry the resource of drawable-w720dp.
It should be noted that it should be understood that the modules of system above division be only a kind of division of logic function, Can completely or partially it be integrated on a physical entity when actually realizing, can also be physically separate.And these modules can be with All realized in the form of software is called by treatment element;Can also all it realize in the form of hardware;Can also part mould Block calls the form of software to realize by treatment element, and part of module is realized by the form of hardware.For example, x modules can be The treatment element individually set up, can also be integrated in some chip of above device and realize, in addition it is also possible to program generation The form of code is stored in the memory of above device, is called by some treatment element of above device and is performed above x moulds The function of block.The realization of other modules is similar therewith.In addition these modules can completely or partially integrate, can also be only It is vertical to realize.Treatment element described here can be a kind of integrated circuit, have the disposal ability of signal.During realization, Each step of the above method or more modules can pass through the integrated logic circuit or soft of the hardware in processor elements The instruction of part form is completed.
For example, the above module can be arranged to implement one or more integrated circuits of above method, such as: One or more specific integrated circuits (ApplicationSpecificIntegratedCircuit, abbreviation ASIC), or, one Or multi-microprocessor (digitalsingnalprocessor, abbreviation DSP), or, one or more field-programmable gate array Arrange (FieldProgrammableGateArray, abbreviation FPGA) etc..For another example, some module is dispatched by treatment element more than When the form of program code is realized, which can be general processor, such as central processing unit (CentralProcessingUnit, abbreviation CPU) or it is other can be with the processor of caller code.For another example, these modules can To integrate, realized in the form of system-on-chip (system-on-a-chip, abbreviation SOC).
Computer program is stored with the storage medium of the present invention, which realizes above-mentioned non-lead when being executed by processor The method that traffic information is obtained under boat state.Preferably, the storage medium includes:ROM, RAM, magnetic disc or CD etc. are various Can be with the medium of store program codes.
As shown in figure 3, in an embodiment, car-mounted terminal of the invention includes processor 31 and memory 32.
The memory 32 is used to store computer program.
Preferably, the memory 32 includes:ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The processor 31 is connected with the memory 32, the computer program stored for performing the memory 32, So that the car-mounted terminal performs above-mentioned disparity items self-adaptive layout method.
Preferably, processor 31 can be general processor, including central processing unit (CentralProcessingUnit, Abbreviation CPU), network processing unit (NetworkProcessor, abbreviation NP) etc.;It can also be digital signal processor (DigitalSignalProcessing, abbreviation DSP), application-specific integrated circuit (ApplicationSpecificIntegratedCircuit, abbreviation ASIC), field programmable gate array (Field- ProgrammableGateArray, abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic device Part, discrete hardware components.
In conclusion the disparity items self-adaptive layout method and system of the present invention, storage medium and car-mounted terminal are directed to Disparity items provides different layout informations, and corresponding layout information is preferentially selected according to item identification information;Can be not The layout designs of different-style are provided with project, greatly improve user experience.So the present invention effectively overcomes existing skill Various shortcoming in art and have high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as Into all equivalent modifications or change, should by the present invention claim be covered.

Claims (10)

  1. A kind of 1. disparity items self-adaptive layout method, it is characterised in that:Comprise the following steps:
    In the configuration file of application, set standard layout and disparity items identification information corresponding for same screen resolution Project is laid out;
    Obtain the screen resolution and item identification information of product;
    Judge in the configuration file with the presence or absence of the item identification information of the product;If it is not, the product uses the mark Quasi- layout;If so, item identification information corresponding project layout of the product using product.
  2. 2. disparity items self-adaptive layout method according to claim 1, it is characterised in that:The standard layout and described Project layout includes topology file and resource file.
  3. 3. disparity items self-adaptive layout method according to claim 2, it is characterised in that:The resource file includes figure Piece and/or character string.
  4. 4. disparity items self-adaptive layout method according to claim 1, it is characterised in that:The item identification information is Project name or item designation.
  5. A kind of 5. disparity items self-adaptive layout system, it is characterised in that:Including setup module, acquisition module and judgment module;
    The setup module is used in the configuration file of application, and standard layout and different item are set for same screen resolution The corresponding project layout of mesh identification information;
    The acquisition module is used for the screen resolution and item identification information for obtaining product;
    The judgment module is used to judge the item identification information that whether there is the product in the configuration file;If it is not, institute State product and use the standard layout;If so, item identification information corresponding project layout of the product using product.
  6. 6. disparity items self-adaptive layout system according to claim 5, it is characterised in that:The standard layout and described Project layout includes topology file and resource file.
  7. 7. disparity items self-adaptive layout system according to claim 6, it is characterised in that:The resource file includes figure Piece and/or character string.
  8. 8. disparity items self-adaptive layout system according to claim 5, it is characterised in that:The item identification information is Project name or item designation.
  9. 9. a kind of storage medium, is stored thereon with computer program, it is characterised in that power is realized when the program is executed by processor Profit requires the disparity items self-adaptive layout method any one of 1 to 4.
  10. A kind of 10. car-mounted terminal, it is characterised in that:Including processor and memory;
    The memory is used to store computer program;
    The processor is used for the computer program for performing the memory storage, so that the car-mounted terminal perform claim requires Disparity items self-adaptive layout method any one of 1 to 4.
CN201711182839.1A 2017-11-23 2017-11-23 Disparity items self-adaptive layout method and system, storage medium and car-mounted terminal Pending CN107957896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711182839.1A CN107957896A (en) 2017-11-23 2017-11-23 Disparity items self-adaptive layout method and system, storage medium and car-mounted terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711182839.1A CN107957896A (en) 2017-11-23 2017-11-23 Disparity items self-adaptive layout method and system, storage medium and car-mounted terminal

Publications (1)

Publication Number Publication Date
CN107957896A true CN107957896A (en) 2018-04-24

Family

ID=61961807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711182839.1A Pending CN107957896A (en) 2017-11-23 2017-11-23 Disparity items self-adaptive layout method and system, storage medium and car-mounted terminal

Country Status (1)

Country Link
CN (1) CN107957896A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857455A (en) * 2018-12-29 2019-06-07 深圳Tcl新技术有限公司 Installation kit packaging method, system, equipment and storage medium
CN111104085A (en) * 2019-12-31 2020-05-05 深圳市康冠智能科技有限公司 Display screen adaptation method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377051A (en) * 2013-07-16 2013-10-30 广东欧珀移动通信有限公司 Application interface customizing method based on Android system
CN104090777A (en) * 2014-07-28 2014-10-08 浪潮电子信息产业股份有限公司 Method for customizing interface layout for software function modules
CN104111826A (en) * 2013-04-19 2014-10-22 杭州新世纪电子科技有限公司 Software project development method and device
CN104714714A (en) * 2013-12-11 2015-06-17 酷吧时代科技(北京)有限公司 Mobile terminal desktop control method and device and mobile terminal
CN105373406A (en) * 2015-12-03 2016-03-02 Tcl集团股份有限公司 Android platform based application layout dynamic switching method and system
CN106528124A (en) * 2016-10-26 2017-03-22 广东广新信息产业股份有限公司 Page template release method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111826A (en) * 2013-04-19 2014-10-22 杭州新世纪电子科技有限公司 Software project development method and device
CN103377051A (en) * 2013-07-16 2013-10-30 广东欧珀移动通信有限公司 Application interface customizing method based on Android system
CN104714714A (en) * 2013-12-11 2015-06-17 酷吧时代科技(北京)有限公司 Mobile terminal desktop control method and device and mobile terminal
CN104090777A (en) * 2014-07-28 2014-10-08 浪潮电子信息产业股份有限公司 Method for customizing interface layout for software function modules
CN105373406A (en) * 2015-12-03 2016-03-02 Tcl集团股份有限公司 Android platform based application layout dynamic switching method and system
CN106528124A (en) * 2016-10-26 2017-03-22 广东广新信息产业股份有限公司 Page template release method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857455A (en) * 2018-12-29 2019-06-07 深圳Tcl新技术有限公司 Installation kit packaging method, system, equipment and storage medium
CN111104085A (en) * 2019-12-31 2020-05-05 深圳市康冠智能科技有限公司 Display screen adaptation method and device, computer equipment and storage medium
CN111104085B (en) * 2019-12-31 2024-02-06 深圳市康冠智能科技有限公司 Display screen adaptation method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108282518A (en) A kind of customer terminal webpage generation method and device
CN110110174A (en) Generation, monitoring and the methods of exhibiting of the data visualization page, browser and server
CN105468797B (en) A kind of information processing method and device
CN104850027B (en) A kind of CAN data-interfaces modeling automatic generation method and system
CN108345511A (en) A kind of application data verification method, device and electronic equipment
US10782995B2 (en) Flexible physical function and virtual function mapping
CN107203465A (en) System interface method of testing and device
CN109165227A (en) Update/application method, system, medium and the terminal in EDA pad encapsulation library
CN107193440A (en) A kind of method for showing interface and device, computer installation and readable storage medium storing program for executing
CN109271587A (en) A kind of page generation method and device
CN110535679A (en) Management method, framework, network slice sales platform and the management system of slice
CN107506483A (en) Page loading method, device, electronic equipment and storage medium
CN107957896A (en) Disparity items self-adaptive layout method and system, storage medium and car-mounted terminal
CN104834759A (en) Realization method and device for electronic design
CN112417800B (en) Integrated circuit processing method, integrated circuit verification device and electronic equipment
CN108363574B (en) Front-end customization method and device based on SDK, terminal equipment and storage medium
CN116467179A (en) Test case batch editing method and device and processing equipment
CN107369192B (en) Connection relation processing method and device
CN114548028B (en) Method for performing low-power design, electronic device and storage medium
US8881093B2 (en) Apparatus and method for reconstructing embedded software development environment
US8656335B2 (en) System and methods for inferring higher level descriptions from RTL topology based on connectivity propagation
CN108846879A (en) The generation method and device of colour table
CN112463202B (en) Configuration method and device of operating system functional components
CN114115864A (en) Interface generation method and device and electronic equipment
CN107967151A (en) More applications start method and system, storage medium, car-mounted terminal at the same time on car-mounted terminal

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
CB02 Change of applicant information

Address after: 201822 No.208, building 4, no.1411, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai

Applicant after: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Address before: 201822 No.208, building 4, no.1411, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai

Applicant before: SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING Co.,Ltd.

CB02 Change of applicant information
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180424

WD01 Invention patent application deemed withdrawn after publication