CN108197183A - A kind of control layout based on Android application recommends method and its system - Google Patents
A kind of control layout based on Android application recommends method and its system Download PDFInfo
- Publication number
- CN108197183A CN108197183A CN201711425492.9A CN201711425492A CN108197183A CN 108197183 A CN108197183 A CN 108197183A CN 201711425492 A CN201711425492 A CN 201711425492A CN 108197183 A CN108197183 A CN 108197183A
- Authority
- CN
- China
- Prior art keywords
- control
- layout
- cluster
- keyword
- scoring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000000605 extraction Methods 0.000 claims abstract description 30
- 238000013139 quantization Methods 0.000 claims abstract description 9
- 238000013480 data collection Methods 0.000 claims description 20
- 238000012545 processing Methods 0.000 claims description 20
- 239000004744 fabric Substances 0.000 claims description 9
- 239000000126 substance Substances 0.000 claims description 8
- 238000002224 dissection Methods 0.000 claims description 6
- 238000007781 pre-processing Methods 0.000 claims description 6
- 239000000284 extract Substances 0.000 claims description 2
- 238000013461 design Methods 0.000 description 20
- 238000011161 development Methods 0.000 description 6
- 238000009826 distribution Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000003860 storage Methods 0.000 description 3
- 238000010438 heat treatment Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 235000000332 black box Nutrition 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000005111 flow chemistry technique Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 238000011002 quantification Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/9038—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a kind of space layouts based on Android application to recommend method and its system.Wherein, this method includes:The data set of dynamic interface, is parsed, extraction process when obtaining operation, and index is established after obtaining spatial database;Matching retrieval, extraction, sliding-model control are carried out to the keyword that user provides, obtain alternate layout scheme;It scores alternate layout scheme, is laid out accordingly to user according to from high to low recommendation of scoring.Implement the embodiment of the present invention, realize the method for representativeness and stability that quantization control layout is recommended, so that user has clearer understanding to the result of recommendation, recommends have better booster action to designer with frequency compared with only according to two indices and comprehensive score.
Description
Technical field
The present invention relates to information identifying processing, Android application, layout recommended technology field more particularly to one kind to be based on Android
The control layout of application recommends method and its system.
Background technology
Mobile Internet fast development after, mobile application be increasingly becoming people it is daily needed for, wherein Android application accounts for
The significant proportion in mobile application market.It quickly generates using prototype, promoting development efficiency becomes the demand of many development teams.
In Android application and development, interface directly affects the interactive experience of user, therefore generally requires the participation of designer.
The development environment of such as Android Studio provides the interface development mode of " towed " at present, only control need to be dragged to picture
Some position of cloth, corresponding code will automatically generate.This causes the designer of no encoding knowledge that can also quickly generate boundary
Face.The mass data of the market accumulation of the Android application of Android platform provides ginseng to Android using designer and developer
The possibility examined.But obtain cases of design and be a time-consuming process, therefore one kind is based on according to analysis of cases trend
The control layout recommendation of data can reduce designer and collect case and analyze the time of data, and designer is allowed to be absorbed in
Generation and the process of tissue inspiration.
Automatic currently for interface data crawls and management platform, has the searching platform for establishing webpage design, by right
The parsing of webpage is crawled, generates the resources bank about webpage design, and provide the inquiry API based on JSOND.Also for peace
The searching platform of the interface of Zhuo Yingyong.Has researcher it is also proposed that the method for statistical analysis, is provided to designer trends
Understand, design decision auxiliary is provided for user-interface design personnel.Analysis for interface data makes in being applied about Android
With the analysis of the combination of the highest control of frequency and control, the interface complexity and download of application and the relationship of scoring, if
Variation tendency of the meter pattern in version updating.
The layout of control is recommended at present there are two types of method, the first is based on model, and second is based on data.Base
Control layout effect is recommended mainly to be influenced by the design specification selected in the method for model, the design model comparision of embodiment is single,
And for how to select design criteria that designer is needed to have abundant design experiences or priori, for inexperienced
Beginner using difficulty it is higher.Method based on data recommends control layout mainly to be influenced by the data collected, by setting
Filter condition is put, only collects the application of user feedback preferably, then the design pattern finally embodied from data is by market certification
, degree of recognition is higher.And these design patterns are currently received by user, meet user's use habit.
Method based on model is generally basede on the thought of object-oriented, according to the required function of system and is related to personnel's characteristic
Establish the succession system for establishing class and the behavior that each class is represented by defined attribute or method.It is built in system model
On the basis of good, the required interface control defined and corresponding function are mapped out, then using expert or human-computer interaction society
The design guidance of area definition is as heuristic rule automatically to control layout.
It is the recommendation based on history design preference that method based on data, which is, does not consider the input of designer individual's preference
In the case of, basic method is based on the higher thought of visibility of the good layout in market, counts given layout control not
With the frequency of occurrences of position, the top n position of frequency most is selected as recommendations.Therefore the present invention uses the side based on data
Method recommends control layout.
The design model comparision that method based on model embodies is single, and for design criteria how to be selected to need to design
Personnel have abundant design experiences or priori, higher using difficulty for inexperienced beginner.Currently based on number
According to method recommend the layout of control that the basic frequency information in data the inside is only utilized, can not solve the problems, such as three, first
Problem is can not to solve multiple homogeneys for recommending layout, the consistent design idea in the very similar general source of layout, but because
It is considered as different schemes for nuance, then essence is that same suggested design occupies multiple recommendations, is recommended
Diversity reduce;Second Problem is the representativeness that can not judge to recommend to be laid out, the frequency distance between recommendation is laid out
Less, the recommendation results of highest frequency are not necessarily representative;Third problem is can not to judge that control recommends the reliable of layout
Property, if be laid out using the highest layout of the frequency of occurrences as the recommendation of control, situation similar in frequency of the control in different layouts
Under, the result of recommendation may be because that the randomness for collecting data is unstable.
Invention content
It is an object of the invention to overcome the deficiencies in the prior art, and the present invention provides a kind of controls based on Android application
Recommendation method and its system are laid out, for being scored topology data and being sorted to obtain the recommendation layout of top N.For this purpose, this
Technical problem to be addressed by invention includes how to increase interface data processing the efficiency recommended, what quantification of targets cloth is selected
How the representativeness and stability of office's scheme solve the problems, such as to recommend layout homogeney.
To solve the above-mentioned problems, the present invention proposes a kind of control layout recommendation method applied based on Android, described
Method includes:
The data set of dynamic interface, is parsed, extraction process when obtaining operation, and rope is established after obtaining spatial database
Draw;
Matching retrieval, extraction, sliding-model control are carried out to the keyword that user provides, obtain alternate layout scheme;
It scores alternate layout scheme, is laid out accordingly to user according to from high to low recommendation of scoring.
Preferably, it is described parsed, extraction process specifically includes:
Separate unit interface data collection when obtaining operation, carries out dissection process, and extraction obtains the attribute of all controls;
Parsing classification processing is carried out to the attribute of all controls, extraction obtains control text message, control type, control cloth
The relevant control property of office;
Keyword is extracted to control text message, the search key as control property database;
To the control of no text message, then control type is taken as search key;
It is also possible to control type and the keyword of control text message is taken to be combined as search key;
Control property searching database is formed with reference to three kinds of situations, establishes corresponding index.
Preferably, the keyword that extracted to control text message is the text using LDA models to all controls
Information modeling, so as to obtain the distribution of the keyword in theme, the theme then being had according to text is higher from wherein selection frequency
Several keywords as retrieval control keyword index.
Preferably, the keyword provided user carries out matching retrieval, extraction, sliding-model control specifically include:
The description type keyword of target widget type or control text message keyword are provided according to user, passes through matching
Control property searching database carries out retrieving corresponding index, obtains the topology data collection about target widget;
Sliding-model control is carried out to the topology data collection of target widget, layout gathering is obtained and closes, it is as standby to be each laid out cluster
Select placement scheme;
Preferably, the topology data collection to target widget carries out sliding-model control, is mainly calculated using DBSCAN clusters
Field radius is set as 10, density 1 by method.Similar target widget topology data is clustered, and gathering for a kind of mesh
It marks control layout data subset to be known as being laid out cluster, the layout mean value of layout cluster is then updated to the cloth of all samples in this cluster
Thus office is same layout scenarios very similar target widget topology data sample stipulations, so as to reach to cloth inning
According to the purpose of collection sliding-model control.
Preferably, the layout gathering of acquisition is closed intuitively shows user to see by thermodynamic chart, wherein, target widget
One layout represents that the perimeter of this rectangle frame is exactly the number of the pixel occupied by it, pixel with a rectangle frame
Brightness reflects the frequency of the rectangle frame repeated in the pixel, if some region in figure is brighter, illustrates to select
The layout for selecting the region is more frequent.
Preferably, it is described to score alternate layout scheme, it is laid out accordingly to use according to from high to low recommendation of scoring
Family specifically includes:
Alternate layout scheme is obtained, quantum chemical method processing is carried out, obtains the scoring of the alternate layout scheme;
The scoring of each alternate layout scheme is obtained, each alternate layout scheme is arranged from high to low according to its scoring
Sequence obtains several preceding alternate layout schemes and recommends user.
Preferably, it is described to carry out the scoring side that quantum chemical method processing is the representativeness and stability that use quantization placement scheme
Method.Use LARepresent the layout (x, y, h, w) of target widget A, wherein, x, y are target widget A coordinates, and h, w are target widget A's
Length and width.This is a four-dimensional stochastic variable,Represent LALayout cluster sample set.Layout cluster after cluster isA subset, use aiIt represents.S is represented and aiAll gatherings of overlapping are closed.apExpression and aiQuantity in all clusters of overlapping
Maximum cluster.E(ai) represent aiThe average layout of cluster, Min (| ais|) represent S in cluster quantity minimum value, Max (| ais|) table
Show the maximum value of the quantity of cluster in S, then cluster aiHigh-lighting CSiIt can be calculated by following mode:
CSi=(| ap|-Min (| ais|))/Max (| ais|)-Min (| ais|)
Preferably, it is described to carry out the scoring side that quantum chemical method processing is the representativeness and stability that use quantization placement scheme
The measurement stability reciprocal measured in method by comentropy.PiRepresent the sample number of the frequency of occurrences, the i.e. cluster of some layout cluster
Amount accounts for the ratio of total layout sample set.The configuration stability H of target widget is calculated in the following manner:
H=1/ ∑s Pi*logPi
For some layout cluster, local high-lighting is higher, and overall randomness is lower, then more representative, and scoring should
This is higher, therefore final scoring formula is as follows:
Score=CSi+H
Correspondingly, the present invention proposes a kind of space layout commending system applied based on Android, the system comprises:
Preprocessing module, the data set of dynamic interface, is parsed, extraction process when being run for obtaining;
Module is retrieved, the keyword for providing user carries out matching retrieval, extraction, sliding-model control;
Grading module, for carrying out scoring processing to alternate layout scheme;
Recommending module, for being laid out accordingly to user according to from high to low recommendation of scoring.
Preferably, the system also includes display modules, straight by thermodynamic chart for closing the layout gathering after discretization
User is showed to see with seeing.
Preferably, the preprocessing module includes:
Resolution unit, separate unit interface data collection when being run for obtaining carry out dissection process, and extraction obtains all controls
Attribute;
Taxon, for carrying out parsing classification processing to the attribute of all controls, extraction obtains control text message, control
The relevant space attribute of part type, control layout;
Keyword unit is extracted, for extracting keyword to control text message, as space attribute database
Search key;
Indexing units are established, for combining control text message, control type, three kinds of the relevant space attribute of control layout
Situation forms control property searching database, establishes corresponding index.
In embodiments of the present invention, the method for representativeness and stability that quantization control layout is recommended is realized so that use
There is clearer understanding at family, compared with only with frequency recommendation to design according to two indices and comprehensive score to the result of recommendation
Personnel have better booster action.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is that a kind of control layout applied based on Android of the embodiment of the present invention recommends the flow diagram of method;
Fig. 2 is that target widget is distributed showing for the distribution heating power after original heating power schematic diagram and cluster in the embodiment of the present invention
It is intended to;
Fig. 3 is a kind of structure composition signal of control layout commending system applied based on Android of the embodiment of the present invention
Figure.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is that a kind of control layout applied based on Android of the embodiment of the present invention recommends the flow diagram of method, such as
Shown in Fig. 1, this method includes:
S1, the data set of dynamic interface, is parsed, extraction process when obtaining operation, is established after obtaining spatial database
Index;
S2 carries out matching retrieval, extraction, sliding-model control to the keyword that user provides, obtains alternate layout scheme;
S3 scores to alternate layout scheme, is laid out accordingly to user according to from high to low recommendation of scoring.
S1 further comprises:
S11, separate unit interface data collection when obtaining operation carry out dissection process, and extraction obtains the attribute of all controls;
S12, carries out the attribute of all controls parsing classification processing, and extraction obtains control text message, control type, control
Part is laid out relevant control property;
S13 extracts keyword, the search key as control property database to control text message;
To the control of no text message, then control type is taken as search key;
It is also possible to control type and the keyword of control text message is taken to be combined as search key;
S14 forms control property searching database with reference to three kinds of situations, establishes corresponding index.
Specifically, the data set of dynamic interface derives from the uniform velocity traveling circle obtained from Black-box Testing when being run described in S1
The data in face, including:The attribute of the instant sectional drawing of dynamic interface, the hiberarchy data at interface, each control during operation.
Parsing classification processing is carried out described in S12 to control property, is largely divided into two classes:
One kind be with the relevant attribute of control function, including the type of control, for example, common button,
Textview, the property clicked of control, control visibility, control content of text etc.;Since the type of control generally determines control
The property clicked and visibility of part, therefore we establish index using control type and text message for control.
One kind be with the relevant space attribute of control layout, including coordinate, length and width.
In a particular embodiment, the class name combination for the property that usually has levels from the control type name collected during operation, example
Such as " androidwidgetButton ", last class name can represent the type and function of control, for the ease of storage and
Retrieval, takes last class name and small letter is turned to the types index of control.The text of control is usually short text, frequently even
Only there are one word, therefore a small amount of several keywords are enough to express the semantic information of control.
It is the text envelope using LDA models to all controls to extract keyword described in S13 to control text message
Breath modeling, so as to obtain the distribution of the keyword in theme, the theme then being had according to text is higher from wherein selection frequency
Keyword index of several keywords as retrieval control.
S2 further comprises:
S21 provides the description type keyword of target widget type or control text message keyword according to user, passes through
Matching control property searching database carries out retrieving corresponding index, obtains the topology data collection about target widget;
S22 carries out sliding-model control to the topology data collection of target widget, obtains layout gathering and closes, and each cluster that is laid out is
For alternate layout scheme;
The control retrieved corresponding to corresponding index described in S21 by the way that control property searching database is matched to carry out is
The target widget that user seeks.After retrieval, the topology data of every record is extracted, forms the topology data of target widget
Collection.
Sliding-model control is carried out to the topology data collection of target widget described in S22, mainly utilizes DBSCAN clustering algorithms,
In order to which Clustering Effect is more compact, it is 10 that we, which set field radius, density 1.Wherein, the radius of neighbourhood determines that each point is found
With the range of cluster, density determines whether the topology data collection sample territory of a target widget can be considered as a cluster class, i.e.,
Form the topology data collection sample size threshold value of the target widget of cluster.Depending on the two parameters are needed because of specific sample data, but
Principle exactly cannot be any one data when noise filtering is fallen, therefore the parameter of density should be relatively low there are one being, base then will
Density is set as 1.In addition to the effect of cluster is compact, the radius of neighborhood should set relatively low, then be set as 10.
Similar target widget topology data is clustered, and is called gathering for a kind of target widget topology data subset
Cluster is laid out, the layout mean value of layout cluster is then updated to the layout of all samples in this cluster, thus very similar mesh
It is same layout scenarios to mark control layout data sample stipulations, so as to achieve the purpose that topology data collection sliding-model control.
Further, the layout gathering obtained through S22 is closed intuitively shows user to see by thermodynamic chart, wherein, target
One layout of control represents that the perimeter of this rectangle frame is exactly the number of the pixel occupied by it with a rectangle frame, as
The brightness of vegetarian refreshments reflects the frequency of the rectangle frame repeated in the pixel, if as shown in Fig. 2, some area in figure
Domain is brighter, and the layout for illustrating to select the region is more frequent.
S3 further comprises:
S31 obtains alternate layout scheme, carries out quantum chemical method processing, obtains the scoring of the alternate layout scheme;
S32 obtains the scoring of each alternate layout scheme, according to its scoring from high to low to each alternate layout scheme into
Row sequence obtains several preceding alternate layout schemes and recommends user.
Wherein, it is the scoring using the representativeness and stability of quantization placement scheme that quantum chemical method processing is carried out described in S31
Method.The representativeness of quantization placement scheme is to solve according to similar in highest frequency recommends layout that can not judge the frequency of occurrences
In the case of the layout of highest frequency whether have representative problem.Representativeness is embodied in certain layouts and is focusing specifically on an area
Domain, and the frequency of occurrences is higher.We are by the use of local distribution high-lighting as representative measurement.Consider local distribution high-lighting
Be because usually there is the situation of several cluster nestings in a region in the different layouts of control, if in a region,
In a cluster it is very big with respect to other number of clusters amount superiority, illustrate more representative in this region.
Use LARepresent the layout (x, y, h, w) of target widget A, wherein, x, y are target widget A coordinates, and h, w are target control
The length and width of part A.This is a four-dimensional stochastic variable,Represent LALayout cluster sample set.Layout after cluster
Cluster isA subset, use aiIt represents.S is represented and aiAll gatherings of overlapping are closed.apExpression and aiIn all clusters of overlapping
The cluster of quantity maximum.E(ai) represent aiThe average layout of cluster, Min (| ais|) represent S in cluster quantity minimum value, Max (| ais
|) represent the maximum value of the quantity of cluster in S, then cluster aiHigh-lighting CSiIt can be calculated by following mode:
CSi=(| ap|-Min(|ais|))/Max(|ais|)-Min(|ais|)
The stability of quantified goal control layout is to solve the problems, such as not judging alternate layout scheme reliability.Surely
The qualitative layout for being mainly reflected in target widget has more stable central tendency, if the layout of opposite target widget is very much
Different coordinates and shape, which differ, to be all distributed, and the frequency without occurring is all more dispersed, is exactly unstable, random table
It is existing.
Because overall randomness is easier to quantify, using comentropy and the frequency of occurrences of different layout clusters, and
Stability is inversely proportional with randomness, therefore we measure the cloth score of the game of the entire topology data collection of control using the inverse of comentropy
Cloth stability.
We measure the randomness of layout cluster distribution by comentropy.Entropy is bigger, then randomness is bigger.Because stability with
Randomness is inversely proportional, therefore weighs stability with the reciprocal of entropy.PiRepresent the sample of the frequency of occurrences, the i.e. cluster of some layout cluster
Quantity accounts for the ratio of total layout sample set.The configuration stability H of target widget is calculated in the following manner:
H=1/ ∑s Pi*logPi
For some layout cluster, local high-lighting is higher, and overall randomness is lower, then more representative, and scoring should
This is higher, therefore final scoring formula is as follows:
Score=CSi+H
The corresponding scoring of all layout clusters of target widget is then calculated, then to these marking and queuings, several preceding scorings
Highest layout cluster recommends user as recommendation placement scheme.
Correspondingly, the embodiment of the invention discloses a kind of control layout commending system based on Android application, the systems
Including:
Preprocessing module, the data set of dynamic interface, is parsed, extraction process when being run for obtaining;
Module is retrieved, the keyword for providing user carries out matching retrieval, extraction, sliding-model control;
Grading module, for carrying out scoring processing to alternate layout scheme;
Recommending module, for being laid out accordingly to user according to from high to low recommendation of scoring.
Wherein, the system also includes display modules, intuitive by thermodynamic chart for closing the layout gathering after discretization
Ground shows user to see.
The preprocessing module further comprises:
Resolution unit, separate unit interface data collection when being run for obtaining carry out dissection process, and extraction obtains all controls
Attribute;
Taxon, for carrying out parsing classification processing to the attribute of all controls, extraction obtains control text message, control
The relevant space attribute of part type, control layout;
Keyword unit is extracted, for extracting keyword to control text message, as space attribute database
Search key;
Indexing units are established, for combining control text message, control type, three kinds of the relevant space attribute of control layout
Situation forms control property searching database, establishes corresponding index.
The function of each function module can be found in the flow processing in inventive method embodiment in the system embodiment of the present invention,
Which is not described herein again.
In embodiments of the present invention, implement the embodiment of the present invention, realize the representative and steady of quantization control layout recommendation
Qualitatively method so that user has clearer understanding, compared with only according to two indices and comprehensive score to the result of recommendation
There is better booster action to designer with frequency recommendation.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium can include:Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
In addition, a kind of control layout applied based on Android provided above the embodiment of the present invention recommend method and its
System is described in detail, and specific case used herein is expounded the principle of the present invention and embodiment, with
The explanation of upper embodiment is merely used to help understand the method and its core concept of the present invention;Meanwhile for the general of this field
Technical staff, thought according to the present invention, there will be changes in specific embodiments and applications, in conclusion
The content of the present specification should not be construed as limiting the invention.
Claims (10)
1. a kind of control layout based on Android application recommends method, which is characterized in that the method includes:
The data set of dynamic interface, is parsed, extraction process when obtaining operation, and index is established after obtaining spatial database;
Matching retrieval, extraction, sliding-model control are carried out to the keyword that user provides, obtain alternate layout scheme;
It scores alternate layout scheme, is laid out accordingly to user according to from high to low recommendation of scoring.
2. a kind of control layout based on Android application as described in claim 1 recommends method, which is characterized in that the progress
Parsing, extraction process specifically include:
Separate unit interface data collection when obtaining operation, carries out dissection process, and extraction obtains the attribute of all controls;
Parsing classification processing is carried out to the attribute of all controls, extraction obtains control text message, control type, control layout phase
The control property of pass;
Keyword is extracted to control text message, the search key as control property database;
To the control of no text message, then control type is taken as search key;
It is also possible to control type and the keyword of control text message is taken to be combined as search key;
Control property searching database is formed with reference to three kinds of situations, establishes corresponding index.
3. a kind of control layout based on Android application as described in claim 1 recommends method, which is characterized in that described pair with
The keyword that family provides carries out matching retrieval, extraction, sliding-model control specifically include:
The description type keyword of target widget type or control text message keyword are provided according to user, by matching control
Attribute retrieval database carries out retrieving corresponding index, obtains the topology data collection about target widget;
Sliding-model control is carried out to the topology data collection of target widget, layout gathering is obtained and closes, each cluster that is laid out is alternative cloth
Office's scheme.
4. a kind of control layout based on Android application as claimed in claim 3 recommends method, which is characterized in that described to mesh
The topology data collection for marking control carries out sliding-model control, and mainly using DBSCAN clustering algorithms, field radius is set as 10, close
Spend is 1.Similar target widget topology data is clustered, and calls cloth for a kind of target widget topology data subset gathering
The layout mean value of layout cluster, is then updated to the layout of all samples in this cluster, thus very similar target by office's cluster
Control layout data sample stipulations are same layout scenarios, so as to achieve the purpose that topology data collection sliding-model control.
5. a kind of control layout based on Android application as described in claim 1 recommends method, which is characterized in that described to standby
Placement scheme is selected to score, is specifically included according to being laid out accordingly from high to low recommendation of scoring to user:
Alternate layout scheme is obtained, quantum chemical method processing is carried out, obtains the scoring of the alternate layout scheme;
The scoring of each alternate layout scheme is obtained, each alternate layout scheme is ranked up from high to low according to its scoring,
It obtains several preceding alternate layout schemes and recommends user.
6. a kind of control layout based on Android application as claimed in claim 5 recommends method, which is characterized in that the progress
Quantum chemical method processing is the methods of marking of the representativeness and stability using quantization placement scheme.Use LARepresent target widget A's
It is laid out (x, y, h, w), wherein, x, y are target widget A coordinates, and h, w are the length and width of target widget A.This is one four-dimensional random
Variable,Represent LALayout cluster sample set.Layout cluster after cluster isA subset, use aiIt represents.S
Expression and aiAll gatherings of overlapping are closed.apExpression and aiThe cluster of quantity maximum in all clusters of overlapping.E(ai) represent aiCluster is put down
It is laid out, Min (| ais|) represent S in cluster quantity minimum value, Max (| ais|) represent S in cluster quantity maximum value, then
Cluster aiHigh-lighting CSiIt can be calculated by following mode:
CSi=(| ap|-Min(|ais|))/Max(|ais|)-Min(|ais|) 。
7. a kind of control layout based on Android application as claimed in claim 5 recommends method, which is characterized in that the progress
Quantum chemical method processing is to be fallen using in the representativeness of quantization placement scheme and the methods of marking of stability by what comentropy was measured
Number weighs stability.PiRepresent the frequency of occurrences of some layout cluster, i.e. the sample size of the cluster accounts for the ratio of total layout sample set.
The configuration stability H of target widget is calculated in the following manner:
H=1/ ∑s Pi*logPi
For some layout cluster, local high-lighting is higher, and overall randomness is lower, then more representative, and scoring should be got over
Height, therefore final scoring formula is as follows:
Score=CSi+H 。
8. a kind of space layout commending system based on Android application, which is characterized in that the system comprises:
Preprocessing module, the data set of dynamic interface, is parsed, extraction process when being run for obtaining;
Module is retrieved, the keyword for providing user carries out matching retrieval, extraction, sliding-model control;
Grading module, for carrying out scoring processing to alternate layout scheme;
Recommending module, for being laid out accordingly to user according to from high to low recommendation of scoring.
A kind of 9. space layout commending system based on Android application as claimed in claim 8, which is characterized in that the system
Display module is further included, for intuitively user being showed to see by thermodynamic chart the layout gathering conjunction after discretization.
10. a kind of space layout commending system based on Android application as claimed in claim 8, which is characterized in that described pre-
Processing module includes:
Resolution unit, separate unit interface data collection when being run for obtaining carry out dissection process, and extraction obtains the category of all controls
Property;
Taxon, for carrying out parsing classification processing to the attribute of all controls, extraction obtains control text message, control class
The relevant space attribute of type, control layout;
Extract keyword unit, for extracting keyword to control text message, the retrieval as space attribute database
Keyword;
Indexing units are established, for combining control text message, control type, control layout three kinds of situations of relevant space attribute
Control property searching database is formed, establishes corresponding index.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711425492.9A CN108197183B (en) | 2017-12-25 | 2017-12-25 | Android application-based control layout recommendation method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711425492.9A CN108197183B (en) | 2017-12-25 | 2017-12-25 | Android application-based control layout recommendation method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108197183A true CN108197183A (en) | 2018-06-22 |
CN108197183B CN108197183B (en) | 2021-09-17 |
Family
ID=62583922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711425492.9A Active CN108197183B (en) | 2017-12-25 | 2017-12-25 | Android application-based control layout recommendation method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108197183B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110096608A (en) * | 2019-05-16 | 2019-08-06 | 北京奇艺世纪科技有限公司 | It is laid out search method and relevant device |
CN110673886A (en) * | 2018-07-03 | 2020-01-10 | 百度在线网络技术(北京)有限公司 | Method and device for generating thermodynamic diagram |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102999586A (en) * | 2012-11-15 | 2013-03-27 | 北京小米科技有限责任公司 | Method and device for recommending website |
US20140075313A1 (en) * | 2012-09-11 | 2014-03-13 | Apple Inc. | Integrated Content Recommendation |
CN105843608A (en) * | 2016-03-16 | 2016-08-10 | 中山大学 | Clustering-based APP user interface design model recommendation method and system |
CN107169323A (en) * | 2017-05-11 | 2017-09-15 | 南京大学 | Packet inspection method is beaten again in a kind of Android application based on layout cluster figure |
CN107317930A (en) * | 2017-06-26 | 2017-11-03 | 努比亚技术有限公司 | A kind of layout method of desktop icons, device and computer-readable recording medium |
US20170330299A1 (en) * | 2016-05-16 | 2017-11-16 | Sap Se | Online recommendation of public services |
-
2017
- 2017-12-25 CN CN201711425492.9A patent/CN108197183B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140075313A1 (en) * | 2012-09-11 | 2014-03-13 | Apple Inc. | Integrated Content Recommendation |
CN102999586A (en) * | 2012-11-15 | 2013-03-27 | 北京小米科技有限责任公司 | Method and device for recommending website |
CN105843608A (en) * | 2016-03-16 | 2016-08-10 | 中山大学 | Clustering-based APP user interface design model recommendation method and system |
US20170330299A1 (en) * | 2016-05-16 | 2017-11-16 | Sap Se | Online recommendation of public services |
CN107169323A (en) * | 2017-05-11 | 2017-09-15 | 南京大学 | Packet inspection method is beaten again in a kind of Android application based on layout cluster figure |
CN107317930A (en) * | 2017-06-26 | 2017-11-03 | 努比亚技术有限公司 | A kind of layout method of desktop icons, device and computer-readable recording medium |
Non-Patent Citations (1)
Title |
---|
韩昊 等: "Web_Service自动布局生成方法", 《软件》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110673886A (en) * | 2018-07-03 | 2020-01-10 | 百度在线网络技术(北京)有限公司 | Method and device for generating thermodynamic diagram |
CN110673886B (en) * | 2018-07-03 | 2023-10-03 | 百度在线网络技术(北京)有限公司 | Method and device for generating thermodynamic diagrams |
CN110096608A (en) * | 2019-05-16 | 2019-08-06 | 北京奇艺世纪科技有限公司 | It is laid out search method and relevant device |
Also Published As
Publication number | Publication date |
---|---|
CN108197183B (en) | 2021-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9348934B2 (en) | Systems and methods for facilitating open source intelligence gathering | |
US10235421B2 (en) | Systems and methods for facilitating the gathering of open source intelligence | |
CN107578292B (en) | User portrait construction system | |
CN109033200B (en) | Event extraction method, device, equipment and computer readable medium | |
US9317613B2 (en) | Large scale entity-specific resource classification | |
US20170032026A1 (en) | Interactive visualization of big data sets and models including textual data | |
CN105045875B (en) | Personalized search and device | |
CN105843850B (en) | Search optimization method and device | |
CN108288229A (en) | A kind of user's portrait construction method | |
DE102015009910A1 (en) | Automatic aggregation of online user profiles | |
CN105893551A (en) | Method and device for processing data and knowledge graph | |
CN111091006B (en) | Method, device, equipment and medium for establishing entity intention system | |
CN110309303A (en) | A kind of judicial dispute data visualization analysis method based on Weighted T F-IDF | |
CN106537387B (en) | Retrieval/storage image associated with event | |
Bykau et al. | Fine-grained controversy detection in Wikipedia | |
CN110489593A (en) | Topic processing method, device, electronic equipment and the storage medium of video | |
CN111680506A (en) | External key mapping method and device of database table, electronic equipment and storage medium | |
CN112000763A (en) | Method, device, equipment and medium for determining competition relationship of interest points | |
CN105389331B (en) | A kind of open source software analysis and comparative approach based on the market demand | |
KR100987330B1 (en) | A system and method generating multi-concept networks based on user's web usage data | |
CN108197183A (en) | A kind of control layout based on Android application recommends method and its system | |
CN111190880A (en) | Database detection method and device and computer readable storage medium | |
US20170161358A1 (en) | Categorizing columns in a data table | |
CN105989176A (en) | Data processing method and device | |
JP2014102625A (en) | Information retrieval system, program, and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |