CN106250158A - The layout method of a kind of client end interface, device and mobile device - Google Patents
The layout method of a kind of client end interface, device and mobile device Download PDFInfo
- Publication number
- CN106250158A CN106250158A CN201610630328.0A CN201610630328A CN106250158A CN 106250158 A CN106250158 A CN 106250158A CN 201610630328 A CN201610630328 A CN 201610630328A CN 106250158 A CN106250158 A CN 106250158A
- Authority
- CN
- China
- Prior art keywords
- interface
- file
- primary topology
- topology file
- client end
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The embodiment of the present application provides the layout method of a kind of client end interface, device and mobile device, storage has the interface resources of client end interface in a mobile device, and the primary topology file of client end interface, described method includes: when showing client end interface, obtain primary topology file and the interface resources of described client end interface;Described primary topology file and described interface resources is used to generate interface control;By described interface control according to described primary topology file layout to client end interface.The embodiment of the present application is when client end interface is newly-increased or revises pattern, have only to reacquire primary topology file, and the newly-increased or interface resources of renewal, and without client and service end repeated work in many ways, thus simply and flexibly realize the Dynamic Distribution on line, can quickly come into force without the client release that iteration is new in the case of without compatibling problem.
Description
Technical field
The invention relates to mobile communication technology field, particularly relate to the layout method of a kind of client end interface,
The placement device of a kind of client end interface, and a kind of mobile device.
Background technology
Along with the development of science and technology, such as the mobile device such as mobile phone, panel computer, intelligent watch is widely available, people
Life, learn, work in application get more and more.
In order to meet the various demands of user, such as reading, session etc., user installs many clients the most in systems
End, such as E-book reader, immediate communication tool, application assistant etc..These clients can carry out version iteration, thinks user
Preferably service is provided.
As a example by the client of Android (Android) system, during the version iteration of client, often present more
Carry out the recommendation collection of the most different patterns so that the more comprehensive and abundant of data display, variation in client.But, often increase
The recommendation collection of a kind of pattern, it is meant that client and service end need what a type identification of arranging more, and client needs
The type identification that amendment code reply is new, last local upgrade is that the client of redaction just can come into force.This mode is mainly deposited
In following 3 shortcomings:
1, for research and development aspect, design pattern has been run counter to opening and closing principle;
2, the most newly-increased pattern demand, need in many ways coordinate, increases newly, revises, cause repeated workload in many ways;
3, after needing to upgrade to the client of redaction, newly-increased pattern just can come into force, and can only cover and upgrade to redaction
Client.
Summary of the invention
In view of the above problems, it is proposed that the embodiment of the present application is to provide one to overcome the problems referred to above or at least in part
Solve the layout method of a kind of client end interface of the problems referred to above and the placement device of corresponding a kind of client end interface and movement
Equipment.
In order to solve the problems referred to above, this application discloses the layout method of a kind of client end interface, deposit in a mobile device
Containing the interface resources of client end interface, and the primary topology file of client end interface, described method includes:
When showing client end interface, obtain primary topology file and the interface resources of described client end interface;
Described primary topology file and described interface resources is used to generate interface control;
By described interface control according to described primary topology file layout to client end interface.
Preferably, before the primary topology file of described acquisition client end interface and the step of interface resources, also include:
Primary topology file is downloaded from specified services end;
Described primary topology file is stored in described mobile device.
Preferably, described primary topology file has the file identification of correspondence, is stored in by primary topology file described
After step in described mobile device, also include:
Obtain described primary topology file file store path in described mobile device;
Set up the incidence relation between described file identification and described file store path.
Preferably, described client end interface has the program identification of correspondence, the primary topology file of described client end interface
Obtain in the following way:
Judge in described mobile device, whether there is the file identification mated with described program identification;
The most then obtain the file store path that described file identification is corresponding;
Corresponding primary topology file is obtained according to described file store path.
Preferably, described primary topology file comprises the resource identification that described interface resources is corresponding, the primary cloth of described employing
Office file and described interface resources generate the step of interface control and include:
Obtain the resource identification in described primary topology file;
Described resource identification is used to obtain the interface resources of correspondence from described mobile device;
Described interface resources is set according to described primary topology file and obtains interface control.
Preferably, described interface control is included according to the step of described primary topology file layout to client end interface:
According to described primary topology file, father's control is set in described client end interface;
Described interface control is added in described father's control.
Preferably, described resource identification is tag mark.
The embodiment of the present application also discloses the placement device of a kind of client end interface, and storage has client in a mobile device
The interface resources at interface, and the primary topology file of client end interface, described device includes:
Topology data acquisition module, for when showing client end interface, obtaining the primary layout of described client end interface
File and interface resources;
Interface control generation module, is used for using described primary topology file and described interface resources to generate interface control;
Interface control layout modules, for by described interface control according to described primary topology file layout to client circle
Face.
Preferably, also include:
Primary topology file download module, for downloading primary topology file from specified services end;
Primary topology file memory module, for being stored in described primary topology file in described mobile device.
Preferably, described primary topology file has the file identification of correspondence, and described device also includes:
File store path acquisition module, deposits for obtaining described primary topology file file in described mobile device
Storage path;
Incidence relation sets up module, associates pass for setting up between described file identification with described file store path
System.
Preferably, described client end interface has the program identification of correspondence, and described topology data acquisition module includes:
Mark matched sub-block, for judging whether there is the literary composition mated with described program identification in described mobile device
Part identifies;The most then call file store path and obtain submodule;
File store path obtains submodule, for obtaining the file store path that described file identification is corresponding;
Obtain primary topology file submodule, for obtaining corresponding primary layout literary composition according to described file store path
Part.
Preferably, described primary topology file comprises the resource identification that described interface resources is corresponding, and described interface control is raw
Module is become to include:
Resource identification obtains submodule, for obtaining the resource identification in described primary topology file;
Interface resources obtains submodule, for using described resource identification to obtain the interface of correspondence from described mobile device
Resource;
Interface resources arranges submodule, obtains interface control for arranging described interface resources according to described primary topology file
Part.
Preferably, described interface control layout modules includes:
Father's control arranges submodule, for arranging father's control in described client end interface according to described primary topology file
Part;
Interface control adds submodule, for being added in described father's control by described interface control.
The embodiment of the present application also discloses a kind of mobile device, and storage has the interface of client end interface to provide in a mobile device
Source, and the primary topology file of client end interface, described mobile device includes:
Topology data acquisition module, for when showing client end interface, obtaining the primary layout of described client end interface
File and interface resources;
Interface control generation module, is used for using described primary topology file and described interface resources to generate interface control;
Interface control layout modules, for by described interface control according to described primary topology file layout to client circle
Face.
The embodiment of the present application includes advantages below:
When the embodiment of the present application loads client end interface, obtain primary topology file and interface money that client is downloaded in advance
Source, then generates interface control, finally according to primary topology file by interface control according to interface resources and primary topology file
Layout is in client end interface, so, when client end interface is newly-increased or during amendment pattern, it is only necessary to reacquire primary layout literary composition
Part, and interface resources that is newly-increased or that update, and without client and service end repeated work in many ways, thus simply and
Realize the Dynamic Distribution on line flexibly, can fast fast-growing without the client release that iteration is new in the case of without compatibling problem
Effect.
The embodiment of the present application is without the layout code of additional complexity and formulates complicated placement protocol, uses Android former
Raw topology file and the method for primary generation layout, so realizing simple.It addition, the topology file of the embodiment of the present application is not
Only support Android Resources, support the User Defined Resource that corresponding version exists the most simultaneously, so flexible layout is convenient.Application is originally
Application embodiment so that product and operation optimize Product Experience time, can carry out faster new effect issue, data statistics with
And collection user feedback, it is achieved the quickly ability of trial and error, client and service end research and development then greatly reduce code and increase newly and generation
The workload of code amendment, shortens the development time, reduces development cost.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of the layout method embodiment 1 of a kind of client end interface of the application;
Fig. 2 is the flow chart of steps of the layout method embodiment 2 of a kind of client end interface of the application;
Fig. 3 is the structured flowchart of the placement device embodiment of a kind of client end interface of the application;
Fig. 4 is the structured flowchart of a kind of mobile device embodiment of the application.
Detailed description of the invention
Understandable for enabling the above-mentioned purpose of the application, feature and advantage to become apparent from, real with concrete below in conjunction with the accompanying drawings
The application is described in further detail by mode of executing.
With reference to Fig. 1, it is shown that the flow chart of steps of the layout method embodiment of a kind of client end interface of the application, visitor
Family end can store the interface resources of client end interface, and the primary topology file of client end interface, specifically can wrap
Include following steps:
Step 101, when showing client end interface, obtains primary topology file and the interface money of described client end interface
Source;
In implementing, client end interface is referred to as graphic user interface (Graphical User
Interface, GUI), need the interface element (figure, word etc.) in client end interface is arranged.Outstanding layout
The interactive operation between user and application program can be simplified, cater to the use habit of user, improve the Consumer's Experience that user uses.
The embodiment of the present application can be applied in various mobile devices, such as, mobile phone, panel computer, personal digital assistant,
Wearable device (such as glasses, wrist-watch etc.) etc., it is also possible to apply in various fixing equipment, such as, intelligent television, PC
Etc..
These mobile devices, the operating system of fixing equipment can include Android, IOS, Windows Phone,
Windows etc., can install various client, in such systems such as E-book reader, immediate communication tool, browser etc.
Deng, webpage or online content can be shown.As a example by mainly using Android client, the embodiment of the present application is carried out
Explanation.
In the embodiment of the present application, mobile device is previously stored with the primary topology file downloaded from service end, and,
The interface resources of client.When needs loading client end interface shows on the mobile apparatus, client end interface will be obtained
Corresponding primary topology file and interface resources.
It should be noted that interface resources can be to precipitate over time, the time accumulates the most the most for a long time,
So being typically all enough uses in the longest one version iteration period, so sometimes having only to update primary layout literary composition
Part, can realize increasing client end interface pattern newly or updating.
Step 102, uses described primary topology file and described interface resources to generate interface control;
Interface control, refers to the visualized elements can placed on client end interface, that is to say aforesaid interface element, as
Button, Document Editing frame etc..Wherein part interface control has execution function or causes code to run and complete by " event "
Become the function of response.
In an embodiment of the application, described primary topology file can comprise the resource that described interface resources is corresponding
Mark, described step 102 can include following sub-step:
Sub-step S11, obtains the resource identification in described primary topology file;
Sub-step S12, uses described resource identification to obtain the interface resources of correspondence from described client;
Sub-step S13, arranges described interface resources according to described primary topology file and obtains interface control.
In the embodiment of the present application, the resource identification of interface resources can be tag mark.When loading client end interface,
The mark of the tag in primary topology file is used to search the interface resources of correspondence in a mobile device.
Generally, topology file uses id mark to quote interface resources, but the interface money being due to the embodiment of the present application
Source and the primary topology file being used for layout are not to be sent collectively to client, but separately send, if therefore directly led to
Cross id mark and quote interface resources, may cause occurring quoting abnormal problem.
Therefore in the embodiment of the present application, primary topology file uses tag mark to substitute id mark, is used for quoting interface resources,
And other mark such as color, size also can be used directly occurrence and substitute, so, asking of misquotation would not occur
Topic, it is of course also possible to make the problem making to be unlikely to misquotation occur in other ways, the embodiment of the present application is to this most in addition
Limit.
The embodiment of the present application uses the tag mark traversal mobile device in primary topology file, identifies if there is with tag
The interface resources of coupling, then obtain this interface resources.After the interface resources got, according to primary topology file to interface resources
It is configured obtaining interface control.
Step 103, by described interface control according to described primary topology file layout to client end interface.
In implementing, primary topology file defines client end interface pattern that is newly-increased or that update.When in client
When there is primary topology file, generate interface control according to primary topology file, and according to primary topology file by interface control
Layout is in client end interface relevant position.
If the most there is not the primary topology file of client, then according to this client at first installation kit
Load client end interface.
In an embodiment of the application, described step 103 can include following sub-step:
Sub-step S21, arranges father's control according to described primary topology file in described client end interface;
Sub-step S22, adds to described interface control in described father's control.
The embodiment of the present application can be to the layout of whole client end interfaces, it is also possible to the only cloth to part client interface
Office.For example, it is possible to the layout of the title bar pattern to client end interface, the layout to the pattern on client application hurdle, the application
This is not any limitation as by embodiment.
Assume that the pattern of the title bar of certain client end interface needs to apply the embodiment of the present application dynamically to generate, then first
Place an empty control, i.e. father's control in the position at title bar place according to primary topology file, then use and generated
Interface control, adds to and carries out rendering displaying in father's control of sky, and now client end interface layout completes.
When the embodiment of the present application loads client end interface, obtain primary topology file and interface money that client is downloaded in advance
Source, then generates interface control, finally according to primary topology file by interface control according to interface resources and primary topology file
Layout is in client end interface, so, when client end interface is newly-increased or during amendment pattern, it is only necessary to reacquire primary layout literary composition
Part, and interface resources that is newly-increased or that update, and without client and service end repeated work in many ways, thus simply and
Realize the Dynamic Distribution on line flexibly, can fast fast-growing without the client release that iteration is new in the case of without compatibling problem
Effect.Wherein, compatibling problem, it is primarily referred to as network request interface protocol incompatible, or topology file employs in new edition and just exists
The problem such as self-defined control.
The embodiment of the present application is without the layout code of additional complexity and formulates complicated placement protocol, uses Android former
Raw topology file and the method for primary generation layout, so realizing simple.It addition, the topology file of the embodiment of the present application is not
Only support Android Resources, support the User Defined Resource that corresponding version exists the most simultaneously, so flexible layout is convenient.Application is originally
Application embodiment so that product and operation optimize Product Experience time, can carry out faster new effect issue, data statistics with
And collection user feedback, it is achieved the quickly ability of trial and error, client and service end research and development then greatly reduce code and increase newly and generation
The workload of code amendment, shortens the development time, reduces development cost.
With reference to Fig. 2, it is shown that the flow chart of steps of the layout method embodiment of a kind of client end interface of the application, visitor
In the end of family, storage can have the interface resources of client end interface, and the primary topology file of client end interface, specifically can wrap
Include following steps:
Step 201, downloads the primary topology file of client end interface from specified services end;
In a particular application, primary topology file is write by demand.Primary topology file can support primary interface resources
With defined interface resource.Wherein, primary interface resources refers to original interface resources that the systems such as original Android are supported,
Otherwise, defined interface resource refers to the interface resources write for client, rather than original boundary that the systems such as Android are supported
Face resource.
Primary topology file, when writing, the most directly quotes the id mark of interface resources, because primary topology file is also
It not packing compiling together with the installation kit (including interface resources in installation kit) with client, and be probably and separately download to visitor
Family end, if therefore directly quoting the id mark of interface resources and write primary topology file and there will be and quote exception.
As a example by android, all resources id mark of statement in Android topology file (is all word in topology file
Symbol string such as "+id/pp_test_id "), identify, such as 0x7f040000 with integer id that all can generate correspondence after engineering compiling.Institute
It is exactly that this topology file is not with client at that time not allow the reason stating resource id mark in the XML layout that issues
Version compiles together, if using id mark, inconsistent with announced version after compiling, can not find resource during operation
Exception.
For the problems referred to above, in the embodiment of the present application, the id for interface resources identifies, and uses tag mark to replace
In generation, tag is character string, such as " pp_test_id ", uses tag mark just can avoid above-mentioned problem.In primary topology file
Other attribute such as color, size also can be used directly occurrence and substitute, to avoid quoting abnormal problem.
After primary topology file writes, (effect of this instruction is to use the package of Android appt instrument to instruct
Packing generates resource compressed package), primary topology file is compiled.Wherein, primary topology file, can be by new when writing
Increase or the respective interface resource of more novel type is compiled, together owing to interface resources now is compiled together with primary topology file
Translate, if directly using id mark to quote interface resources, also not havinging and quoting abnormal problem.
It should be noted that aapt (Android Asset Packaging Tool, Android resource strapping tool),
Under the build-tools catalogue of SDK (SDK, Software Development Kit).Aapt instrument is permissible
Check, create, update zip, the document attachment of the forms such as jar, apk, it is possible to interface resources is compiled into binary file.This is
For compressed resource memory space, and accelerate resource resolution speed when running.The embodiment of the present application is primary to write
Topology file is compiled, and is increased newly by compiled primary topology file or update on specified services end, for client
Download.
Step 202, is stored in described primary topology file in described client;
It is preferred that know for the ease of client and have primary topology file newly-increased in service end or update, can be newly-increased
Or transmission is reminded to client after updating primary topology file, client just can arrive service end and download primary topology file, with
And relevant interface resources etc., and be stored in the catalogue of this locality.Or, client can also regular visit service end, with
Having known whether that primary topology file is newly-increased or updates, be only obtained in that primary topology file, the embodiment of the present application is to this not
It is any limitation as.
In an embodiment of the application, described primary topology file can have the file identification of correspondence, described
After step 202, it is also possible to comprise the steps:
Obtain described primary topology file file store path in described client;
Set up the incidence relation between described file identification and described file store path.
In the embodiment of the present application, getting primary topology file, this primary topology file will obtained accordingly client
The file store path that end is local, and set up associating between the file identification of primary topology file and file store path
System, so, when know need to call a certain primary topology file time, it is right to know according to the file identification of primary topology file
The store path answered.Wherein, file identification can be the filename of primary topology file, it is of course also possible to be that other can be known
Being clipped to other marks of this primary topology file, this is not any limitation as by the embodiment of the present application.
Specifically, primary topology file A is downloaded in client request, is stored in the local directory B of client, then uses
The private method adding resource path of Android resource management framework is called in the reflex mechanism reflection of JAVA, utilizes the method by mesh
Record B adds in the path list of Android explorer accreditation.
It should be understood that the reflex mechanism of JAVA, i.e. in running status, for any one class, can know
The all properties of this class and method;For any one object, its any one method and attribute can be called;This
The information dynamically obtained and the function of the method for dynamic call object are referred to as the reflex mechanism of JAVA language.Owing to formerly realizing
Needing the private method in operating resource manager, without open API, (Application Programming Interface, should
With Program Interfaces) interface can call, so needing to use the reflex mechanism of JAVA.
Step 203, when showing client end interface, obtains primary topology file and the interface money of described client end interface
Source;
In an embodiment of the application, described client end interface can have the program identification of correspondence, described step
203, the primary topology file of the most described client end interface obtains in the following way:
Sub-step S31, it is judged that whether there is the file identification mated with described program identification in described client;If
It is then to perform sub-step S32;
Sub-step S32, obtains the file store path that described file identification is corresponding;
Sub-step S33, obtains corresponding primary topology file according to described file store path.
Step 204, uses described primary topology file and described interface resources to generate interface control;
In implementing, when loaded and displayed client end interface, client uses Android resource management framework by former
The local filename of raw topology file A, automatically searches catalogue B and finds this primary topology file to load, thus generating
The XML layout resolver of its correspondence.
Step 205, by described interface control according to described primary topology file layout to client end interface.
Client, by the XML layout resolver generated according to primary topology file, transfers to Android distribution structure device framework
(effect of this framework is by the interface in layout by primary topology file or layout resolver to generate the interface control of its correspondence
Control is arranged regularly and sets a property).Finally, the interface control of generation adds in the father's control specified, can be visitor
Family renders out on end interface.
One of core of the embodiment of the present application is, uses the existing disclosed API approach of Android, loads and resolve pre-
Compiled primary topology file, but this API approach only can go to find the layout literary composition specified in current resource management framework
Part, and explorer only identifies self Resource TOC of application, so system can not find from the locally downloading cloth of service end
Office file.The embodiment of the present application utilizes JAVA reflex mechanism, reflection to call the privately owned side of Android resource management framework cleverly
Method adds local folders path, enables a system to find the primary topology file downloaded, thus normal load resolves also
Generate corresponding interface control to be rendered on client end interface.
In order to be that those skilled in the art are more fully understood that the embodiment of the present application, below for the principle of the embodiment of the present application
And advantage is described further.
As a example by Android, Android application program (client) is mainly made up of two parts content: code and resource.
Resource mainly refers to the thing that those are relevant to UI, such as UI layout, character string and picture etc..Code and resource are the most permissible
Application program is made to organize UI the most according to actual needs.Application program thus can be made to have only to compile once,
Just can support different UI layouts.This characteristic makes application program operationally be adapted to different screen size and close
Degree, and different countries and language etc..But the problem existing for this compiling mode together is, need each time to update client
During end pattern, it is required for downloading the client of latest edition and the issue that so cannot quickly carry out new effect being installed, it is impossible to fast
Speed is optimized for product.
The embodiment of the present application is then to be divided by the installation kit of the primary topology file and client that are used for client end interface layout
Open and be compiled, if therefore to need to carry out client pattern newly-increased or update, it is only necessary to the primary layout that research and development compiling is new again
File, then newly-increased or renewal server correspondence interface resources, resolve and load new primary topology file to generate boundary
Face control is rendered on client end interface again, thus simply and flexibly realizes the Dynamic Distribution on line, without compatibling problem
In the case of can quickly come into force without the client release that iteration is new.
The advantage of this way of the embodiment of the present application is, at product with when runing at optimization Product Experience, passes through the application
Embodiment can carry out new effect issue, data statistics faster and collect user feedback, it is achieved the quickly ability of trial and error.And
Client and server research and development then greatly reduce the newly-increased workload with code revision of code, shorten the development time, and reduction is opened
Send out cost.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of action group
Closing, but those skilled in the art should know, the embodiment of the present application is not limited by described sequence of movement, because depending on
According to the embodiment of the present application, some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should
Knowing, embodiment described in this description belongs to preferred embodiment, and involved action not necessarily the application implements
Necessary to example.
With reference to Fig. 3, it is shown that the structured flowchart of the placement device embodiment of a kind of client end interface of the application, moving
Can store the interface resources of client end interface, and the primary topology file of client end interface in equipment, described device has
Body can include such as lower module:
Topology data acquisition module 301, for when showing client end interface, obtaining the primary cloth of described client end interface
Office file and interface resources;
In an embodiment of the application, described device can also include such as lower module:
Primary topology file download module, for downloading primary topology file from specified services end;
Primary topology file memory module, for being stored in described primary topology file in described mobile device.
In an embodiment of the application, described primary topology file can have the file identification of correspondence, described dress
Put and can also include such as module:
File store path acquisition module, deposits for obtaining described primary topology file file in described mobile device
Storage path;
Incidence relation sets up module, associates pass for setting up between described file identification with described file store path
System.
Interface control generation module 302, is used for using described primary topology file and described interface resources to generate interface control
Part;
In an embodiment of the application, described client end interface can have the program identification of correspondence, described layout
Data acquisition module 301 can include following submodule:
Mark matched sub-block, for judging whether there is the literary composition mated with described program identification in described mobile device
Part identifies;The most then call file store path and obtain submodule;
File store path obtains submodule, for obtaining the file store path that described file identification is corresponding;
Obtain primary topology file submodule, for obtaining corresponding primary layout literary composition according to described file store path
Part.
In an embodiment of the application, described primary topology file can comprise the resource that described interface resources is corresponding
Mark, described interface control generation module 302 can include following submodule:
Resource identification obtains submodule, for obtaining the resource identification in described primary topology file;
Interface resources obtains submodule, for using described resource identification to obtain the interface of correspondence from described mobile device
Resource;
Interface resources arranges submodule, obtains interface control for arranging described interface resources according to described primary topology file
Part.
Interface control layout modules 303, for by described interface control according to described primary topology file layout to client
End interface.
In an embodiment of the application, described interface control layout modules 302 can include following submodule:
Father's control arranges submodule, for arranging father's control in described client end interface according to described primary topology file
Part;
Interface control adds submodule, for being added in described father's control by described interface control.
In an embodiment of the application, described resource identification can be tag mark.
For device embodiment, due to itself and embodiment of the method basic simlarity, so describe is fairly simple, relevant
Part sees the part of embodiment of the method and illustrates.
With reference to Fig. 4, it is shown that the structured flowchart of a kind of mobile device embodiment of the application, can deposit in a mobile device
Containing the interface resources of client end interface, and the primary topology file of client end interface, described mobile device specifically can be wrapped
Include such as lower module:
Topology data acquisition module 401, for when showing client end interface, obtaining the primary cloth of described client end interface
Office file and interface resources;
In an embodiment of the application, described device can also include such as lower module:
Primary topology file download module, for downloading primary topology file from specified services end;
Primary topology file memory module, for being stored in described primary topology file in described mobile device.
In an embodiment of the application, described primary topology file can have the file identification of correspondence, described dress
Put and can also include such as module:
File store path acquisition module, deposits for obtaining described primary topology file file in described mobile device
Storage path;
Incidence relation sets up module, associates pass for setting up between described file identification with described file store path
System.
Interface control generation module 402, is used for using described primary topology file and described interface resources to generate interface control
Part;
In an embodiment of the application, described client end interface can have the program identification of correspondence, described layout
Data acquisition module 401 can include following submodule:
Mark matched sub-block, for judging whether there is the literary composition mated with described program identification in described mobile device
Part identifies;The most then call file store path and obtain submodule;
File store path obtains submodule, for obtaining the file store path that described file identification is corresponding;
Obtain primary topology file submodule, for obtaining corresponding primary layout literary composition according to described file store path
Part.
In an embodiment of the application, described primary topology file can comprise the resource that described interface resources is corresponding
Mark, described interface control generation module 402 can include following submodule:
Resource identification obtains submodule, for obtaining the resource identification in described primary topology file;
Interface resources obtains submodule, for using described resource identification to obtain the interface of correspondence from described mobile device
Resource;
Interface resources arranges submodule, obtains interface control for arranging described interface resources according to described primary topology file
Part.
Interface control layout modules 403, for by described interface control according to described primary topology file layout to client
End interface.
In an embodiment of the application, described interface control layout modules 402 can include following submodule:
Father's control arranges submodule, for arranging father's control in described client end interface according to described primary topology file
Part;
Interface control adds submodule, for being added in described father's control by described interface control.
In an embodiment of the application, described resource identification can be tag mark.
For mobile device embodiment, due to itself and embodiment of the method basic simlarity, so describe is fairly simple,
Relevant part sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, what each embodiment stressed is with
The difference of other embodiments, between each embodiment, identical similar part sees mutually.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present application can be provided as method, device or calculate
Machine program product.Therefore, the embodiment of the present application can use complete hardware embodiment, complete software implementation or combine software and
The form of the embodiment of hardware aspect.And, the embodiment of the present application can use one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) of program code
The form of the computer program implemented.
In a typical configuration, described computer equipment includes one or more processor (CPU), input/output
Interface, network interface and internal memory.Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
The forms such as device (RAM) and/or Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM).Internal memory is to calculate
The example of machine computer-readable recording medium.Computer-readable medium includes that removable media permanent and non-permanent, removable and non-is permissible
Information storage is realized by any method or technology.Information can be computer-readable instruction, data structure, the module of program or
Other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM
(SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read only memory
(ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc are read-only
Memorizer (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic rigid disk storage or
Other magnetic storage apparatus or any other non-transmission medium, can be used for the information that storage can be accessed by a computing device.According to
Defining herein, computer-readable medium does not include the computer readable media (transitory media) of non-standing, as
The data signal of modulation and carrier wave.
The embodiment of the present application is with reference to method, terminal unit (system) and the computer program according to the embodiment of the present application
The flow chart of product and/or block diagram describe.It should be understood that can be by computer program instructions flowchart and/or block diagram
In each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.These can be provided
Computer program instructions sets to general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to produce a machine so that held by the processor of computer or other programmable data processing terminal equipment
The instruction of row produces for realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame
The device of the function specified.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing terminal equipment
In the computer-readable memory worked in a specific way so that the instruction being stored in this computer-readable memory produces bag
Including the manufacture of command device, this command device realizes in one flow process of flow chart or multiple flow process and/or one side of block diagram
The function specified in frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment so that
On computer or other programmable terminal equipment, execution sequence of operations step is to produce computer implemented process, thus
The instruction performed on computer or other programmable terminal equipment provides for realizing in one flow process of flow chart or multiple flow process
And/or the step of the function specified in one square frame of block diagram or multiple square frame.
Although having been described for the preferred embodiment of the embodiment of the present application, but those skilled in the art once knowing base
This creativeness concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to
The all changes including preferred embodiment and falling into the embodiment of the present application scope and amendment.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like be used merely to by
One entity or operation separate with another entity or operating space, and not necessarily require or imply these entities or operation
Between exist any this reality relation or order.And, term " includes ", " comprising " or its any other variant meaning
Containing comprising of nonexcludability, so that include that the process of a series of key element, method, article or terminal unit not only wrap
Include those key elements, but also include other key elements being not expressly set out, or also include for this process, method, article
Or the key element that terminal unit is intrinsic.In the case of there is no more restriction, by wanting that statement " including ... " limits
Element, it is not excluded that there is also other identical element in including the process of described key element, method, article or terminal unit.
Layout method to a kind of client end interface provided herein, the placement device of a kind of client end interface above
And mobile device, it being described in detail, principle and the embodiment of the application are carried out by specific case used herein
Illustrating, the explanation of above example is only intended to help and understands the present processes and core concept thereof;Simultaneously for this area
Those skilled in the art, according to the thought of the application, the most all will change, to sum up
Described, this specification content should not be construed as the restriction to the application.
Claims (14)
1. the layout method of a client end interface, it is characterised in that storage has the interface of client end interface in a mobile device
Resource, and the primary topology file of client end interface, described method includes:
When showing client end interface, obtain primary topology file and the interface resources of described client end interface;
Described primary topology file and described interface resources is used to generate interface control;
By described interface control according to described primary topology file layout to client end interface.
Method the most according to claim 1, it is characterised in that described acquisition client end interface primary topology file and
Before the step of interface resources, also include:
Primary topology file is downloaded from specified services end;
Described primary topology file is stored in described mobile device.
Method the most according to claim 2, it is characterised in that described primary topology file has the file identification of correspondence,
Described primary topology file is stored in the step in described mobile device after, also include:
Obtain described primary topology file file store path in described mobile device;
Set up the incidence relation between described file identification and described file store path.
Method the most according to claim 3, it is characterised in that described client end interface has the program identification of correspondence, institute
The primary topology file stating client end interface obtains in the following way:
Judge in described mobile device, whether there is the file identification mated with described program identification;
The most then obtain the file store path that described file identification is corresponding;
Corresponding primary topology file is obtained according to described file store path.
Method the most according to claim 1, it is characterised in that it is corresponding that described primary topology file comprises described interface resources
Resource identification, the primary topology file of described employing and described interface resources generate the step of interface control and include:
Obtain the resource identification in described primary topology file;
Described resource identification is used to obtain the interface resources of correspondence from described mobile device;
Described interface resources is set according to described primary topology file and obtains interface control.
Method the most according to claim 1, it is characterised in that described by interface control according to described primary topology file cloth
Office includes to the step of client end interface:
According to described primary topology file, father's control is set in described client end interface;
Described interface control is added in described father's control.
Method the most according to claim 5, it is characterised in that described resource identification is tag mark.
8. the placement device of a client end interface, it is characterised in that storage has the interface of client end interface in a mobile device
Resource, and the primary topology file of client end interface, described device includes:
Topology data acquisition module, for when showing client end interface, obtaining the primary topology file of described client end interface
And interface resources;
Interface control generation module, is used for using described primary topology file and described interface resources to generate interface control;
Interface control layout modules, for by described interface control according to described primary topology file layout to client end interface.
Device the most according to claim 8, it is characterised in that also include:
Primary topology file download module, for downloading primary topology file from specified services end;
Primary topology file memory module, for being stored in described primary topology file in described mobile device.
Device the most according to claim 9, it is characterised in that described primary topology file has the file identification of correspondence,
Described device also includes:
File store path acquisition module, for obtaining described primary topology file file storage road in described mobile device
Footpath;
Incidence relation sets up module, for setting up the incidence relation between described file identification and described file store path.
11. devices according to claim 10, it is characterised in that described client end interface has the program identification of correspondence,
Described topology data acquisition module includes:
Mark matched sub-block, for judging whether there is the files-designated mated with described program identification in described mobile device
Know;The most then call file store path and obtain submodule;
File store path obtains submodule, for obtaining the file store path that described file identification is corresponding;
Obtain primary topology file submodule, for obtaining corresponding primary topology file according to described file store path.
12. devices according to claim 8, it is characterised in that described primary topology file comprises described interface resources pair
The resource identification answered, described interface control generation module includes:
Resource identification obtains submodule, for obtaining the resource identification in described primary topology file;
Interface resources obtains submodule, for using described resource identification to obtain the interface money of correspondence from described mobile device
Source;
Interface resources arranges submodule, obtains interface control for arranging described interface resources according to described primary topology file.
13. devices according to claim 8, it is characterised in that described interface control layout modules includes:
Father's control arranges submodule, for arranging father's control in described client end interface according to described primary topology file;
Interface control adds submodule, for being added in described father's control by described interface control.
14. 1 kinds of mobile devices, it is characterised in that storage has the interface resources of client end interface, Yi Jike in a mobile device
The primary topology file at end interface, family, described mobile device includes:
Topology data acquisition module, for when showing client end interface, obtaining the primary topology file of described client end interface
And interface resources;
Interface control generation module, is used for using described primary topology file and described interface resources to generate interface control;
Interface control layout modules, for by described interface control according to described primary topology file layout to client end interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610630328.0A CN106250158A (en) | 2016-08-01 | 2016-08-01 | The layout method of a kind of client end interface, device and mobile device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610630328.0A CN106250158A (en) | 2016-08-01 | 2016-08-01 | The layout method of a kind of client end interface, device and mobile device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106250158A true CN106250158A (en) | 2016-12-21 |
Family
ID=57606410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610630328.0A Pending CN106250158A (en) | 2016-08-01 | 2016-08-01 | The layout method of a kind of client end interface, device and mobile device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106250158A (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106990950A (en) * | 2017-01-09 | 2017-07-28 | 深圳大宇无限科技有限公司 | The method and apparatus of interface layout |
CN107025294A (en) * | 2017-04-14 | 2017-08-08 | 百度在线网络技术(北京)有限公司 | Information acquisition method and device |
CN107391169A (en) * | 2017-06-09 | 2017-11-24 | 口碑控股有限公司 | The dynamic updating method and device of the Android page |
CN107656692A (en) * | 2017-09-22 | 2018-02-02 | 广东乐芯智能科技有限公司 | A kind of method of all touch screen intelligent watch subregion control |
CN107832088A (en) * | 2017-11-06 | 2018-03-23 | 青岛海信电器股份有限公司 | Control application method and device, computing device, computer-readable storage medium |
WO2018072634A1 (en) * | 2016-10-18 | 2018-04-26 | 腾讯科技(深圳)有限公司 | Application processing method and device |
CN107992305A (en) * | 2017-12-29 | 2018-05-04 | 广州酷狗计算机科技有限公司 | The layout method and device of function of application button |
CN108763311A (en) * | 2018-04-24 | 2018-11-06 | 广州视源电子科技股份有限公司 | Interface display method, device, intelligent interaction tablet and storage medium |
CN108829485A (en) * | 2018-06-25 | 2018-11-16 | 腾讯科技(深圳)有限公司 | Update method, device, storage medium and the computer equipment of application interface layout |
CN109408189A (en) * | 2018-11-02 | 2019-03-01 | 北京字节跳动网络技术有限公司 | Dynamic adjusting method, device, equipment and the medium of client end interface layout |
CN110221848A (en) * | 2019-04-23 | 2019-09-10 | 五八有限公司 | APP method for updating pages, device, electronic equipment and storage medium |
CN110865851A (en) * | 2019-11-18 | 2020-03-06 | 中国民航信息网络股份有限公司 | Automatic Android application data acquisition method and system |
CN110968312A (en) * | 2018-09-30 | 2020-04-07 | 北京奇虎科技有限公司 | Method and device for changing interface layout of application program |
CN112015507A (en) * | 2020-08-20 | 2020-12-01 | 北京达佳互联信息技术有限公司 | Application guide method and device |
CN112346961A (en) * | 2019-08-08 | 2021-02-09 | 北京车和家信息技术有限公司 | Debugging method and device for client |
CN113536174A (en) * | 2017-06-23 | 2021-10-22 | 创新先进技术有限公司 | Interface loading method, device and equipment |
CN114780198A (en) * | 2018-12-28 | 2022-07-22 | 创新先进技术有限公司 | Client screen adapting method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239044A (en) * | 2014-09-05 | 2014-12-24 | 北京航天自动控制研究所 | Dynamic generation method for graphical user interface |
CN104391725A (en) * | 2014-12-08 | 2015-03-04 | 畅捷通信息技术股份有限公司 | Page display method and page display device |
CN105760146A (en) * | 2014-12-16 | 2016-07-13 | 上海天脉聚源文化传媒有限公司 | User interface layout method and system |
-
2016
- 2016-08-01 CN CN201610630328.0A patent/CN106250158A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239044A (en) * | 2014-09-05 | 2014-12-24 | 北京航天自动控制研究所 | Dynamic generation method for graphical user interface |
CN104391725A (en) * | 2014-12-08 | 2015-03-04 | 畅捷通信息技术股份有限公司 | Page display method and page display device |
CN105760146A (en) * | 2014-12-16 | 2016-07-13 | 上海天脉聚源文化传媒有限公司 | User interface layout method and system |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018072634A1 (en) * | 2016-10-18 | 2018-04-26 | 腾讯科技(深圳)有限公司 | Application processing method and device |
US11269696B2 (en) | 2016-10-18 | 2022-03-08 | Tencent Technology (Shenzhen) Company Limited | Application processing method and apparatus |
US10831567B2 (en) | 2016-10-18 | 2020-11-10 | Tencent Technology (Shenzhen) Company Limited | Application processing method and apparatus |
CN106990950A (en) * | 2017-01-09 | 2017-07-28 | 深圳大宇无限科技有限公司 | The method and apparatus of interface layout |
CN107025294A (en) * | 2017-04-14 | 2017-08-08 | 百度在线网络技术(北京)有限公司 | Information acquisition method and device |
CN107025294B (en) * | 2017-04-14 | 2021-05-04 | 百度在线网络技术(北京)有限公司 | Information acquisition method and device |
CN107391169A (en) * | 2017-06-09 | 2017-11-24 | 口碑控股有限公司 | The dynamic updating method and device of the Android page |
CN113536174A (en) * | 2017-06-23 | 2021-10-22 | 创新先进技术有限公司 | Interface loading method, device and equipment |
CN107656692A (en) * | 2017-09-22 | 2018-02-02 | 广东乐芯智能科技有限公司 | A kind of method of all touch screen intelligent watch subregion control |
CN107832088A (en) * | 2017-11-06 | 2018-03-23 | 青岛海信电器股份有限公司 | Control application method and device, computing device, computer-readable storage medium |
CN107992305A (en) * | 2017-12-29 | 2018-05-04 | 广州酷狗计算机科技有限公司 | The layout method and device of function of application button |
CN108763311B (en) * | 2018-04-24 | 2020-04-03 | 广州视源电子科技股份有限公司 | Interface display method and device, intelligent interactive panel and storage medium |
CN108763311A (en) * | 2018-04-24 | 2018-11-06 | 广州视源电子科技股份有限公司 | Interface display method, device, intelligent interaction tablet and storage medium |
CN108829485A (en) * | 2018-06-25 | 2018-11-16 | 腾讯科技(深圳)有限公司 | Update method, device, storage medium and the computer equipment of application interface layout |
CN110968312A (en) * | 2018-09-30 | 2020-04-07 | 北京奇虎科技有限公司 | Method and device for changing interface layout of application program |
CN109408189A (en) * | 2018-11-02 | 2019-03-01 | 北京字节跳动网络技术有限公司 | Dynamic adjusting method, device, equipment and the medium of client end interface layout |
CN109408189B (en) * | 2018-11-02 | 2022-07-12 | 北京字节跳动网络技术有限公司 | Dynamic adjustment method, device, equipment and medium for client interface layout |
CN114780198A (en) * | 2018-12-28 | 2022-07-22 | 创新先进技术有限公司 | Client screen adapting method and device and electronic equipment |
CN110221848A (en) * | 2019-04-23 | 2019-09-10 | 五八有限公司 | APP method for updating pages, device, electronic equipment and storage medium |
CN112346961A (en) * | 2019-08-08 | 2021-02-09 | 北京车和家信息技术有限公司 | Debugging method and device for client |
CN110865851A (en) * | 2019-11-18 | 2020-03-06 | 中国民航信息网络股份有限公司 | Automatic Android application data acquisition method and system |
CN110865851B (en) * | 2019-11-18 | 2023-12-01 | 中国民航信息网络股份有限公司 | Automatic Android application data acquisition method and system |
CN112015507A (en) * | 2020-08-20 | 2020-12-01 | 北京达佳互联信息技术有限公司 | Application guide method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106250158A (en) | The layout method of a kind of client end interface, device and mobile device | |
CN110825362B (en) | Low-code application software development system and method | |
US7493594B2 (en) | System and method for designing component based applications | |
US8132149B2 (en) | System and method for applying development patterns for component based applications | |
US8407666B2 (en) | System and method for generating component based applications | |
US20200057620A1 (en) | Generation of dynamic software models using input mapping with feature definitions | |
US8006224B2 (en) | System and method for unified visualization of two-tiered applications | |
US7895566B2 (en) | System and method for building a deployable component based application | |
CN103617037B (en) | Development approach and web development system for web development system | |
US8086995B2 (en) | System and method for flexible visual representation of device fonts | |
US20060248121A1 (en) | System and method for supporting packaging, publishing and republishing of wireless component applications | |
CN106250128A (en) | The display processing method of user interface and device | |
US20060235928A1 (en) | System and method for creating a mapping document for binding messages between an application and an associated backend server | |
US20050114361A1 (en) | Method and apparatus for integrating data repositories and frameworks | |
CN101706720A (en) | Method for showing interface according to customized information during operation | |
CN103701909A (en) | Rapid generation method and system for video application | |
CA2676703A1 (en) | Automating construction of a data-source interface for component applications | |
CN103107919B (en) | A kind of Internet resources modeling method and system | |
CA2539134C (en) | System and method for designing component based applications | |
CA2538861C (en) | System and method for building a deployable component based application | |
CA2543898C (en) | System and method for unified visualization of two-tiered applications | |
CA2539047C (en) | System and method for generating component based applications | |
CN105867953A (en) | Application upgrading package generation method, application upgrading method and corresponding apparatuses | |
Markkula et al. | A generic architectural model approach for efficient utilization of patterns: application in the mobile domain | |
Miroiu et al. | Reactive-Based and Scalable-Driven Architecture for Mobile Development |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161221 |
|
RJ01 | Rejection of invention patent application after publication |