CN113448581A - Software development kit interface adaptation method and device - Google Patents

Software development kit interface adaptation method and device Download PDF

Info

Publication number
CN113448581A
CN113448581A CN202110826398.4A CN202110826398A CN113448581A CN 113448581 A CN113448581 A CN 113448581A CN 202110826398 A CN202110826398 A CN 202110826398A CN 113448581 A CN113448581 A CN 113448581A
Authority
CN
China
Prior art keywords
target
directory
adaptation
target resource
display
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
CN202110826398.4A
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 Yiworld Information Technology Group Co ltd Guangzhou Branch
Original Assignee
Shanghai Yiworld Information Technology Group Co ltd Guangzhou Branch
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 Yiworld Information Technology Group Co ltd Guangzhou Branch filed Critical Shanghai Yiworld Information Technology Group Co ltd Guangzhou Branch
Priority to CN202110826398.4A priority Critical patent/CN113448581A/en
Publication of CN113448581A publication Critical patent/CN113448581A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Abstract

The embodiment of the application discloses a method and a device for adapting an SDK interface, wherein the method comprises the following steps: copying files under a first directory of an item to be adapted to a second directory, and creating an output directory based on the files in the second directory; searching a target line for defining the display parameters of the SDK interface in a file under a second directory; searching display parameters from the target line, and zooming the display parameters according to the adaptive proportion to obtain display adjustment parameters; converting the display adjustment parameters into target resources, and storing the target resources into target resource files under an output directory; replacing the display parameters in the target line with the target resource reference identifier to obtain a modified target line, and storing the modified target line to an output directory; the target resource reference identifier is used for indicating the reference of a target resource in the target resource file; and copying all files in the output directory to the item to be adapted. The method can enable the SDK interface to be rapidly adapted to different display devices.

Description

Software development kit interface adaptation method and device
Technical Field
The application relates to the technical field of computers, in particular to a Software Development Kit (SDK) interface adaptation method and device.
Background
In the existing software research and development field, a complete application program often includes numerous functional modules, wherein most functions need to interact with a program user through an interface, but each interface is often difficult to adapt to different display devices, that is, different deformation may occur to the program interface on different display devices, which affects the user experience of the application program user;
the SDK (software development kit) is used as one of a plurality of functional modules and also has an interface of the function of the SDK, when the SDK is used as a tool or a module for a main application program developer, any adaptation behavior of the SDK cannot influence a main program, otherwise, other functions of the main program are abnormal, and extra development time and development cost are increased
In the existing related art, constraint layouts such as match _ parent or wrap _ content configuration and constraint layout are usually used, however, this implementation method needs to redevelop the existing project and cannot adapt to the existing project quickly. Alternatively, the global density parameter intensity may be modified in the application, and this operation will act on all display interfaces of the application, and will also affect the main program interface of the SDK user.
Therefore, how to make the SDK interface quickly adapt to different display devices without affecting the main program interface is a technical problem to be solved.
Disclosure of Invention
The embodiment of the application provides an SDK interface adaptation method and device, which can enable an SDK interface to be rapidly adapted to different display devices.
In view of this, a first aspect of the present application provides a software tool development kit interface adaptation method, including:
copying files under a first directory of an item to be adapted to a second directory, and creating an output directory based on the files in the second directory;
searching a target line in the file under the second directory; the target row is a row for defining display parameters of an SDK interface of a software tool development kit;
searching the display parameters from the target line, and zooming the display parameters according to the adaptive proportion to obtain display adjustment parameters;
converting the display adjustment parameters into target resources, and storing the target resources into target resource files under the output directory;
replacing the display parameters in the target line with target resource reference identifiers to obtain a modified target line, and storing the modified target line to the output directory; the target resource reference identifier is used for indicating to reference the target resource in the target resource file;
and copying all files in the output catalog to the item to be adapted.
Optionally, the scaling the display parameter according to the adaptation ratio to obtain a display adjustment parameter includes:
respectively carrying out scaling processing on the display parameters according to a plurality of different adaptation proportions to obtain display adjustment parameters corresponding to the adaptation proportions;
converting the display adjustment parameter into a target resource, and storing the target resource into a target resource file in the output directory, including:
and respectively converting the display adjustment parameters corresponding to the adaptation proportions into target resources corresponding to the adaptation proportions, and storing the target resources corresponding to the adaptation proportions into the target resource file under the output directory.
Optionally, the storing the target resources corresponding to the multiple adaptation ratios in the target resource file under the output directory includes:
respectively creating corresponding target subdirectories aiming at the plurality of adaptation proportions;
and aiming at the target resource corresponding to each adaptation proportion, storing the target resource corresponding to the adaptation proportion into the target resource file under the output directory and the target subdirectory corresponding to the adaptation proportion.
Optionally, the searching for the target line in the file in the second directory includes:
and searching the target row in the file under the second target through a regular expression.
Optionally, after copying the file in the first directory of the item to be adapted to the second directory, the method further includes:
and backing up all files in the second directory to a third directory.
A second aspect of the present application provides a software tool development kit interface adaptation apparatus, comprising:
the first copying module is used for copying files under a first directory of an item to be adapted to a second directory and creating an output directory based on the files in the second directory;
the target line searching module is used for searching a target line in the file under the second directory; the target row is a row for defining display parameters of an SDK interface of a software tool development kit;
the parameter processing module is used for searching the display parameters from the target line and carrying out scaling processing on the display parameters according to the adaptive proportion to obtain display adjustment parameters;
the first storage module is used for converting the display adjustment parameters into target resources and storing the target resources into a target resource file under the output directory;
the second storage module is used for replacing the display parameters in the target line with target resource reference identifiers to obtain a modified target line and storing the modified target line to the output directory; the target resource reference identifier is used for indicating to reference the target resource in the target resource file;
and the second copying module is used for copying all files in the output directory to the item to be adapted.
Optionally, the parameter processing module is specifically configured to:
respectively carrying out scaling processing on the display parameters according to a plurality of different adaptation proportions to obtain display adjustment parameters corresponding to the adaptation proportions;
the first saving module is specifically configured to:
and respectively converting the display adjustment parameters corresponding to the adaptation proportions into target resources corresponding to the adaptation proportions, and storing the target resources corresponding to the adaptation proportions into the target resource file under the output directory.
Optionally, the first saving module is specifically configured to:
respectively creating corresponding target subdirectories aiming at the plurality of adaptation proportions;
and aiming at the target resource corresponding to each adaptation proportion, storing the target resource corresponding to the adaptation proportion into the target resource file under the output directory and the target subdirectory corresponding to the adaptation proportion.
Optionally, the target line searching module is specifically configured to:
and searching the target row in the file under the second target through a regular expression.
Optionally, the apparatus further comprises:
and the file backup module is used for backing up all files in the second directory to a third directory.
According to the technical scheme, the embodiment of the application has the following advantages:
the embodiment of the application provides an SDK interface adaptation method, which comprises the following steps: copying files under a first directory of an item to be adapted to a second directory, and creating an output directory based on the files in the second directory; searching a target line in the file under the second directory, wherein the target line is a line for defining display parameters of the SDK interface; searching display parameters from the target line, and zooming the display parameters according to the adaptive proportion to obtain display adjustment parameters; converting the display adjustment parameters into target resources, and storing the target resources into target resource files under an output directory; replacing the display parameters in the target line with the target resource reference identifier to obtain a modified target line, and storing the modified target line to an output directory; the target resource reference identifier is used for indicating to reference the marked resource in the target resource file; and copying all files in the output directory to the item to be adapted. The SDK interface adaptation method can be used for rapidly adapting the existing SDK project without secondary development, does not influence the interactive interface of an SDK user, and is good in universality and high in efficiency.
Drawings
Fig. 1 is a schematic flowchart of an SDK interface adaptation method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a game SDK interface adaptation device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to enable an SDK interface to be rapidly adapted to different display devices, an embodiment of the application provides an SDK interface adaptation method, in which a file under a first directory of an item to be adapted is copied to a second directory, and an output directory is created based on the file in the second directory; then, searching a target line in the file under the second directory, wherein the target line is a line used for defining the display parameters of the SDK interface; further, searching display parameters from the target line, and carrying out zooming processing on the display parameters according to the adaptive proportion to obtain display adjustment parameters; converting the display adjustment parameters into target resources, and storing the target resources into target resource files under an output directory; then, replacing the display parameters in the target line with the target resource reference identifier to obtain a modified target line, and storing the modified target line to an output directory; the target resource reference identifier is used for indicating to reference the marked resource in the target resource file; and finally copying all files in the output directory to the item to be adapted. The SDK interface adaptation method can be used for rapidly adapting the existing SDK project without secondary development, does not influence the interactive interface of an SDK user, and is good in universality and high in efficiency.
The SDK interface adaptation method provided by the present application is described in detail below by way of an embodiment of the method.
Referring to fig. 1, fig. 1 is a schematic flowchart of an SDK interface adaptation method provided in an embodiment of the present application. As shown in fig. 1, the SDK interface adaptation method includes the following steps:
step 101: copying files under a first directory of an item to be adapted to a second directory, and creating an output directory based on files in the second directory.
Specifically, all files in the res directory (i.e., the first directory) of the item to be adapted may be copied to the in directory (i.e., the second directory), and then an output directory, i.e., an out directory, is correspondingly created based on the files in the in directory.
Optionally, after copying all files in the res directory of the item to be adapted to the in directory, all files in the in directory may also be backed up to a third directory, where the third directory may specifically be a backup directory, so that when a file is lost or damaged in the subsequent process, all files originally stored in the in directory may be restored from the backup directory.
Step 102: searching a target line in the file under the second directory; the target row is a row for defining display parameters of the software tool development kit SDK interface.
Then, the contents in all xml files under the in directory are read in batch to find out the target line for defining the display parameters of the SDK interface, such as the target line defining the width and height of the SDK interface, and the like. In specific implementation, the target lines can be searched in all xml files under the in directory through the regular term expression.
Step 103: and searching the display parameters from the target line, and zooming the display parameters according to the adaptive proportion to obtain display adjustment parameters.
And then, searching the display parameters defined by the target line from the target line, and carrying out scaling processing on the display parameters according to the adaptive proportion to obtain display adjustment parameters. The fitting ratio is the ratio of the DP value to be fitted to the preset DP value (generally 360), and the DP value to be fitted can be set by the tool user according to the actual requirement.
In a possible implementation manner, the display parameters found from the target line may be scaled according to a plurality of different adaptation ratios, so as to obtain display adjustment parameters corresponding to the plurality of adaptation ratios. For example, a plurality of different adaptation ratios can be calculated by using DP values corresponding to a plurality of common display devices and a preset DP value, for each adaptation ratio, scaling the display parameters in the target line according to the adaptation ratio to obtain display adjustment parameters corresponding to the adaptation ratio, and after the scaling is respectively completed based on the adaptation ratios, the display adjustment parameters corresponding to the adaptation ratios can be obtained.
Step 104: and converting the display adjustment parameters into target resources, and storing the target resources into target resource files in the output directory.
And converting the display adjustment parameter obtained after scaling into a dimens resource (namely a target resource), and storing the dimes resource into a dimens resource file in a dimes directory corresponding to the out directory, wherein the dimes directory is named as ' values-swXXdp ' (XX is a DP value which corresponds to an adaptation proportion and needs to be adapted), and the dimes resource file is named as an appointed prefix plus ' _ dimens.
If the display adjustment parameters corresponding to the multiple adaptation ratios are obtained through step 103, the display adjustment parameters corresponding to the multiple adaptation ratios need to be converted into the dimes resources corresponding to the multiple adaptation ratios, and the dimes resources corresponding to the multiple adaptation ratios are stored in the dimes resource file under the out directory.
During specific implementation, the respective corresponding dimensions subdirectories of the multiple adaptation proportions can be respectively created, and further, for the dimensions resource corresponding to each adaptation proportion, the dimensions resource corresponding to the adaptation proportion is stored in the dimensions resource file under the out directory and the dimensions subdirectory corresponding to the adaptation proportion. For example, assuming that the multiple adaptation ratios include 1 and 2, the DP value to be adapted corresponding to 1 is 360DP, and the DP value to be adapted corresponding to 2 is 720DP, it is necessary to create a dimens subdirectory named "values-sw 360 DP" and "values-sw 720 DP" for the two adaptation ratios, respectively, further save the dimens resource corresponding to 1 into the dimens resource file under the subdirectory named "values-sw 360 DP" in the out directory, and save the dimens resource corresponding to 2 into the dimens resource file under the subdirectory named "values-sw 720 DP" in the out directory.
Step 105: replacing the display parameters in the target line with target resource reference identifiers to obtain a modified target line, and storing the modified target line to the output directory; the target resource reference identifier is used for indicating to reference the target resource in the target resource file.
In addition, the original display parameters in the target row need to be replaced by the dimes resource reference identifier (i.e., the target resource reference identifier) to obtain the modified target row. The references of the medias resources are used for indicating and referencing the medias resources in the medias resource file, and the references of the medias resources are named as a specified prefix + an original numerical value (if the original numerical value is a negative number, the original numerical value is replaced by a _), so that the references are named, and the conflicts with the resources of the SDK user can be avoided. Further, the modified target line is saved to the out directory.
Step 106: and copying all files in the output catalog to the item to be adapted.
And finally copying all files in the out directory to the item to be adapted to replace the original file.
In the SDK interface adaptation method provided by the embodiment of the application, a file under a first directory of an item to be adapted is copied to a second directory, and an output directory is created based on the file in the second directory; then, searching a target line in the file under the second directory, wherein the target line is a line used for defining the display parameters of the SDK interface; further, searching display parameters from the target line, and carrying out zooming processing on the display parameters according to the adaptive proportion to obtain display adjustment parameters; converting the display adjustment parameters into target resources, and storing the target resources into target resource files under an output directory; then, replacing the display parameters in the target line with the target resource reference identifier to obtain a modified target line, and storing the modified target line to an output directory; the target resource reference identifier is used for indicating to reference the marked resource in the target resource file; and finally copying all files in the output directory to the item to be adapted. The SDK interface adaptation method can be used for rapidly adapting the existing SDK project without secondary development, does not influence the interactive interface of an SDK user, and is good in universality and high in efficiency.
The embodiment of the application also provides an SDK interface adaptation device. Referring to fig. 2, fig. 2 is a schematic structural diagram of an SDK interface adaptation device provided in an embodiment of the present application, and as shown in fig. 2, the SDK interface adaptation device includes:
a first copy module 201, configured to copy a file in a first directory of an item to be adapted to a second directory, and create an output directory based on the file in the second directory;
a target line searching module 202, configured to search a target line in a file in the second directory; the target row is a row for defining display parameters of an SDK interface of a software tool development kit;
the parameter processing module 203 is configured to search the display parameters from the target line, and perform scaling processing on the display parameters according to an adaptive ratio to obtain display adjustment parameters;
a first saving module 204, configured to convert the display adjustment parameter into a target resource, and save the target resource into a target resource file in the output directory;
a second saving module 205, configured to replace the display parameter in the target line with a target resource reference identifier, obtain a modified target line, and save the modified target line to the output directory; the target resource reference identifier is used for indicating to reference the target resource in the target resource file;
a second copying module 206, configured to copy all files in the output directory into the item to be adapted.
Optionally, the parameter processing module is specifically configured to:
respectively carrying out scaling processing on the display parameters according to a plurality of different adaptation proportions to obtain display adjustment parameters corresponding to the adaptation proportions;
the first saving module is specifically configured to:
and respectively converting the display adjustment parameters corresponding to the adaptation proportions into target resources corresponding to the adaptation proportions, and storing the target resources corresponding to the adaptation proportions into the target resource file under the output directory.
Optionally, the first saving module is specifically configured to:
respectively creating corresponding target subdirectories aiming at the plurality of adaptation proportions;
and aiming at the target resource corresponding to each adaptation proportion, storing the target resource corresponding to the adaptation proportion into the target resource file under the output directory and the target subdirectory corresponding to the adaptation proportion.
Optionally, the target line searching module is specifically configured to:
and searching the target row in the file under the second target through a regular expression.
Optionally, the apparatus further comprises:
and the file backup module is used for backing up all files in the second directory to a third directory.
In the SDK interface adaptation device provided in the embodiment of the present application, a file in a first directory of an item to be adapted is copied to a second directory, and an output directory is created based on the file in the second directory; then, searching a target line in the file under the second directory, wherein the target line is a line used for defining the display parameters of the SDK interface; further, searching display parameters from the target line, and carrying out zooming processing on the display parameters according to the adaptive proportion to obtain display adjustment parameters; converting the display adjustment parameters into target resources, and storing the target resources into target resource files under an output directory; then, replacing the display parameters in the target line with the target resource reference identifier to obtain a modified target line, and storing the modified target line to an output directory; the target resource reference identifier is used for indicating to reference the marked resource in the target resource file; and finally copying all files in the output directory to the item to be adapted. The SDK interface adaptation device can be used for rapidly adapting the existing SDK project without secondary development, does not influence the interactive interface of an SDK user, and is good in universality and high in efficiency.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing computer programs.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A software tool development kit interface adaptation method, the method comprising:
copying files under a first directory of an item to be adapted to a second directory, and creating an output directory based on the files in the second directory;
searching a target line in the file under the second directory; the target row is a row for defining display parameters of an SDK interface of a software tool development kit;
searching the display parameters from the target line, and zooming the display parameters according to the adaptive proportion to obtain display adjustment parameters;
converting the display adjustment parameters into target resources, and storing the target resources into target resource files under the output directory;
replacing the display parameters in the target line with target resource reference identifiers to obtain a modified target line, and storing the modified target line to the output directory; the target resource reference identifier is used for indicating to reference the target resource in the target resource file;
and copying all files in the output catalog to the item to be adapted.
2. The method according to claim 1, wherein the scaling the display parameter according to the adaptive scale to obtain a display adjustment parameter comprises:
respectively carrying out scaling processing on the display parameters according to a plurality of different adaptation proportions to obtain display adjustment parameters corresponding to the adaptation proportions;
converting the display adjustment parameter into a target resource, and storing the target resource into a target resource file in the output directory, including:
and respectively converting the display adjustment parameters corresponding to the adaptation proportions into target resources corresponding to the adaptation proportions, and storing the target resources corresponding to the adaptation proportions into the target resource file under the output directory.
3. The method according to claim 2, wherein the saving the target resource corresponding to each of the plurality of adaptation ratios to the target resource file under the output directory comprises:
respectively creating corresponding target subdirectories aiming at the plurality of adaptation proportions;
and aiming at the target resource corresponding to each adaptation proportion, storing the target resource corresponding to the adaptation proportion into the target resource file under the output directory and the target subdirectory corresponding to the adaptation proportion.
4. The method of claim 1, wherein said finding a target row in a file under said second directory comprises:
and searching the target row in the file under the second target through a regular expression.
5. The method of claim 1, wherein after copying files under a first directory of items to be adapted to a second directory, the method further comprises:
and backing up all files in the second directory to a third directory.
6. A software tool development kit interface adaptation apparatus, the apparatus comprising:
the first copying module is used for copying files under a first directory of an item to be adapted to a second directory and creating an output directory based on the files in the second directory;
the target line searching module is used for searching a target line in the file under the second directory; the target row is a row for defining display parameters of an SDK interface of a software tool development kit;
the parameter processing module is used for searching the display parameters from the target line and carrying out scaling processing on the display parameters according to the adaptive proportion to obtain display adjustment parameters;
the first storage module is used for converting the display adjustment parameters into target resources and storing the target resources into a target resource file under the output directory;
the second storage module is used for replacing the display parameters in the target line with target resource reference identifiers to obtain a modified target line and storing the modified target line to the output directory; the target resource reference identifier is used for indicating to reference the target resource in the target resource file;
and the second copying module is used for copying all files in the output directory to the item to be adapted.
7. The apparatus of claim 6, wherein the parameter processing module is specifically configured to:
respectively carrying out scaling processing on the display parameters according to a plurality of different adaptation proportions to obtain display adjustment parameters corresponding to the adaptation proportions;
the first saving module is specifically configured to:
and respectively converting the display adjustment parameters corresponding to the adaptation proportions into target resources corresponding to the adaptation proportions, and storing the target resources corresponding to the adaptation proportions into the target resource file under the output directory.
8. The apparatus of claim 7, wherein the first saving module is specifically configured to:
respectively creating corresponding target subdirectories aiming at the plurality of adaptation proportions;
and aiming at the target resource corresponding to each adaptation proportion, storing the target resource corresponding to the adaptation proportion into the target resource file under the output directory and the target subdirectory corresponding to the adaptation proportion.
9. The apparatus of claim 6, wherein the target row lookup module is specifically configured to:
and searching the target row in the file under the second target through a regular expression.
10. The apparatus of claim 6, further comprising:
and the file backup module is used for backing up all files in the second directory to a third directory.
CN202110826398.4A 2021-07-21 2021-07-21 Software development kit interface adaptation method and device Pending CN113448581A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110826398.4A CN113448581A (en) 2021-07-21 2021-07-21 Software development kit interface adaptation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110826398.4A CN113448581A (en) 2021-07-21 2021-07-21 Software development kit interface adaptation method and device

Publications (1)

Publication Number Publication Date
CN113448581A true CN113448581A (en) 2021-09-28

Family

ID=77816995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110826398.4A Pending CN113448581A (en) 2021-07-21 2021-07-21 Software development kit interface adaptation method and device

Country Status (1)

Country Link
CN (1) CN113448581A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120272214A1 (en) * 2011-04-21 2012-10-25 Oracle International Corporation Interface method resolution for virtual extension methods
CN105808264A (en) * 2016-03-11 2016-07-27 深圳博十强志科技有限公司 Personalization method for online payment SDK (Software Development Kit) ordering interface
CN109634695A (en) * 2017-10-09 2019-04-16 武汉斗鱼网络科技有限公司 A kind of method and device of the interface SDK automatic adaptation software horizontal/vertical screen
CN110865864A (en) * 2019-11-18 2020-03-06 北京小米移动软件有限公司 Interface display method, device and equipment for fast application and storage medium
CN112596842A (en) * 2020-12-26 2021-04-02 中国农业银行股份有限公司 Screen adaptation method for android system SDK development and related device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120272214A1 (en) * 2011-04-21 2012-10-25 Oracle International Corporation Interface method resolution for virtual extension methods
CN105808264A (en) * 2016-03-11 2016-07-27 深圳博十强志科技有限公司 Personalization method for online payment SDK (Software Development Kit) ordering interface
CN109634695A (en) * 2017-10-09 2019-04-16 武汉斗鱼网络科技有限公司 A kind of method and device of the interface SDK automatic adaptation software horizontal/vertical screen
CN110865864A (en) * 2019-11-18 2020-03-06 北京小米移动软件有限公司 Interface display method, device and equipment for fast application and storage medium
CN112596842A (en) * 2020-12-26 2021-04-02 中国农业银行股份有限公司 Screen adaptation method for android system SDK development and related device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HEPANN44: ""利用不同values文件下的dimens.xml适配安卓屏幕"", 《HTTPS://BLOG.CSDN.NET/HEPANN44/ARTICLE/DETAILS/80456233》 *
THEOBALDWONG: ""android屏幕适配,生成不同分辨率的dimen.xml文件"", 《HTTPS://BLOG.CSDN.NET/THEOBALDWONG/ARTICLE/DETAILS/105490673》 *

Similar Documents

Publication Publication Date Title
CN108536761B (en) Report data query method and server
US8359297B2 (en) Multiple source data management using a conflict rule
CN109669925B (en) Management method and device of unstructured data
CN104112004A (en) Method for intelligently copying data on user interface
US20130086133A1 (en) Method and apparatus for file revision tracking
CN112597123B (en) Data multi-version dynamic switching method and device
US8392892B2 (en) Method and apparatus for analyzing application
CN113448581A (en) Software development kit interface adaptation method and device
CN116089527A (en) Data verification method, storage medium and device
CN111435300A (en) Web system development method, device, equipment and storage medium
CN106372121B (en) Server and data processing method
CN107688581B (en) Data model processing method and device
CN115129733A (en) Method, device and equipment for recording and inquiring bank data change history
CN114942863A (en) Cascade snapshot processing method, device and equipment and storage medium
CN109977104B (en) Data management method and device
CN113127359A (en) Method and device for obtaining test data
CN112800091A (en) Flow-batch integrated calculation control system and method
US9092472B1 (en) Data merge based on logical segregation
CN116301758B (en) Rule editing method, device, equipment and medium based on event time points
CN116719540B (en) Method, device and equipment for updating review document and computer readable storage medium
CN113485799B (en) Method, device, equipment and storage medium for executing same timing task by multiple libraries
CN110019162B (en) Method and device for realizing attribute normalization
CN116243968A (en) User information correction method, device, electronic equipment and storage medium
CN117421080A (en) Interface design file updating method and device, electronic equipment and storage medium
CN113468173A (en) Data storage method, device, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210928

RJ01 Rejection of invention patent application after publication