CN110442419A - The quick interface arrangement method and device of Android application - Google Patents

The quick interface arrangement method and device of Android application Download PDF

Info

Publication number
CN110442419A
CN110442419A CN201910752755.XA CN201910752755A CN110442419A CN 110442419 A CN110442419 A CN 110442419A CN 201910752755 A CN201910752755 A CN 201910752755A CN 110442419 A CN110442419 A CN 110442419A
Authority
CN
China
Prior art keywords
view control
attribute
control property
layout
property
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.)
Granted
Application number
CN201910752755.XA
Other languages
Chinese (zh)
Other versions
CN110442419B (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910752755.XA priority Critical patent/CN110442419B/en
Publication of CN110442419A publication Critical patent/CN110442419A/en
Application granted granted Critical
Publication of CN110442419B publication Critical patent/CN110442419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

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)
  • Stored Programmes (AREA)

Abstract

The quick interface arrangement method and device of a kind of Android application are provided.The quick interface arrangement method of the Android application includes: to parse to the xml topology file of Android application, the view control property that the view control and view control for obtaining xml topology file use;The Java code of creation view control is generated, and view control property is converted into Java API Calls;Xml topology file is converted into Java code topology file according to the view control property after view control and conversion;Load layout method is determined according to the Java code topology file of conversion;Interface layout is carried out according to determining load layout method.

Description

The quick interface arrangement method and device of Android application
Technical field
This disclosure relates to software technology field.More specifically, this disclosure relates to a kind of interface layout side of Android application Method and device.
Background technique
Usually there are three types of modes for the median surface Android layout: pure xml layout, pure java code layout, xml+java cloth Office.Realize that layout there are many benefits using xml, such as: it is simple, intuitive, easy to maintain etc..But it also have one it is bigger Disadvantage: compared to directly with for java code layout, performance is slightly weaker, since it is desired that parsing xml (is that aapt, aapt2 are compiled Format after translating), reflection creation view etc..
Summary of the invention
The Summary is provided so that with brief form introduction design, these designs will be in specific implementation below Mode part is described in detail.The Summary is not intended to identify the key feature of claimed technical solution or must Feature is wanted, is intended to be used to limit the range of the technical solution of required protection.
The exemplary embodiment of the disclosure is to provide the quick interface arrangement method and device of a kind of Android application, with While ensureing the security reliability of the interface layout of Android application, runnability is improved.
According to an exemplary embodiment of the present disclosure, a kind of quick interface arrangement method of Android application is provided, comprising: from Xml topology file is searched in the output directory of MergeResourcestask;The xml topology file of Android application is carried out Parsing, the view control property that the view control and view control for obtaining xml topology file use;Generate creation view control Java code, and view control property is converted into Java API Calls;According to the view control category after view control and conversion Xml topology file is converted to Java code topology file by property;Load layout is determined according to the Java code topology file of conversion Method;Interface layout is carried out according to determining load layout method.
According to an exemplary embodiment of the present disclosure, a kind of interface layout device of Android application is provided, comprising: file Resolution unit is configured as parsing the xml topology file that Android is applied, obtains the view control of xml topology file The view control property used with view control;Attribute converting unit is configurable to generate the Java code of creation view control, And view control property is converted into Java API Calls;File conversion unit is configured as according to after view control and conversion View control property xml topology file is converted into Java code topology file;Loading method determination unit, is configured as root Load layout method is determined according to the Java code topology file of conversion;With the first layout units, it is configured as being added according to determining It carries layout method and carries out interface layout.
According to an exemplary embodiment of the present disclosure, a kind of computer readable storage medium is provided, computer is stored thereon with Program realizes the interface of Android application according to an embodiment of the present disclosure when the computer program is executed by processor Layout method.
According to an exemplary embodiment of the present disclosure, a kind of electronic equipment is provided, comprising: processor;Memory is stored with meter Calculation machine program realizes Android application according to an embodiment of the present disclosure when the computer program is executed by processor Quick interface arrangement method.
Part in following description is illustrated into the other aspect and/or advantage of disclosure general plotting, there are also one Point will be apparent by description, or can implementation Jing Guo disclosure general plotting and learn.
Detailed description of the invention
In conjunction with attached drawing and refer to following specific embodiments, the above and other feature, advantage of each embodiment of the disclosure and Aspect will be apparent.In attached drawing, the same or similar appended drawing reference indicates the same or similar element.It should manage Solution attached drawing is schematically that original part and element are not necessarily drawn to scale.
Fig. 1 shows the flow chart of the quick interface arrangement method of Android application according to the exemplary embodiment of the disclosure;
Fig. 2 shows the block diagrams of the interface layout device of Android according to the exemplary embodiment of the disclosure application;With
Fig. 3 shows the schematic diagram of electronic equipment according to the exemplary embodiment of the disclosure.
Specific embodiment
Embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the certain of the disclosure in attached drawing Embodiment, it should be understood that, the disclosure can be realized by various forms, and should not be construed as being limited to this In the embodiment that illustrates, providing these embodiments on the contrary is in order to more thorough and be fully understood by the disclosure.It should be understood that It is that being given for example only property of the accompanying drawings and embodiments effect of the disclosure is not intended to limit the protection scope of the disclosure.
It should be appreciated that each step recorded in disclosed method embodiment can execute in a different order, And/or parallel execution.In addition, method implementation may include additional step and/or omit the step of execution is shown.This public affairs The range opened is not limited in this respect.
Terms used herein " comprising " and its deformation are that opening includes, i.e., " including but not limited to ".Term "based" It is " being based at least partially on ".Term " one embodiment " expression " at least one embodiment ";Term " another embodiment " indicates " at least one other embodiment ";Term " some embodiments " expression " at least some embodiments ".The correlation of other terms is fixed Justice provides in will be described below.
It is noted that the concepts such as " first " that refers in the disclosure, " second " are only used for different devices, module or list Member distinguishes, and is not intended to limit the sequence or relation of interdependence of function performed by these devices, module or unit.
It is noted that referred in the disclosure "one", the modification of " multiple " be schematically and not restrictive this field It will be appreciated by the skilled person that being otherwise construed as " one or more " unless clearly indicate otherwise in context.
The being merely to illustrate property of title of the message or information that are interacted between multiple devices in disclosure embodiment Purpose, and be not used to limit the range of these message or information.
Fig. 1 shows the flow chart of the quick interface arrangement method of Android application according to the exemplary embodiment of the disclosure.
Referring to Fig.1, in step S101, the xml topology file of Android application is parsed, xml topology file is obtained View control and the view control property that uses of view control.
In an exemplary embodiment of the disclosure, can after executing MergeResourcestask, from Xml topology file (layout xml) is searched in the output directory of MergeResourcestask, then, to what is searched The xml topology file of Android application is parsed, and is obtained view control used in xml topology file, is then obtained each View control property used in view control.
It may include include label and merge label in xml topology file.
The effect of include label is using another layout B as a part of current arrangements A.In the mistake of conversion topology A Cheng Zhong is turning if the layout B being cited is Java layout (assuming that corresponding loading method is genB) by successful conversion When changing the include B of layout A, B is just obtained by genB () and is laid out corresponding control;If the layout B being cited does not have Having by successful conversion is Java layout, then just passing through in the include B of conversion topology A LayoutInflater.inflate is laid out corresponding control to load B.
In an exemplary embodiment of the disclosure, when the xml topology file applied to Android parses, work as xml When including include label in topology file, view control corresponding with include label is produced, and parse include The attribute of label is as view control property.
Merge label can only exist as the root label of xml, it is not a true control.In parsing merge label When can parse the child control of merge label, and generate an array, array element is an object, include 2 values:
1, child control example (view);
2, the layout attributes (LayoutParams) of the child control (only support layout _ width (layout_width) and cloth Office _ height (layout_height)).
In an exemplary embodiment of the disclosure, when the xml topology file applied to Android parses, work as xml When including merge label in topology file, the sub- view control of merge label can be parsed, and parse the category of sub- view control Property, obtain sub- view control arrays.
In step S102, the Java code of creation view control is generated, and view control property is converted into Java API It calls.
After the view control property for obtaining xml topology file in step s101, in step s 102 by view control Attribute converts (that is, translation) as Java Application Programming Interface (Application Programming Interface, abbreviation API it) calls.
In an exemplary embodiment of the disclosure, it before view control property is converted to Java API Calls, can incite somebody to action The view control property of xml topology file is compared with the support attribute set pre-established, according to comparison result by view Control property divide into view control support support attribute and view control do not support do not support attribute.When xml is laid out text The view control property of part is entirely that when supporting attribute, the view control property of xml topology file is all converted to Java API Calls.
May exist in xml document due to more below and not support attribute: for example, some xml at the beginning Topology file is using LinearLayout and defines an orientation attribute, later because of reasons such as demand change, It needs LinearLayout to change into RelativeLayout, this when is it is easy to forget that orientation attribute is deleted It removes, then the orientation attribute that left behind is exactly a category that do not support for RelativeLayout control Property.Therefore, in the alternative embodiment of the disclosure, when the view control property of xml topology file is at least partly not support to belong to Property when, keep xml topology file view control property it is all constant, later load xml topology file carry out interface layout.It changes Sentence is talked about, and when for finding to have the view control for not supporting conversion or the attribute that do not support, being skipped and being turned to the xml document It changes, is still loaded using the LayoutInflater of Android when runnable interface is laid out.In addition, for (in addition to not including Except merge label) LayoutParams of root control, only supports view control property layout_width and layout_ The attribute of height is converted, i.e., is determined as layout_width and layout_height supporting attribute, by layout_width It is determined as not supporting attribute with the attribute except layout_height, if there are also other categories by the LayoutParams of root control Property then this do not convert xml document.
Since realization of certain view control properties on different api classes not (level) is different, and some belong to Property only just supported on high api level, can not generate different Java code tune in this case for different api classes With.It therefore, in an exemplary embodiment of the disclosure, can be first when view control property is converted to Java API Calls It is other to obtain api class corresponding with the android system version that Android is applied, is then based on api class not for view control property In the attribute of support attribute be converted to Java API Calls.For example, working as API by taking the tint attribute of ImageView as an example When rank is not less than 21, setImageTintList method is used;And when api class is not lower than 21, it uses SetColorFilter method.
In an exemplary embodiment of the disclosure, when the view control property of xml topology file is at least partly not support When attribute, for all (that is, have do not support attribute) view controls for not supporting attribute conversion (that is, attributed translation) and View control does not support attribute, compiling when produce it is corresponding do not support to report, for optimization reference.Specifically, raw It is to tell developer which attribute is not supported at the purpose for not supporting report, appropriate adjustment when writing xml layout later, with Attribute is facilitated to convert.
Due to the interface layout for being loaded from xml, can be called after the completion of each control load OnFinishInflate method, wherein onFinishInflate method is the method adjusted back after the completion of topology file is loaded. Therefore, in an exemplary embodiment of the disclosure, after view control property being converted to Java API Calls, and will be sub After the completion of view addition, it is consistent with xml load behavior to guarantee to add one onFinishInflate method call of load.If This processing is completed in load to neglect, then it is unstable to may result in collapse.Relatively common situation is, partial code can be (or other operations) are initialized to child control in onFinishInflate method, if do not filled If onFinishInflate method call, it will lead to these logics and be not carried out and cause mistake.
Since onFinishInflate method is shielded (protected) visibility, in the code of generation not It can call directly, and if being called by reflection, it is affected to performance, for example, taking a long time, therefore, in showing for the disclosure In example property embodiment, when loading onFinishInflate method call, it can first determine that whether view control rewrites (override) onFinishInflate method when determining that view control has rewritten onFinishInflate method can Bytecode is modified so that the access level of the onFinishInflate method of rewriting to be promoted to publicly-owned (public);Work as determination When view control does not rewrite onFinishInflate method, onFinishInflate method is produced, and by generation The access level of onFinishInflate method is set as public.In this way, can not have in the layout code of generation anti- It penetrates and calls onFinishInflate method, but call directly onFinishInflate method.
It in an exemplary embodiment of the disclosure, can be first when xml topology file is converted to Java code topology file Then the attribute value that view control property is first parsed in code compilation determines the need for generating view control according to attribute value When determining that needs generate method call corresponding with view control, view control property is turned later for corresponding method call It is changed to Java API Calls.
In an exemplary embodiment of the disclosure, when parsing the attribute value of view control property, when attribute value is literal It, can be directly using literal as attribute value when amount;When attribute value is the reference to resource, can be cited resource pair by analysis The resource value answered determines attribute value.In an exemplary embodiment of the disclosure, by analyzing the corresponding money of resource that is cited Source value, can be using resource value as attribute value when resource value only has a definition come when determining attribute value;Otherwise when resource value has When more parts of definition, attribute value can be obtained by operation android.content.res.Resources.Here, literal is For expressing the representation of a fixed value in source code, literal is fixed known to immutable and value.Nearly all computer is compiled Cheng Yuyan has the literal expression to basic value, such as: integer, floating number and character string.For example, " 1 ", " 2 " etc. are Integer literal, " abc " are character string literals, and " true (true) ", " false (false) " are boolean (bool) value literals.This In, android.content.res.Resources is the resource folder in Android application.
In an exemplary embodiment of the disclosure, by analysis be cited the corresponding resource value of resource determine view control When the attribute value of part attribute, when resource value only has a definition, using resource value as the attribute value of view control property;Work as money When source value there are more parts of definition, the category of view control property is obtained by operation android.content.res.Resources Property value.Specifically, the meaning of " portion " and " more parts " here are as follows: Android supports to be that the same resource name is matched in different Different value of giving a definition is set, for example, the official documents and correspondence butten_text shown on a button: we can only define a value " point Hit ", because only that a value (that is, a definition), when compiling, is assured that;It can also be more according to system language configuration definition A value, Chinese " click ", English " click " etc. (that is, more parts of definition), obtains resource value when just needing to run at this time.Here, may be used To obtain resource value at runtime by the method in android.content.res.Resources, therefore generate these sides The calling of method.For example, generating Resources.getColor () method call to obtain color value, generate Resources.getString () method call obtains text etc..
In an exemplary embodiment of the disclosure, according to the attribute value of view control property determine the need for generate with When the corresponding method call of view control, can first determine that whether the attribute value of view control property is constant, when view control When the attribute value of attribute is constant, confirm view control property attribute value whether be view control property attribute value default Value, then when the attribute value of view control property is not the default value of the attribute value of view control property, determination needs to generate Method call corresponding with view control;When the attribute value of view control property is the default value of the attribute value of view control property When, it determines and does not need to generate method call corresponding with view control.For example, the attribute of the clickable attribute due to View The default value of value is false, therefore, if there is the definition of android:clickable=" false " in xml, illustrates that view is controlled The attribute value of part attribute is the default value of the attribute value of view control property, then need not just generate view.setClickable (false) method call.
In step S103, xml topology file is converted to by Java according to the view control property after view control and conversion Code layout file.
After view control property is converted to Java API Calls in step s 102, in step s 103 according to view Xml topology file is converted to Java code topology file by the view control property after control and conversion.
In step S104, load layout method is determined according to the Java code topology file of conversion.
In an exemplary embodiment of the disclosure, view control property is converted into Java API Calls in step s 102 Later, load layout method is determined according to the view control property after conversion in step S104.Specifically, in compiling, All bytecodes can be scanned, will used in original xml load layout method LayoutInflater.Inflate, View.Inflate replaces with LayoutInflateHelper.inflate method call, will Activity.setContentView method call replaces with ActivityHelper.setContentView method call.In In LayoutInflateHelper.inflate method call and ActivityHelper.setContentView method call, If corresponding topology file has been translated into Java code layout, the Java API of generation is called to load layout, it is no Then it is loaded with xml layout.
In step S105, interface layout is carried out according to determining load layout method.
In an exemplary embodiment of the disclosure, view control property is converted into Java API Calls in step s 102 Later, the method that developer changes load layout manually is not needed, can automatically be realized, judging automatically is java from generation Layout is loaded in code, or is loaded by the inflate method of Android from xml resource, does not need developer manually more Change calling.After load layout method has been determined in step S104, in step s105 according to determining load layout method Interface layout.
Have been combined above Fig. 1 to the quick interface arrangement method applied according to the Android of disclosure exemplary embodiment into Description is gone.Hereinafter, the interface layout applied according to the Android of disclosure exemplary embodiment will be filled referring to Fig. 2 It sets and its unit is described.
Fig. 2 shows the block diagrams of the interface layout device of Android according to the exemplary embodiment of the disclosure application.
Referring to Fig. 2, the interface layout device of Android application includes document analysis unit 21, attribute converting unit 22, text Part converting unit 23, loading method determination unit 24 and the first layout units 25.
Document analysis unit 21 is configured as parsing the xml topology file that Android is applied, and obtains xml layout The view control property that the view control and view control of file use.
In an exemplary embodiment of the disclosure, document analysis unit 21, which can be configured to work as in xml topology file, includes When include label, view control corresponding with include label is generated, and parse the attribute conduct of include label View control property.
In an exemplary embodiment of the disclosure, document analysis unit 21, which can be configured to work as in xml topology file, includes When merge label, the sub- view control of merge label is parsed, and parses the attribute of sub- view control, obtains sub- view control Array.
Attribute converting unit 22 is configurable to generate the Java code of creation view control, and view control property is converted For Java API Calls.
In an exemplary embodiment of the disclosure, it is single to may also include attribute differentiation for the interface layout device of Android application First (not shown) is configured as comparing the view control property of xml topology file with the support attribute set pre-established Compared with, according to comparison result by view control property divide into view control support support attribute and view control do not support not Support attribute.In this case, attribute converting unit 23 can be configured to when the view control property of xml topology file is whole It is that when supporting attribute, the view control property of xml topology file is all converted into Java API Calls.
In an exemplary embodiment of the disclosure, it is single to may also include attribute holding for the interface layout device of Android application First (not shown) is configured as when the view control property of xml topology file is at least partly not support attribute, keeps xml The view control property of topology file is all constant and the second layout units (not shown), is configured as load xml topology file Carry out interface layout.
It in an exemplary embodiment of the disclosure, can be only in the LayoutParams attribute set of support for root control Including layout_width and layout_height, in this case, attribute converting unit 23 can be configured to according to than Relatively result by view control property divide into view control support support attribute and view control do not support do not support attribute When, when view control is root control, layout_width and layout_height are determined as to support attribute, by layout_ LayoutParams attribute except width and layout_height is determined as not supporting attribute.
In an exemplary embodiment of the disclosure, the interface layout device of Android application may also include report generation list First (not shown) is configured as when the view control property of xml topology file is at least partly not support attribute, for not propping up It holds attribute and using the view control for not supporting attribute, generation is corresponding not to be supported to report.
In an exemplary embodiment of the disclosure, attribute converting unit 22 is also configured to obtain and apply with Android The corresponding api class of android system version it is other, based on api class by the attribute of the support attribute in view control property turn It changes and is converted to Java API Calls.
In an exemplary embodiment of the disclosure, it is single to may also include supplement load for the interface layout device of Android application First (not shown) is configured as load onFinishInflate method call, wherein the onFinishInflate method is The method that topology file is adjusted back after the completion of being loaded.
In an exemplary embodiment of the disclosure, supplement loading unit can be configured to determine whether view control rewrites OnFinishInflate method, when determining that view control has rewritten onFinishInflate method, by rewriting The access level of onFinishInflate method is promoted to public;When determining that view control do not rewrite When onFinishInflate method, onFinishInflate method is generated, and by the onFinishInflate method of generation Access level be set as public.
In an exemplary embodiment of the disclosure, attribute converting unit 22 can be configured to parse view in code compilation The attribute value of control property determines the need for generating method corresponding with view control according to the attribute value of view control property It calls, and when determining that needs generate method call corresponding with view control, view control property is converted into Java API Calls.
In an exemplary embodiment of the disclosure, attribute converting unit 22 can be configured in parsing view control property When attribute value, when the attribute value of view control property is literal, directly using literal as the attribute of view control property Value;When the attribute value of view control property is the reference to resource, the corresponding resource value of resource is cited come really by analysis Determine the attribute value of view control property.
In an exemplary embodiment of the disclosure, attribute converting unit 222 can be configured to by analyzing the money that is cited When attribute value of the corresponding resource value in source to determine view control property, when resource value only has a definition, resource value is made For the attribute value of view control property;When resource value there are more parts of definition, pass through operation Android.content.res.Resources obtains the attribute value of view control property, wherein Android.content.res.Resources is the resource folder in Android application.
In an exemplary embodiment of the disclosure, attribute converting unit 22 can be configured to according to view control property When attribute value determines the need for generating view control corresponding method call, when the attribute value of view control property is constant When, confirm view control property attribute value whether be view control property attribute value default value, when view control property Attribute value when not being the default value of attribute value of view control property, determine and need to generate method tune corresponding with view control With;When the attribute value of view control property is the default value of the attribute value of view control property, determine do not need generate with The corresponding method call of view control.
File conversion unit 23 is configured as being laid out xml according to the view control property after conversion view control and conversion File is converted to Java code topology file.
Loading method determination unit 24 is configured as determining load layout method according to the Java code topology file of conversion.
First layout units 25 are configured as carrying out interface layout according to determining load layout method.
Have been combined above Fig. 2 to the interface layout device applied according to the Android of disclosure exemplary embodiment into Description is gone.Next, electronic equipment according to the exemplary embodiment of the disclosure is described in conjunction with Fig. 3.
Below with reference to Fig. 3, it illustrates the electronic equipment (end of example as shown in figure 1 for being suitable for being used to realize the embodiment of the present disclosure End equipment or server) 300 structural schematic diagram.Terminal device in the embodiment of the present disclosure can include but is not limited to such as move Mobile phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP are (portable more Media player), the mobile terminal and such as number TV, desktop computer of car-mounted terminal (such as vehicle mounted guidance terminal) etc. Etc. fixed terminal.Electronic equipment shown in Fig. 3 is only an example, should not function and use to the embodiment of the present disclosure Range band carrys out any restrictions.
As shown in figure 3, electronic equipment 300 may include processing unit (such as central processing unit, graphics processor etc.) 301, random access can be loaded into according to the program being stored in read-only memory (ROM) 302 or from storage device 306 Program in memory (RAM) 303 and execute various movements appropriate and processing.In RAM 303, it is also stored with electronic equipment Various programs and data needed for 300 operations.Processing unit 301, ROM 302 and RAM 303 pass through the phase each other of bus 304 Even.Input/output (I/O) interface 305 is also connected to bus 304.
In general, following device can connect to I/O interface 305: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 306 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 307 of dynamic device etc.;Storage device 306 including such as tape, hard disk etc.;And communication device 309.Communication device 309, which can permit electronic equipment 300, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 3 shows tool There is the electronic equipment 300 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising being carried on non-transient computer can The computer program on medium is read, which includes the program code for method shown in execution flow chart.At this In the embodiment of sample, which can be downloaded and installed from network by communication device 309, or be filled from storage It sets 306 to be mounted, or is mounted from ROM 302.When the computer program is executed by processing unit 301, the disclosure is executed The above-mentioned function of being limited in the method for embodiment.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
In some embodiments, client, server can use such as HTTP (HyperText Transfer Protocol, hypertext transfer protocol) etc the network protocols of any currently known or following research and development communicated, and can To be interconnected with the digital data communications (for example, communication network) of arbitrary form or medium.The example of communication network includes local area network (" LAN "), wide area network (" WAN "), Internet (for example, internet) and ad-hoc network are (for example, the end-to-end net of ad hoc Network) and any currently known or following research and development network.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: being parsed to the xml topology file of Android application, obtain xml layout text The view control property that the view control and view control of part use;The Java code of creation view control is generated, and by view Control property is converted to Java API Calls;Xml topology file is turned according to the view control property after view control and conversion It is changed to Java code topology file;Load layout method is determined according to the Java code topology file of conversion;Added according to determining It carries layout method and carries out interface layout.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include but is not limited to object oriented program language-such as Java, Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions.
Function described herein can be executed at least partly by one or more hardware logic components.Example Such as, without limitation, the hardware logic component for the exemplary type that can be used include: field programmable gate array (FPGA), specially With integrated circuit (ASIC), Application Specific Standard Product (ASSP), system on chip (SOC), complex programmable logic equipment (CPLD) etc. Deng.
In the context of the disclosure, machine readable media can be tangible medium, may include or is stored for The program that instruction execution system, device or equipment are used or is used in combination with instruction execution system, device or equipment.Machine can Reading medium can be machine-readable signal medium or machine-readable storage medium.Machine readable media can include but is not limited to electricity Son, magnetic, optical, electromagnetism, infrared or semiconductor system, device or equipment or above content any conjunction Suitable combination.The more specific example of machine readable storage medium will include the electrical connection of line based on one or more, portable meter Calculation machine disk, hard disk, random access memory (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM Or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage facilities or Any appropriate combination of above content.
The interface layout applied according to the Android of disclosure exemplary embodiment is described with reference to Fig. 1 to Fig. 3 above Method and device.It should be understood, however, that: the interface layout device and its unit of Android application shown in Fig. 2 can divide It is not configured as the software of execution specific function, any combination of hardware, firmware or above-mentioned item, electronic equipment shown in Fig. 3 It is not limited to include component illustrated above, but can increase as needed or delete some components, and components above can also It is combined.
According to one or more other embodiments of the present disclosure, [example 1] provides a kind of interface layout side of Android application Method, this method comprises: to Android application xml topology file parse, obtain xml topology file view control and The view control property that view control uses;The Java code of creation view control is generated, and view control property is converted to Java API Calls;Xml topology file is converted into Java code cloth according to the view control property after view control and conversion Office file;Load layout method is determined according to the Java code topology file of conversion;It is carried out according to determining load layout method Interface layout.
According to one or more other embodiments of the present disclosure, [example 2] provides the interface cloth of the Android application of example 1 Office's method, wherein before view control property is converted to Java API Calls, further includes: control the view of xml topology file Part attribute is compared with the support attribute set pre-established, and view control property is divided into view control according to comparison result What the support attribute and view control that part is supported were not supported does not support attribute, wherein view control property is converted to Java The step of API Calls includes: when the view control property of xml topology file is entirely to support attribute, by xml topology file View control property is all converted to Java API Calls.
According to one or more other embodiments of the present disclosure, [example 3] provides the interface cloth of the Android application of example 2 Office's method, further includes: when the view control property of xml topology file is at least partly not support attribute, keep xml layout text The view control property of part is all constant;It loads xml topology file and carries out interface layout.
According to one or more other embodiments of the present disclosure, [example 4] provides the interface cloth of the Android application of example 2 Office's method, wherein only include for root control, in the LayoutParams attribute set of support layout_width and View control property is divided into the support of view control support according to comparison result in this case by layout_height What attribute and view control were not supported includes: when view control is root control, by layout_ the step of not supporting attribute Width and layout_height is determined as supporting attribute, except layout_width and layout_height LayoutParams attribute is determined as not supporting attribute.
According to one or more other embodiments of the present disclosure, [example 5] provides the interface cloth of the Android application of example 2 Office method, according to comparison result by view control property divide into view control support support attribute and view control do not prop up Hold the step of not supporting attribute after, further includes: when the view control property of xml topology file is at least partly not support to belong to Property when, for attribute is not supported and using the view control of attribute is not supported, generate and corresponding do not support to report.
According to one or more other embodiments of the present disclosure, [example 6] provides the interface cloth of the Android application of example 2 Office's method, wherein the step of view control property is converted to Java API Calls includes: that acquisition and Android are applied The corresponding api class of android system version is other;The attribute of the support attribute in view control property is not converted based on api class Be converted to Java API Calls.
According to one or more other embodiments of the present disclosure, [example 7] provides the interface cloth of the Android application of example 6 Office's method, after view control property to be converted to Java API Calls, further includes: load onFinishInflate method It calls, wherein the onFinishInflate method is the method adjusted back after the completion of topology file is loaded.
According to one or more other embodiments of the present disclosure, [example 8] provides the interface cloth of the Android application of example 7 Office's method, wherein the step of loading onFinishInflate method call comprises determining that whether view control rewrites OnFinishInflate method;When determining that view control has rewritten onFinishInflate method, by rewriting The access level of onFinishInflate method is promoted to public;When determining that view control do not rewrite When onFinishInflate method, onFinishInflate method is generated, and by the onFinishInflate method of generation Access level be set as public.
According to one or more other embodiments of the present disclosure, [example 9] provides the interface cloth of the Android application of example 1 Office's method, wherein the step of view control property is converted to Java API Calls includes: that view control is parsed in code compilation The attribute value of part attribute;It is determined the need for generating method tune corresponding with view control according to the attribute value of view control property With;When determining that needs generate method call corresponding with view control, view control property is converted into Java API Calls.
According to one or more other embodiments of the present disclosure, [example 10] provides the interface cloth of the Android application of example 9 Office's method, wherein the step of parsing the attribute value of view control property includes: when the attribute value of view control property is literal When, directly using literal as the attribute value of view control property;When the attribute value of view control property is the reference to resource When, the corresponding resource value of resource is cited by analysis to determine the attribute value of view control property.
According to one or more other embodiments of the present disclosure, [example 11] provides the interface of the Android application of example 10 Layout method, wherein pass through the step of analyzing attribute value of the corresponding resource value of resource that is cited to determine view control property It include: when resource value only has a definition, using resource value as the attribute value of view control property;When resource value has more parts to determine When adopted, the attribute value of view control property is obtained by operation android.content.res.Resources, wherein Android.content.res.Resources is the resource folder in Android application.
According to one or more other embodiments of the present disclosure, [example 12] provides the interface cloth of the Android application of example 9 Office's method, wherein determined the need for generating method call corresponding with view control according to the attribute value of view control property The step of include: when the attribute value of view control property is constant, confirmation view control property attribute value whether be view The default value of the attribute value of control property;When the attribute value of view control property is not the default of the attribute value of view control property When value, determines and need to generate method call corresponding with view control;When the attribute value of view control property is view control category Property attribute value default value when, determine and do not need to generate corresponding with view control method call.
According to one or more other embodiments of the present disclosure, [example 13] provides the interface cloth of the Android application of example 1 Office's method, wherein the step of parsing to the xml topology file of Android application includes: when including in xml topology file When include label, view control corresponding with include label is generated, and parse the attribute conduct of include label View control property;When in xml topology file including merge label, the sub- view control of merge label is parsed, and is solved The attribute for analysing sub- view control obtains sub- view control arrays.
According to one or more other embodiments of the present disclosure, [example 14] provides a kind of interface layout of Android application Device, comprising: document analysis unit is configured as parsing the xml topology file that Android is applied, obtains xml layout The view control property that the view control and view control of file use;Attribute converting unit is configurable to generate creation view The Java code of control, and view control property is converted into Java API Calls;File conversion unit is configured as basis Xml topology file is converted to Java code topology file by the view control property after view control and conversion;Loading method is true Order member is configured as determining load layout method according to the Java code topology file of conversion;With the first layout units, matched It is set to and interface layout is carried out according to determining load layout method.
According to one or more other embodiments of the present disclosure, [example 15] provides the interface of the Android application of example 14 Placement device, further includes: the view control property of xml topology file is compared with the support attribute set pre-established, View control property is divided into support attribute and not the propping up of not supporting of view control of the support of view control according to comparison result Hold attribute, wherein attribute converting unit is configured as when the view control property of xml topology file is entirely to support attribute, The view control property of xml topology file is all converted into Java API Calls.
According to one or more other embodiments of the present disclosure, [example 16] provides the interface of the Android application of example 15 Placement device, further includes: attribute holding unit is configured as when the view control property of xml topology file being at least partly not When supporting attribute, keep the view control property of xml topology file all constant;With the second layout units, it is configured as loading Xml topology file carries out interface layout.
According to one or more other embodiments of the present disclosure, [example 17] provides the interface of the Android application of example 15 Placement device, wherein only include for root control, in the LayoutParams attribute set of support layout_width and Layout_height, attribute converting unit are configured as that view control property is being divided into view control according to comparison result The support attribute and view control of support do not support when not supporting attribute, when view control be root control when, by layout_ Width and layout_height is determined as supporting attribute, except layout_width and layout_height LayoutParams attribute is determined as not supporting attribute.
According to one or more other embodiments of the present disclosure, [example 18] provides the interface of the Android application of example 16 Placement device, further includes: report generation unit is configured as when the view control property of xml topology file being at least partly not When supporting attribute, for not supporting attribute and use not to support the view control of attribute, generation is corresponding not to be supported to report.
According to one or more other embodiments of the present disclosure, [example 19] provides the interface of the Android application of example 15 Placement device, wherein attribute converting unit is also configured to obtain corresponding with the android system version that Android is applied Api class is other;The attribute of the support attribute in view control property Java API Calls are not converted into based on api class.
According to one or more other embodiments of the present disclosure, [example 20] provides the interface of the Android application of example 19 Placement device, further includes: supplement loading unit is configured as load onFinishInflate method call, wherein described OnFinishInflate method is the method adjusted back after the completion of topology file is loaded.
According to one or more other embodiments of the present disclosure, [example 21] provides the interface of the Android application of example 20 Placement device, wherein supplement loading unit is configured as: determining whether view control has rewritten onFinishInflate method; When determining that view control has rewritten onFinishInflate method, by the access level of the onFinishInflate method of rewriting Indescribably it is upgraded to public;When determining that view control does not rewrite onFinishInflate method, generate OnFinishInflate method, and public is set by the access level of the onFinishInflate method of generation.
According to one or more other embodiments of the present disclosure, [example 22] provides the interface of the Android application of example 14 Placement device, wherein attribute converting unit is configured as: the attribute value of view control property is parsed in code compilation;According to The attribute value of view control property determines the need for generating method call corresponding with view control;When determine need generate with When the corresponding method call of view control, view control property is converted into Java API Calls.
According to one or more other embodiments of the present disclosure, [example 23] provides the interface of the Android application of example 22 Placement device, wherein attribute converting unit is configured as: when parsing the attribute value of view control property, when view control category When the attribute value of property is literal, directly using literal as the attribute value of view control property;When the category of view control property Property value when being the reference to resource, the corresponding resource value of resource is cited by analysis to determine the attribute of view control property Value.
According to one or more other embodiments of the present disclosure, [example 24] provides the interface of the Android application of example 23 Placement device, wherein attribute converting unit is configured as: view is determined being cited the corresponding resource value of resource by analysis When the attribute value of control property, when resource value only has a definition, using resource value as the attribute value of view control property;When When resource value there are more parts of definition, view control property is obtained by operation android.content.res.Resources Attribute value, wherein android.content.res.Resources is the resource folder in Android application.
According to one or more other embodiments of the present disclosure, [example 25] provides the interface of the Android application of example 22 Placement device, wherein attribute converting unit is configured as " determining the need for generating according to the attribute value of view control property When the corresponding method call of view control, when the attribute value of view control property is constant, the category of view control property is confirmed Property value whether be view control property attribute value default value;When the attribute value of view control property is not view control property Attribute value default value when, determine and need to generate corresponding with view control method call;When the attribute of view control property When value is the default value of the attribute value of view control property, determines and do not need to generate method call corresponding with view control.
According to one or more other embodiments of the present disclosure, [example 26] provides the interface of the Android application of example 14 Placement device, wherein document analysis unit be configured as " when in xml topology file include include label when, generate with The corresponding view control of include label, and the attribute of include label is parsed as view control property;When xml is laid out When including merge label in file, the sub- view control of merge label is parsed, and parses the attribute of sub- view control, is obtained Sub- view control arrays.
According to one or more other embodiments of the present disclosure, [example 27] provides a kind of calculating for being stored with computer program Machine readable storage medium storing program for executing, wherein when the computer program is executed by processor, realize according to an embodiment of the present disclosure The quick interface arrangement method of Android application.
According to one or more other embodiments of the present disclosure, [example 28] provides a kind of electronic equipment, comprising: processor; Memory is stored with computer program, when the computer program is executed by processor, realizes in accordance with an embodiment of the present disclosure Android application quick interface arrangement method.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.
Although this is not construed as requiring these operations with institute in addition, depicting each operation using certain order The certain order that shows executes in sequential order to execute.Under certain environment, multitask and parallel processing may be advantageous 's.Similarly, although containing several specific implementation details in being discussed above, these are not construed as to this public affairs The limitation for the range opened.Certain features described in the context of individual embodiment can also be realized in combination single real It applies in example.On the contrary, the various features described in the context of single embodiment can also be individually or with any suitable The mode of sub-portfolio is realized in various embodiments.
Although having used specific to this theme of the language description of structure feature and/or method logical action, answer When understanding that theme defined in the appended claims is not necessarily limited to special characteristic described above or movement.On on the contrary, Special characteristic described in face and movement are only to realize the exemplary forms of claims.

Claims (16)

1. a kind of quick interface arrangement method of Android application, comprising:
The xml topology file of Android application is parsed, the view control and view control for obtaining xml topology file make View control property;
The Java code of creation view control is generated, and view control property is converted into Java Application Programming Interface API Calls;
Xml topology file is converted into Java code topology file according to the view control property after view control and conversion;
Load layout method is determined according to the Java code topology file of conversion;
Interface layout is carried out according to determining load layout method.
2. quick interface arrangement method according to claim 1, wherein view control property is being converted to Java API Calls Before, the quick interface arrangement method further include:
The view control property of xml topology file is compared with the support attribute set pre-established, according to comparison result By view control property divide into view control support support attribute and view control do not support do not support attribute,
Wherein, the step of view control property being converted to Java API Calls include:
It is when the view control property of xml topology file is entirely to support attribute, the view control property of xml topology file is complete Portion is converted to Java API Calls.
3. quick interface arrangement method according to claim 2, further includes:
When the view control property of xml topology file is at least partly not support attribute, the view control of xml topology file is kept Part attribute is all constant;
It loads xml topology file and carries out interface layout.
4. quick interface arrangement method according to claim 2, wherein for root control, the layout attributes of support It only include layout _ width layout_width and layout _ height layout_height in LayoutParams attribute set,
View control property is divided into the support attribute of view control support according to comparison result and view control is not supported The step of not supporting attribute include:
When view control is root control, layout_width and layout_height are determined as to support attribute, it will LayoutParams attribute except layout_width and layout_height is determined as not supporting attribute.
5. view control property is being divided into view according to comparison result by quick interface arrangement method according to claim 2 Control support support attribute and view control do not support the step of not supporting attribute after, the quick interface arrangement method is also wrapped It includes:
When the view control property of xml topology file is at least partly not support attribute, for not supporting attribute and using not Support the view control of attribute, generation is corresponding not to be supported to report.
6. quick interface arrangement method according to claim 2, wherein view control property is converted to Java API Calls Step further include:
It is other to obtain api class corresponding with the android system version that Android is applied;
The support attribute in view control property Java API Calls are not converted into based on api class.
7. quick interface arrangement method according to claim 6, wherein by view control property be converted to Java API Calls it Afterwards, the Android interface layout method further include:
Load onFinishInflate method call, wherein the onFinishInflate method is that topology file is loaded The method adjusted back after the completion.
8. quick interface arrangement method according to claim 7, wherein the step of loading onFinishInflate method call Include:
Determine whether view control has rewritten onFinishInflate method;
When determining that view control has rewritten onFinishInflate method, by the visit of the onFinishInflate method of rewriting Ask that rank is promoted to publicly-owned public;
When determining that view control does not rewrite onFinishInflate method, onFinishInflate method is generated, and Public is set by the access level of the onFinishInflate method of generation.
9. quick interface arrangement method according to claim 1, wherein view control property is converted to Java API Calls Step includes:
The attribute value of view control property is parsed in code compilation;
It is determined the need for generating method call corresponding with view control according to the attribute value of view control property;
When determining that needs generate method call corresponding with view control, view control property is converted into Java API tune With.
10. quick interface arrangement method according to claim 9, wherein the step of parsing the attribute value of view control property is wrapped It includes:
When the attribute value of view control property is literal, directly using literal as the attribute value of view control property;
When the attribute value of view control property is the reference to resource, the corresponding resource value of resource is cited come really by analysis Determine the attribute value of view control property.
11. quick interface arrangement method according to claim 10, wherein by analysis be cited the corresponding resource value of resource come The step of determining the attribute value of view control property include:
When resource value only has a definition, using resource value as the attribute value of view control property;
When resource value there are more parts of definition, view control is obtained by operation android.content.res.Resources The attribute value of attribute, wherein android.content.res.Resources is the resource folder in Android application.
12. quick interface arrangement method according to claim 9, wherein determined whether according to the attribute value of view control property Need generate method call corresponding with view control the step of include:
When the attribute value of view control property is constant, whether the attribute value of confirmation view control property is view control property Attribute value default value;
When the attribute value of view control property is not the default value of the attribute value of view control property, determine need generate with The corresponding method call of view control;
When the attribute value of view control property is the default value of the attribute value of view control property, determine do not need generate with The corresponding method call of view control.
13. quick interface arrangement method according to claim 1, wherein solved to the xml topology file of Android application The step of analysis includes:
When in xml topology file including include label, view control corresponding with include label is generated, and parse The attribute of include label is as view control property;
When in xml topology file including merge label, the sub- view control of merge label is parsed, and parses sub- view control The attribute of part obtains sub- view control arrays.
14. a kind of interface layout device of Android application, comprising:
Document analysis unit is configured as parsing the xml topology file that Android is applied, obtains xml topology file The view control property that view control and view control use;
Attribute converting unit, is configurable to generate the Java code of creation view control, and view control property is converted to Java API Calls;
File conversion unit is configured as being converted xml topology file according to the view control property after view control and conversion For Java code topology file;
Loading method determination unit is configured as determining load layout method according to the Java code topology file of conversion;With
First layout units are configured as carrying out interface layout according to determining load layout method.
15. a kind of computer readable storage medium for being stored with computer program, wherein when the computer program is by processor When execution, quick interface arrangement method described in any one of claims 1 to 13 is realized.
16. a kind of electronic equipment, comprising:
Processor;
Memory is stored with computer program, when the computer program is executed by processor, realizes claim 1 to 13 Any one of described in quick interface arrangement method.
CN201910752755.XA 2019-08-15 2019-08-15 Interface layout method and device for Android application Active CN110442419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910752755.XA CN110442419B (en) 2019-08-15 2019-08-15 Interface layout method and device for Android application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910752755.XA CN110442419B (en) 2019-08-15 2019-08-15 Interface layout method and device for Android application

Publications (2)

Publication Number Publication Date
CN110442419A true CN110442419A (en) 2019-11-12
CN110442419B CN110442419B (en) 2022-11-29

Family

ID=68435679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910752755.XA Active CN110442419B (en) 2019-08-15 2019-08-15 Interface layout method and device for Android application

Country Status (1)

Country Link
CN (1) CN110442419B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835718A (en) * 2020-06-23 2021-12-24 北京字节跳动网络技术有限公司 Android application package generation method and device, terminal device and medium
CN115373683A (en) * 2022-08-22 2022-11-22 北京字跳网络技术有限公司 Page display method, source code compiling method and related equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7343379B2 (en) * 2004-05-21 2008-03-11 Bea Systems, Inc. System and method for controls
CN102375733A (en) * 2010-08-24 2012-03-14 北大方正集团有限公司 Convenient and quick interface arrangement method
US8464211B2 (en) * 2007-03-01 2013-06-11 Formotus, Inc. Forms conversion and deployment system for mobile devices
CN105095348A (en) * 2015-06-09 2015-11-25 北京织星科技有限公司 Method for dynamically configuring website through XML (Extensive Markup Language)
CN105204873A (en) * 2014-05-27 2015-12-30 宇龙计算机通信科技(深圳)有限公司 Terminal and application interface display method
CN107832088A (en) * 2017-11-06 2018-03-23 青岛海信电器股份有限公司 Control application method and device, computing device, computer-readable storage medium
CN108595965A (en) * 2018-04-28 2018-09-28 北京字节跳动网络技术有限公司 Prevent the method and its device that the attribute information of interface control is stolen
CN109783176A (en) * 2019-01-17 2019-05-21 广州酷狗计算机科技有限公司 Switch the method and apparatus of the page

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7343379B2 (en) * 2004-05-21 2008-03-11 Bea Systems, Inc. System and method for controls
US8464211B2 (en) * 2007-03-01 2013-06-11 Formotus, Inc. Forms conversion and deployment system for mobile devices
CN102375733A (en) * 2010-08-24 2012-03-14 北大方正集团有限公司 Convenient and quick interface arrangement method
CN105204873A (en) * 2014-05-27 2015-12-30 宇龙计算机通信科技(深圳)有限公司 Terminal and application interface display method
CN105095348A (en) * 2015-06-09 2015-11-25 北京织星科技有限公司 Method for dynamically configuring website through XML (Extensive Markup Language)
CN107832088A (en) * 2017-11-06 2018-03-23 青岛海信电器股份有限公司 Control application method and device, computing device, computer-readable storage medium
CN108595965A (en) * 2018-04-28 2018-09-28 北京字节跳动网络技术有限公司 Prevent the method and its device that the attribute information of interface control is stolen
CN109783176A (en) * 2019-01-17 2019-05-21 广州酷狗计算机科技有限公司 Switch the method and apparatus of the page

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
看我眼前007: "探究Android View 绘制流程,Xml 文件到 View 对象的转换过程", 《HTTPS://WWW.JIANSHU.COM/P/ECCD8BA87E8B》 *
马英瑞等: "基于自定义view技术的移动端界面特效设计与实现", 《福建电脑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835718A (en) * 2020-06-23 2021-12-24 北京字节跳动网络技术有限公司 Android application package generation method and device, terminal device and medium
CN115373683A (en) * 2022-08-22 2022-11-22 北京字跳网络技术有限公司 Page display method, source code compiling method and related equipment

Also Published As

Publication number Publication date
CN110442419B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
US11656859B2 (en) Data model API for live applications in a cloud collaboration platform
CN106980504B (en) Application program development method and tool and equipment thereof
US11531529B2 (en) Method and electronic device for deploying operator in deep learning framework
CN109976793B (en) Application program running method, device, equipment and medium
US8756407B2 (en) Configuration rule prototyping tool
CN110502222A (en) AAR method, apparatus, medium and the equipment in outgoing dependence inner base library
CN110764748B (en) Code calling method, device, terminal and storage medium
JP2021111368A (en) API-based software development platform
CN109062572B (en) Component calling method, device, equipment and storage medium
CN102770842A (en) Pattern-based user interfaces
CN101965561A (en) Declarative support for asynchronous methods
CN106648569A (en) Target serialization achieving method and device
CN114996619A (en) Page display method and device, computer equipment and storage medium
CN111858104B (en) Multi-terminal adaptive form generation method, device, equipment and medium
CN109726217A (en) A kind of database operation method, device, equipment and storage medium
CN109933381A (en) A kind of loading method and device of kernel
CN110442419A (en) The quick interface arrangement method and device of Android application
WO2022184077A1 (en) Document editing method and apparatus, and terminal and non-transitory storage medium
CN113127000B (en) Compiling method, compiling device, compiling equipment and compiling storage medium for application program component
Cimino et al. An efficient model-based methodology for developing device-independent mobile applications
CN116932829A (en) Solutions for developer supporting big data tree view components
CN109408057B (en) Method, device, medium and computing equipment for automatically generating codes
CN109491687A (en) A kind of hot update method, device, terminal and the readable medium of application software
CN109857503A (en) Page interaction effect adaptive approach, device and electronic equipment
Mijailovic et al. A retrospective on user interface development technology

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