CN109117231A - The quick interface arrangement method of Android application, storage medium - Google Patents

The quick interface arrangement method of Android application, storage medium Download PDF

Info

Publication number
CN109117231A
CN109117231A CN201810933524.4A CN201810933524A CN109117231A CN 109117231 A CN109117231 A CN 109117231A CN 201810933524 A CN201810933524 A CN 201810933524A CN 109117231 A CN109117231 A CN 109117231A
Authority
CN
China
Prior art keywords
resource
interface
text
setting
library
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.)
Withdrawn
Application number
CN201810933524.4A
Other languages
Chinese (zh)
Inventor
刘德建
陈斌
郭玉湖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Tianquan Educational Technology Ltd
Original Assignee
Fujian Tianquan Educational Technology 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 Fujian Tianquan Educational Technology Ltd filed Critical Fujian Tianquan Educational Technology Ltd
Priority to CN201810933524.4A priority Critical patent/CN109117231A/en
Publication of CN109117231A publication Critical patent/CN109117231A/en
Withdrawn legal-status Critical Current

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 present invention provides the quick interface arrangement method of Android application, storage medium, and method includes: to create one to define the library for having the resource that can be provided, and each resource in library is externally provided with interface form respectively;Create the builder of each interface in a correspondence library;The interface of resource needed for successively being called from library by builder;Corresponding each interface called, creates corresponding resource, obtains the resource array of corresponding calling sequence storage;Method of construction is called, each resource in the resource array of sequentially contacting forms a character string, and be returned to developer.The present invention can simplify developer and show the logic at interface, the level for reducing topology file, reduce control quantity, final to realize the memory overhead for reducing application, promote the loading efficiency at interface, promote working efficiency.

Description

The quick interface arrangement method of Android application, storage medium
Technical field
The present invention relates to the interface layout fields of application, and in particular to the quick interface arrangement method of Android application, storage are situated between Matter.
Background technique
The interface layout of Android assumes responsibility for showing the responsibility at entire interface.In order to allow showing interface to obtain beautiful, specification, We will usually use many controls, such as various linear placement's containers on an interface layout (LinearLayout), relative placement's container (RelativeLayout), various button controls (Button), various text controls (TextView) etc..These controls have respective pattern and background etc., so we will make the interface of an application, usually In the case of first have to first make a topology file (layout.xml), control is placed above in topology file, for control be arranged Attribute and id;Then this topology file is used in GUI code;Then it is gone to find each control according to the id of control, finally Assignment etc. is carried out to these controls, is finally completed the production at an interface.
Above-mentioned traditional way is exactly directly to place control in topology file, but this can bring some problems:
1. a topology file is more complicated, control quantity is more, and memory brought by it, the expense in efficiency are bigger. One control has very more member variables, and in java system, memory headroom shared by an object is substantially dependent on The size that the number and its member variable of its member variable are taken up space.So layout is upper per more controls, can all increase Many memories;Control method findViewById is searched at interface simultaneously can bring the loss of performance.
2. as soon as bearing weight to developer's bring topology file is more complicated: being arranged when creation various Attribute and id also find these controls with findViewById method in GUI code and are operated;Once having any Modification is it is necessary to again at least two place modifications.
The interface layout of 3.Android has number of plies limitation, when interface too complex, it is possible to be more than limitation, throw It is abnormal out to cause to collapse.
Therefore, it is necessary to provide it is a kind of can be reduced Android application the interface layout number of plies and amount of space method, deposit Storage media.
Summary of the invention
The technical problems to be solved by the present invention are: provide it is a kind of can be reduced Android application the interface layout number of plies with The method of amount of space, storage medium can reduce the expense of application memory, promote the loading efficiency at interface.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention are as follows:
The quick interface arrangement method of Android application, comprising:
It creates one and defines the library for having the resource that can be provided, and each resource in library is externally mentioned with interface form respectively For;
Create the builder of each interface in a correspondence library;
The interface of resource needed for successively being called from library by builder;
Corresponding each interface called, creates corresponding resource, obtains the resource array of corresponding calling sequence storage;
Method of construction is called, each resource in the resource array of sequentially contacting forms a character string, and returned Back to developer.
Another technical solution provided by the invention are as follows:
A kind of computer readable storage medium is stored thereon with computer program, described program when being executed by processor, The step of can be realized the quick interface arrangement method of above-mentioned Android application.
The beneficial effects of the present invention are: make full use of Android system SpannableString, SpannableStringB Uilder provides powerful and abundant text editing function, and provides the characteristic of many primary Span resources;And Android uses Object-Oriented Programming Language java, " encapsulation and succession " characteristic of this language.The main think of of this programme Road is that the primary resource provided above-mentioned Android system is packaged and extends, and externally exposes simple, easy-to-use interface, makes out Originator can operate a large amount of primary and derivation resource, to realize using text by using a small number of concise methods Control replaces a large amount of other controls, can equally draw out the application interface layout effect in multiple spaces, many levels;And then simplify Developer shows the logic at interface, reduces the level of topology file, reduces control quantity, final to realize that the memory for reducing application is opened Pin promotes the loading efficiency at interface, promotes working efficiency.
Detailed description of the invention
Fig. 1 is the flow diagram of the quick interface arrangement method of Android of the present invention application;
Fig. 2 is the flow diagram of the embodiment of the present invention one;
Fig. 3 is the interfacial effect figure of the embodiment of the present invention three.
Specific embodiment
To explain the technical content, the achieved purpose and the effect of the present invention in detail, below in conjunction with embodiment and cooperate attached Figure is explained.
The most critical design of the present invention is: making full use of the characteristic and language of Android system SpannableString Encapsulation and inherited characteristics, realize that the application interface for replacing a large amount of other controls using text control is laid out.
Explanation of technical terms of the present invention:
Fig. 1 is please referred to, the present invention provides the Android quick interface arrangement method of application, comprising:
It creates one and defines the library for having the resource that can be provided, and each resource in library is externally mentioned with interface form respectively For;
Create the builder of each interface in a correspondence library;
The interface of resource needed for successively being called from library by builder;
Corresponding each interface called, creates corresponding resource, obtains the resource array of corresponding calling sequence storage;
Method of construction is called, each resource in the resource array of sequentially contacting forms a character string, and returned Back to developer.
Further, the interface for successively calling required resource from library by builder, later, further includes:
While calling interface, according to the Method type of institute's calling interface corresponding resource, corresponding parameter setting is carried out.
Seen from the above description, the Method type of corresponding called resource interface is different, and some also needs that money is arranged simultaneously The corresponding parameter in source, such as corresponding " addition text method " resource, it is also necessary to while institute's content of text to be added is set, and for " line feed method ", then do not need to carry out parameter setting.
Further, each interface that the correspondence is called, creates corresponding resource, specifically:
Corresponding each interface called directly creates corresponding resource according to its corresponding Method type, or combines Corresponding parameter setting creates corresponding resource.
Seen from the above description, the resource interface that each corresponding builder is called, system will all create corresponding Span resource obtains character string sequence so as to subsequent each resource of quickly contacting.
Further, the interface hides the specific implementation of corresponding resource.
Seen from the above description, the resource that the present invention defines only externally provides simple, easy-to-use interface for calling, and hidden The details realized is hidden, allows developer by using a small number of concise methods, operates a large amount of primary and derivation resource, Operation is realized to simplify, and is improved and is realized efficiency.
Further, the interface that required resource in library is successively called by builder, specifically:
Developer by builder, the interface of resource needed for successively being called from library with the mode of operation of text editing and according to According to the Method type of institute's calling interface corresponding resource, resource parameters are set, corresponding workflow is generated.
Seen from the above description, in a specific embodiment, developer can be by builder's channel, with text editing Mode obtains the workflow form for being arranged and being formed by the resource sequence called, and not only operation is efficient, but also each money called Source is cheer and bright, not easy to make mistakes convenient for confirmation.
Further, each interface that the correspondence is called creates corresponding resource, obtains corresponding calling sequence and deposits The resource array put, specifically:
After system receives the workflow, sequentially judge whether each resource therein can use primary Span resource solution Certainly;
If can, the primary Span resource of direct basis creates corresponding resource;
If cannot, corresponding resource is created according to the Span resource of extension according to effect corresponding to Current resource;
The resource array that the resource transfer sequence of corresponding workflow is stored is obtained, and is stored in memory.
Seen from the above description, in a specific embodiment, each resource in workflow will successively be judged, Resources can be used to solve, system directly uses Resources, cannot system by according to effect needed for developer, mention It realizes for the resource of extension, can be supported with effect needed for guaranteeing developer.
Further, resource includes addition text method, addition picture approach, setting text style method, line feed in library Callback method and setting self-defined control method are clicked in method, setting line space method, setting background method, setting;
The setting text style method includes setting whole style, the size that sets font, the color that sets font, is arranged often Capable indent, setting left-justify, Right Aligns, justified, setting background color are arranged italic, runic are arranged, is set as subscript And subscript.
Seen from the above description, the calling of various resources can be supported, to meet the need of diversified interface layout well It asks.
Further, further includes:
A topology file is created, and places a text control wherein;
The text control is obtained in GUI code;
After obtaining the character string, by the setting text method of the text control, the character string is assigned It is worth to the text control.
Seen from the above description, the realization of interface layout of the present invention has the advantages that operation is simple, is easily achieved, and significantly mentions The working efficiency of high interface layout.
Another technical solution provided by the invention are as follows:
A kind of computer readable storage medium is stored thereon with computer program, described program when being executed by processor, The step of can be realized the quick interface arrangement method of above-mentioned Android application.
It corresponds to those of ordinary skill in the art will appreciate that realizing all or part of the process in above-mentioned technical proposal, being can It is realized with instructing relevant hardware by computer program, the program can be stored in one and computer-readable deposit In storage media, the program is when being executed, it may include such as the process of above-mentioned each method.
Wherein, the storage medium can be disk, optical disc, read-only memory (Read-Only Memory, ) or random access memory (Random Access Memory, RAM) etc. ROM.
Embodiment one
Android system is provided powerful abundant by SpannableString, SpannableStringBuilder Text editing function, and provide many primary Span resources, as AbsoluteSizeSpan, ImageSpan, MetricAffectingSpan etc. etc..
But in the prior art, developer is to use these resources, firstly, it is necessary to know that system has these resources can With;Secondly, needing that know will be how with these resources, that is, the application method for learning these resources needs cost;Again, this A little resources are independent from each other, if developer is used in conjunction with these resources, difficulty is bigger.In addition, system Although these resources provided are abundant, but limited, if developer needs to extend some functions, it is necessary to these moneys The implementation in source has further understanding, but this often means that higher learning cost again, pays these learning costs For developer, it may might as well increase some control quantity.
The above-mentioned one of system performance utilized by the present embodiment, another system performance are as follows: what Android was used It is Object-Oriented Programming Language java, the characteristic of this language has " encapsulation and succession ".The main thought of this programme is to above-mentioned The primary resource that system provides is packaged and extends, and externally exposes simple, easy-to-use interface, allows developer by making With a small number of concise methods, a large amount of primary and derivation resource is operated.That is: interface hides the details realized, allows exploit person Member is absorbed in " what does ", rather than " how doing ".It is final realize text abundant can be carried out on a control, picture is compiled Volume, come allow a text control realize other multiple controls bandwagon effect purpose.
Referring to Fig. 2, the quick interface arrangement method that the Android of the present embodiment is applied, comprising:
S1: the resource (i.e. function, concrete function is referring to following embodiments two) that the present embodiment can provide is defined, and with interface Form provide, hide concrete implementation.Preferably, while a library is provided to store defined all resources.
S2: the present embodiment provides a builders, in order to which developer can carry out text editing in the form of workflow. So-called workflow refers to that developer can continuously call same or different in line code according to self-demand Interface method, while providing a variety of different parameters.
Specifically, providing with the mode of operation of text editing, the resource to be called sequentially is obtained from library and is connect Mouthful, and corresponding resource ginseng is arranged for individual resources needed while carrying out parameter setting in the Method type according to resource Number ultimately generates the workflow of the sequencing arrangement according to calling.
S3:Android system can judge it after the workflow for receiving developer's input, if original can be used What raw Span resource solved, internal system directly uses primary Span, such as developer to want to set up the size of text, is System directly uses AbsoluteSizeSpan;If what primary Span resource can not solve, internal system can be thought according to developer The effect wanted provides the Span resource of extension, to realize that the desired effect of developer, such as developer want line feed, system One WrapSpan can be provided.Certainly these details are unknowable for developer, they only need calling interface method i.e. It can.Specifically, the Span resource of extension is to be inherited out new class based on primary class according to demand, i.e., lead in new class The certain methods for rewriteeing parent are crossed, realize function more abundant.The step can pass through: corresponding required function, according to primary Span resource inherit and again go out extension Span resource.
S4: can create corresponding Span resource for each of the workflow of developer's input parameter, system, this A little resources can be by being sequentially stored in memory according to generation.
S5: terminating when developer once edits, i.e. a workflow input is completed, and issues to build to instruct and (calls and build The method of construction that person provides), system forms one for resource is concatenated by the sequence of generation again those of in memory before A character string sequence is supplied to developer.
S6: developer uses this character string sequence, completes interface rendering.
Embodiment two
The present embodiment is a kind of specific embodiment with embodiment based on same technical concept.
Firstly, developer needs to rely on library provided by embodiment one in the engineering of the present embodiment.
The library of developer's corresponding embodiment one creates a builder (builder), this builder is one and is based on Builder pattern interface in java design pattern, due to corresponding with above-mentioned library, and can provide more in library for developer A method, including but not limited to below-mentioned addition text method, the pattern method that sets font, line feed method, setting row Callback method, setting self-defined control method etc. are clicked in distance method, setting background method, setting.
Then, developer calls addition text method provided in library, addition text according to demand with the identity of builder This resource;Meanwhile system can save the text of developer's input (by the parameter setting of corresponding resource in corresponding interface method Realize), there are in memory.
Further, developer calls the pattern method that sets font (including the basis provided in library according to demand again Whole style is arranged in R.Style file, and set font size, and set font color, and the indent of every row is arranged, and setting is left right Together, Right Aligns, justified, setting background color are arranged italic, runic are arranged, is set as subscript, subscript), for last step The content of text of input adds pattern;Likewise, system will input text according to user and pattern is joined in these interface methods Number, successively creates corresponding resource, is placed in an array.
Further, the line feed method that developer calls library to provide, setting line feed;System continues to add in the interface method Array is added in the resource for adding line feed used.
Further, developer call library provide setting line space method, setting next line text with it is currently entered The spacing of text;System continues to add resource used in specified line space in the interface method, and array is added.
Further, developer calls library to provide setting background method, for the specified background of specified region setting;System Continue resource required for addition setting Background in the interface method, array is added.
Further, the method that readjustment is clicked in the setting that developer calls library to provide, is arranged the point of text currently entered Hit event;System continues resource required for addition setting click event in the interface method, and array is added.
Further, the self-defined control method that developer calls library to provide is intended to draw customized control in specified region Part;System continues resource required for adding self-defined control in the interface method, and array is added.
Further, developer can repeat the invocation step of above-mentioned specified interface method according to demand, can be one Text control presets multiline text, shows different patterns, and can arbitrarily adjust indent, spacing, the alignment thereof of text, can Any background is set, draws arbitrary graphic for arbitrary region etc., without using multiple text controls and linear, relative placement The combination of container.
Finally, developer calls method of construction after completing required all method calls and parameter input, to System, which issues, builds instruction.
Further, system can be stored in owning in array constructing before after receiving construction instruction Resource be concatenated, formed a complete character string (CharSequence), be supplied to developer.
Further, developer passes through the character string got the setting text method (setText ()) of text control, It is assigned to the text control that will show interface content, finally realizes that a text control substitutes the combined mesh of multiple controls 's.
The present embodiment the utility model has the advantages that firstly, take full advantage of the included SpannableString of android system, The primary characteristic of SpannableStringBuilder, and its function is expanded, allow to ideally according to demand Rendering text, picture, self-defined control support line feed, retraction, click event etc., so as in a control painted on top Out multiple controls, many levels effect.On this basis, it can simplify the logic that developer shows interface, reduce layout text The level of part reduces control quantity, and then reduces the memory overhead of application, promotes the loading efficiency at interface, promotes working efficiency.
Secondly, edit mode of the present embodiment using workflow, can allow developer to carry out in line code whole The rendering at a interface;Method rather than traditional interface exploitation is such, finds a control, is once rendered, there is multiple controls Part is it is necessary in multiple place codings.
Embodiment three
The present embodiment is based on embodiment one and embodiment two, and one provided is specifically with scene:
Demand: developer wants to obtain the effect picture at some interface of Android application as shown in Figure 3.
From effect picture, there is button, there is the text of different location, different fonts, different colours, there is complicated spider web Figure, there is table.If rendering mode using traditional interface layout, multiple linear (or opposite) layout containers are needed, Multiple text controls, there are also button controls, and different backgrounds is arranged for different controls.But it if is provided using invention Method, then only need a text control, can save a large amount of topology file code, interface realizes code also than traditional Literary style is reduced.
The specific implementation process is as follows:
1. developer is based on library provided by the invention and builder, when carrying out application interface exploitation according to upper figure, create first Build a topology file layout.xml;And a text control TextView is only placed in topology file.
2. further, developer gets corresponding text control in GUI code.
3. further, developer obtains a builder (Builder) of the invention, prepares creation and renders for interface Character string.
4. further, developer calls the addition picture approach of this programme, addition one by the builder that step 3 obtains The picture of the return push-button in the upper left corner in a such as figure, system can generate a primary ImageSpan and be put into array at this time;Immediately For return push-button picture add click event, make the picture click after terminate the interface, system can generate an original at this time Raw ClickSpan, with being put into array behind the ImageSpan that generates in front.As it was noted above, these Span resources are Sequence storage, it is not repeated below.
5. further, developer calls the addition text method of this programme, addition text by the builder that step 3 obtains This " cause growth ", and and then call be arranged text style method, the color to be set font according to effect picture, size, background, Align center, system can generate the StyleSpan of an extension at this time, be stored in array.
6. further, developer calls the setting background method of this programme by the builder that step 3 obtains, for upper figure Middle title bar region adds background, and system can generate the BackgroundSpan of an extension at this time, is stored in array.
7. further, developer calls the line feed method of this programme, at this time system meeting by the builder that step 3 obtains The WrapSpan of an extension is generated, array is stored in.
8. further, developer calls the addition text method of this programme, addition text by the builder that step 3 obtains This " current life is made: Zhang San male (demonstration) ", and speed up calling setting text style method, the face to set font according to effect picture Color, size, system can generate the StyleSpan of an extension at this time, be stored in array.
9. further, developer calls the line feed method of this programme, at this time system meeting by the builder that step 3 obtains The WrapSpan of an extension is generated, array is stored in.
10. further, developer calls the addition text method of this programme, addition by the builder that step 3 obtains Text " lunar calendar: early in August in Gengchen year in eight first Shen month third third of the twelve Earthly Branches day ", and calling setting text style method is speeded up, it is set according to effect picture Color, the size of font are set, system can generate the StyleSpan of an extension at this time, be stored in array.
11. further, developer calls the line feed method of this programme by the builder that step 3 obtains, at this time system The WrapSpan of an extension can be generated, array is stored in.
12. further, developer calls the addition text method of this programme, addition by the builder that step 3 obtains Text " Gregorian calendar: on September 5th, 2000 ", and calling setting text style method is speeded up, the color to be set font according to effect picture, Size, system can generate the StyleSpan of an extension at this time, be stored in array.
13. further, developer calls the line feed method of this programme by the builder that step 3 obtains, and and then adjusts With the setting line space method of this programme, " fate information " text and lastrow text " Gregorian calendar 2000 9 are set according to effect picture The distance between moon 5 ", system can generate the SpacingSpan of an extension at this time, be stored in array.
14. further, developer calls the addition text method of this programme, addition by the builder that step 3 obtains Text " fate information ", and calling setting text style method is speeded up, the color to be set font according to effect picture, size, at this time System can generate the StyleSpan of an extension, be stored in array.
15. further, developer calls the line feed method of this programme by the builder that step 3 obtains, at this time system The WrapSpan of an extension can be generated, array is stored in.
16. further, developer calls the addition self-defined control side of this programme by the builder that step 3 obtains Method, spider web figure and text are drawn in fate information centered beneath position in figure, and system can generate an extension at this time CustomViewSpan is stored in array.
17. further, developer calls the line feed method of this programme by the builder that step 3 obtains, at this time system The WrapSpan of an extension can be generated, array is stored in.
18. further, developer calls the addition text method of this programme, addition by the builder that step 3 obtains Text " eight words order disk ", and calling setting text style method is speeded up, the color to be set font according to effect picture, size, at this time System can generate the StyleSpan of an extension, be stored in array.
19. further, developer calls the line feed method of this programme by the builder that step 3 obtains, at this time system The WrapSpan of an extension can be generated, array is stored in.
20. further, developer calls the addition self-defined control side of this programme by the builder that step 3 obtains Method, eight words order the position that keeps left below disk and draw table and text in figure, and system can generate an extension at this time CustomViewSpan is stored in array.
21. further, developer calls the line feed method of this programme by the builder that step 3 obtains, at this time system The WrapSpan of an extension can be generated, array is stored in.
22. further, developer calls the addition text method of this programme, addition by the builder that step 3 obtains Text " most suitable developing direction and industry ", and calling setting text style method is speeded up, it is set font according to effect picture Color, size, system can generate the StyleSpan of an extension at this time, be stored in array.
23. further, developer calls the line feed method of this programme by the builder that step 3 obtains, at this time system The WrapSpan of an extension can be generated, array is stored in.
24. further, developer calls the addition text method of this programme, addition by the builder that step 3 obtains Text " most suitable industry: service trade ", and speed up calling setting text style method, the face to set font according to effect picture Color, size, system can generate the StyleSpan of an extension at this time, be stored in array.
25. further, developer calls the method for construction of this programme by the builder that step 3 obtains, and system can handle All Span take out in array, and sequential series return to a character string to developer.
26. obtained character string is arranged to step 1 finally, developer calls the setting text method of text control With 2 accessed by text control, so far realize Android application interface corresponding diagram effect interface layout.
Example IV
The present embodiment is corresponding to embodiment three with above-described embodiment one, provides a kind of computer readable storage medium, thereon It is stored with computer program, described program can be realized above-described embodiment one or embodiment two or real when being executed by processor Apply all steps that the quick interface arrangement method of the Android application of the offer of example three is included.Specific steps are stated without tired herein, The record of embodiment one to embodiment three is please referred in detail.
In conclusion the quick interface arrangement method of Android application provided by the invention, storage medium, can simplify exploitation Person shows the logic at interface, the level for reducing topology file, reduces control quantity, final to realize the memory overhead for reducing application, The loading efficiency at interface is promoted, working efficiency is promoted.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalents made by bright specification and accompanying drawing content are applied directly or indirectly in relevant technical field, similarly include In scope of patent protection of the invention.

Claims (9)

  1. The quick interface arrangement method of 1.Android application characterized by comprising
    It creates one and defines the library for having the resource that can be provided, and each resource in library is externally provided with interface form respectively;
    Create the builder of each interface in a correspondence library;
    The interface of resource needed for successively being called from library by builder;
    Corresponding each interface called, creates corresponding resource, obtains the resource array of corresponding calling sequence storage;
    Method of construction is called, each resource in the resource array of sequentially contacting forms a character string, and be returned to Developer.
  2. 2. the quick interface arrangement method of Android as described in claim 1 application, which is characterized in that it is described by builder from The interface of resource needed for successively being called in library, later, further includes:
    While calling interface, according to the Method type of institute's calling interface corresponding resource, corresponding parameter setting is carried out.
  3. 3. the quick interface arrangement method of Android application as claimed in claim 2, which is characterized in that the correspondence was called Each interface creates corresponding resource, specifically:
    Corresponding each interface called directly creates corresponding resource according to its corresponding Method type, or combines and correspond to Parameter setting, create corresponding resource.
  4. 4. the quick interface arrangement method of Android application as described in claim 1, which is characterized in that the interface, which is hidden, to be corresponded to The specific implementation of resource.
  5. 5. the quick interface arrangement method of Android as described in claim 1 application, which is characterized in that it is described by builder according to The interface of required resource in secondary calling library, specifically:
    Developer is by builder, the interface of resource needed for successively being called from library with the mode of operation of text editing and according to institute The Method type of calling interface corresponding resource is arranged resource parameters, generates corresponding workflow.
  6. 6. the quick interface arrangement method of Android application as claimed in claim 5, which is characterized in that the correspondence was called Each interface creates corresponding resource, obtains the resource array of corresponding calling sequence storage, specifically:
    After system receives the workflow, sequentially judge whether each resource therein can be solved with primary Span resource;
    If can, the primary Span resource of direct basis creates corresponding resource;
    If cannot, corresponding resource is created according to the Span resource of extension according to effect corresponding to Current resource;
    The resource array that the resource transfer sequence of corresponding workflow is stored is obtained, and is stored in memory.
  7. 7. the quick interface arrangement method of Android application as described in claim 1, which is characterized in that resource includes addition in library Text method, addition picture approach, setting text style method, line feed method, setting line space method, setting background method, Callback method and setting self-defined control method are clicked in setting;
    The setting text style method includes setting whole style, the size that sets font, the color that sets font, the every row of setting Indent, setting left-justify, Right Aligns, justified, setting background color, italic is set, runic is set, be set as subscript and under Mark.
  8. 8. the quick interface arrangement method of Android application as described in claim 1, which is characterized in that further include:
    A topology file is created, and places a text control wherein;
    The text control is obtained in GUI code;
    After obtaining the character string, by the setting text method of the text control, the character string is assigned to The text control.
  9. 9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed When device executes, the step of the quick interface arrangement method of the application of Android described in the claims 1-8 any one can be realized Suddenly.
CN201810933524.4A 2018-08-16 2018-08-16 The quick interface arrangement method of Android application, storage medium Withdrawn CN109117231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810933524.4A CN109117231A (en) 2018-08-16 2018-08-16 The quick interface arrangement method of Android application, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810933524.4A CN109117231A (en) 2018-08-16 2018-08-16 The quick interface arrangement method of Android application, storage medium

Publications (1)

Publication Number Publication Date
CN109117231A true CN109117231A (en) 2019-01-01

Family

ID=64852698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810933524.4A Withdrawn CN109117231A (en) 2018-08-16 2018-08-16 The quick interface arrangement method of Android application, storage medium

Country Status (1)

Country Link
CN (1) CN109117231A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375733A (en) * 2010-08-24 2012-03-14 北大方正集团有限公司 Convenient and quick interface arrangement method
KR101368044B1 (en) * 2011-09-23 2014-02-27 주식회사 엘지씨엔에스 Plug­in module based on eclipse platform
CN104317949A (en) * 2014-11-06 2015-01-28 北京德塔普博软件有限公司 Extraction method, device and system of document fragments
CN106371844A (en) * 2016-08-31 2017-02-01 北京奇艺世纪科技有限公司 Method and system for presenting webpage by native user interface assembly
CN107085567A (en) * 2017-04-25 2017-08-22 深圳铂睿智恒科技有限公司 The control method and system of Intelligent terminal data layout display
CN108052589A (en) * 2017-12-11 2018-05-18 福建中金在线信息科技有限公司 The method, apparatus and storage medium of a kind of text exhibition

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375733A (en) * 2010-08-24 2012-03-14 北大方正集团有限公司 Convenient and quick interface arrangement method
KR101368044B1 (en) * 2011-09-23 2014-02-27 주식회사 엘지씨엔에스 Plug­in module based on eclipse platform
CN104317949A (en) * 2014-11-06 2015-01-28 北京德塔普博软件有限公司 Extraction method, device and system of document fragments
CN106371844A (en) * 2016-08-31 2017-02-01 北京奇艺世纪科技有限公司 Method and system for presenting webpage by native user interface assembly
CN107085567A (en) * 2017-04-25 2017-08-22 深圳铂睿智恒科技有限公司 The control method and system of Intelligent terminal data layout display
CN108052589A (en) * 2017-12-11 2018-05-18 福建中金在线信息科技有限公司 The method, apparatus and storage medium of a kind of text exhibition

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
带心情去旅游: "《【Android】强大的SpanableStringBuilder: https://www.jianshu.com/p/f004300c6920?mType=Group》", 4 December 2017 *
想你依然心痛: "《Android实现加载富文本以及SpannableString、SpannableStringBuilder实现部分文字可以点击,更换颜色:http://events.jianshu.io/p/88cbf14e5a3e》", 7 December 2017 *

Similar Documents

Publication Publication Date Title
US20220083730A1 (en) Methods and systems for providing selective multi-way replication and atomization of cell blocks and other elements in spreadsheets and presentations
CN105487864A (en) Method and device for automatically generating code
CN106843904A (en) Interface Dynamic Distribution method and its system
CN107402775A (en) Generation method, the device and system of webpage
CN107391474B (en) Business card editing method, server and computer readable storage medium
CN1258417A (en) Decoupling service creation environment from service logic execution environment
CN109783083A (en) WEB application development approach and its system
CN109446492A (en) Method for maintaining consistency of document editing data
CN110110985A (en) A kind of record of production method and recording device
CN110727969A (en) Method, device and equipment for automatically adjusting workflow and storage medium
CN112308939A (en) Image generation method and device
CN104656543A (en) PLC gradient diagram matrix editing display method
CN106096159B (en) A kind of implementation method of distributed system behavior simulation analysis system under cloud platform
CN113918140A (en) System construction method for generating front-end and back-end codes based on dragging mode
DE102004035514A1 (en) Telecommunications graphics utility
CN109117231A (en) The quick interface arrangement method of Android application, storage medium
CN113190478A (en) GPIO (general purpose input/output) efficient configuration method, system and medium
KR20180135654A (en) Intuitive method of making a program
CN116958293A (en) Flow chart drawing system for planning optimization software
EP1978452A1 (en) Integrated displaying method and system for demo files
CN101814064A (en) Establishment method of report template, report generation method and report system
CN110096688A (en) A kind of production process recording method and device based on flow chart and table
CN107220273A (en) A kind of cartoon character face searching method
US20050010903A1 (en) Method for creating a data processing program
CN112604277B (en) GUI quick repeated engraving production method based on mobile phone game

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190101

WW01 Invention patent application withdrawn after publication