CN106502674A - Grid display packing and device in a kind of List View - Google Patents
Grid display packing and device in a kind of List View Download PDFInfo
- Publication number
- CN106502674A CN106502674A CN201610922232.1A CN201610922232A CN106502674A CN 106502674 A CN106502674 A CN 106502674A CN 201610922232 A CN201610922232 A CN 201610922232A CN 106502674 A CN106502674 A CN 106502674A
- Authority
- CN
- China
- Prior art keywords
- grid
- control
- display
- layout control
- list view
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012856 packing Methods 0.000 title claims abstract description 9
- 238000000034 method Methods 0.000 claims abstract description 42
- 238000001514 detection method Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 description 14
- 238000003860 storage Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 229940104697 arixtra Drugs 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- KANJSNBRCNMZMV-ABRZTLGGSA-N fondaparinux Chemical compound O[C@@H]1[C@@H](NS(O)(=O)=O)[C@@H](OC)O[C@H](COS(O)(=O)=O)[C@H]1O[C@H]1[C@H](OS(O)(=O)=O)[C@@H](O)[C@H](O[C@@H]2[C@@H]([C@@H](OS(O)(=O)=O)[C@H](O[C@H]3[C@@H]([C@@H](O)[C@H](O[C@@H]4[C@@H]([C@@H](O)[C@H](O)[C@@H](COS(O)(=O)=O)O4)NS(O)(=O)=O)[C@H](O3)C(O)=O)O)[C@@H](COS(O)(=O)=O)O2)NS(O)(=O)=O)[C@H](C(O)=O)O1 KANJSNBRCNMZMV-ABRZTLGGSA-N 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 101000746134 Homo sapiens DNA endonuclease RBBP8 Proteins 0.000 description 1
- 101000969031 Homo sapiens Nuclear protein 1 Proteins 0.000 description 1
- 241000406668 Loxodonta cyclotis Species 0.000 description 1
- 102100021133 Nuclear protein 1 Human genes 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000035807 sensation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides the grid display packing and device in a kind of List View, the method includes:In the List View that receive user is arranged, current entries need the display number for showing object;The corresponding grid layout control of the current entries is adjusted according to the display number, the equal with the display number for generating the number of the grid child control of grid of the grid layout control is made;Grid is generated according to the grid layout control in the List View, the corresponding display object of each grid is made;Show the corresponding display object in the grid.Invention additionally discloses the grid display device in corresponding List View.
Description
Technical field
The present invention relates to the grid display packing and device in a kind of List View.
Background technology
In ARIXTRA application and development, there are many applications all have displaying grid layout such case in lists, often at present
With scheme be directly to be realized by nesting GridView controls in ListView controls, GridView controls as
A line item in ListView controls, is obtained by the getview methods of the adapter of ListView controls.But, so
Realization occurs following problem:As ListView and GridView are derived from by Abslistview classes,
Between each class of Abslistview classes race, direct nesting can cause the class of nested inner to show entirely, so needing to rewrite
OnMeasure methods in GridView controls, the height measuring mode of Gridview change AT_MOST into, and so arranging causes
The multiplexing mechanism failure of the item of Gridview, impacts to the refreshing of whole List View.In addition, in ListView controls
After middle nested GridView controls, need to arrange adapter methods to GridView controls, so when List View slides,
Be required for every time creating an adapter, and object is created when sliding and can cause larger performance shadow to the refreshing of whole UI
Ring, affect frame per second, the sensation of cause the user interim card.
Content of the invention
In view of this, it is an object of the invention to provide grid display packing and device in a kind of List View, with power
The problem for existing above certainly or is at least alleviated in diagram.
In a first aspect, the present invention provides the grid display packing in a kind of List View, the method includes:
In the List View that receive user is arranged, current entries need the display number for showing object;
The corresponding grid layout control of the current entries is adjusted according to the display number, the grid layout control is made
For generate the number of the grid child control of grid with described display number equal;
Grid is generated according to the grid layout control in the List View, makes each grid correspondingly described in one
Show object;
Show the corresponding display object in the grid.
Alternatively, in the method according to the invention, the current entries pair are adjusted according to the display number described
Before the grid layout control that answers, including:
Whether there is grid layout control in detection List View;
If grid layout control is not detected by the List View, create grid layout control.
Alternatively, in the method according to the invention, described corresponding according to the display number adjustment current entries
Grid layout control, make the grid layout control for generating the number of the grid child control of grid with the display number
Mesh is equal, including:
The all of grid child control of the grid layout control is traveled through, if the number of grid child control is aobvious more than described
Registration mesh, then hide the unnecessary grid child control;
If the number of grid child control increases the grid child control, until the net less than the display number
The number of grid control is equal with the display number.
Alternatively, in the method according to the invention, the attribute information of the grid layout control includes grid columns, net
Compartment away from.
Alternatively, in the method according to the invention, described according to the grid layout control in the List View
Grid is generated, including:
According to grid columns and mesh spacing in the attribute information for showing number and the grid layout control,
Grid is generated in List View.
Second aspect, the present invention provide the grid display device in a kind of List View, and the device includes:
Receiving unit, in the List View arranged for receive user, current entries need the display number for showing object;
Grid adjustment unit, for adjusting the corresponding grid layout control of the current entries according to the display number,
Make the equal with the display number for generating the number of the grid child control of grid of the grid layout control;
Mess generation unit, for generating grid according to the grid layout control in the List View, makes each
The corresponding display object of individual grid;
Grid display unit, for showing the corresponding display object in the grid.
Alternatively, in a device in accordance with the invention, the grid adjustment unit is additionally operable to:
Whether there is grid layout control in detection List View;
If grid layout control is not detected by the List View, create grid layout control.
Alternatively, in a device in accordance with the invention, the grid adjustment unit is additionally operable to:
The all of grid child control of the grid layout control is traveled through, if the number of grid child control is aobvious more than described
Registration mesh, then hide the unnecessary grid child control;
If the number of grid child control increases the grid child control, until the net less than the display number
The number of grid control is equal with the display number.
Alternatively, in a device in accordance with the invention, the attribute information of the grid layout control includes grid columns, net
Compartment away from.
Alternatively, in a device in accordance with the invention, the mess generation unit is additionally operable to:
According to grid columns and mesh spacing in the attribute information for showing number and the grid layout control,
Grid is generated in List View.
Using grid layout control, technology according to the present invention scheme, realizes that the grid for showing object shows in List View
Show, committed memory is less, the speed of the refreshing of list has obvious advantage in sliding list, improve Consumer's Experience.
For enabling the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by to be used attached needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows the block diagram of the Example Computing Device 100 of the grid display device in the List View of the present invention.
The flow chart that Fig. 2 shows the grid display packing in a kind of List View that the embodiment of the present invention is provided.
Fig. 3 shows the diagram of the grid display interface in a kind of List View that the embodiment of the present invention is provided.
Fig. 4 shows the structure chart of the grid display device in a kind of List View that the embodiment of the present invention is provided.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention is clearer, below in conjunction with the embodiment of the present invention
Middle accompanying drawing, to the embodiment of the present invention in technical scheme be clearly and completely described, it is clear that described embodiment is only
It is a part of embodiment of the invention, rather than whole embodiments.The present invention generally described and illustrated in accompanying drawing herein is real
The component for applying example can be arranged and be designed with a variety of configurations.Therefore, below to the present invention's that provides in the accompanying drawings
The detailed description of embodiment is not intended to limit the scope of claimed invention, but is merely representative of the selected reality of the present invention
Apply example.It is based on embodiments of the invention, the institute obtained on the premise of creative work is not made by those skilled in the art
There is other embodiment, belong to the scope of protection of the invention.
Grid display device in the List View of the present invention is resided in computing device, and Fig. 1 is arranged as realizing according to this
The block diagram of the Example Computing Device 100 of the grid display device in the List View of invention.In basic configuration 102, calculate
Equipment 100 typically comprises system storage 106 and one or more processor 104.Memory bus 108 can be used for
Communication between processor 104 and system storage 106.
Desired configuration is depended on, processor 104 can be any kind of process, including but not limited to:Microprocessor
((μ P), microcontroller (μ C), digital information processor (DSP) or any combination of them.Processor 104 can include all
Cache, processor core such as one or more rank of on-chip cache 110 and second level cache 112 etc
114 and depositor 116.The processor core 114 of example can include arithmetic and logical unit (ALU), floating-point unit (FPU),
Digital signal processing core (DSP core) or any combination of them.The Memory Controller 118 of example can be with processor
104 are used together, or in some implementations, Memory Controller 118 can be an interior section of processor 104.
Desired configuration is depended on, system storage 106 can be any type of memorizer, including but not limited to:Easily
The property lost memorizer (RAM), nonvolatile memory (ROM, flash memory etc.) or any combination of them.System is stored
Device 106 can include operating system 120, one or more application 122 and routine data 124.In some embodiments,
Application 122 may be arranged to be operated using routine data 124 on an operating system.
Computing device 100 can also include contributing to from various interface equipments (for example, outut device 142, Peripheral Interface
144 and communication equipment 146) to basic configuration 102 via the communication of bus/interface controller 130 interface bus 140.Example
Outut device 142 include Graphics Processing Unit 148 and audio treatment unit 150.They can be configured to contribute to via
One or more A/V port 152 is communicated with the various external equipments of such as display or speaker etc.Outside example
If interface 144 can include serial interface controller 154 and parallel interface controller 156, they can be configured to contribute to
Via one or more I/O port 158 and such as input equipment (for example, keyboard, mouse, pen, voice-input device, touch
Input equipment) or the external equipment of other peripheral hardwares (such as printer, scanner etc.) etc communicated.The communication of example sets
Standby 146 can include network controller 160, and which can be arranged to be easy to via one or more COM1 164 and
Other communications of computing device 162 by network communication link individual or multiple.
Network communication link can be an example of communication media.Communication media can be generally presented as in such as carrier wave
Or the computer-readable instruction in the modulated data signal of other transmission mechanisms etc, data structure, program module, and can
To include any information delivery media." modulated data signal " can be with such signal, and in its data set is more
Individual or it change can the mode of coding information in the signal carry out.Used as nonrestrictive example, communication media can be with
Including the wire medium of such as cable network or private line network etc and such as sound, radio frequency (RF), microwave, infrared
Or other wireless mediums are in interior various wireless mediums (IR).Term computer-readable medium used herein can include depositing
Both storage media and communication media.
Computing device 100 can be implemented as a part for portable (or mobile) electronic equipment of small size, and these electronics set
Standby can be such as cell phone, personal digital assistant (PDA), personal media player device, wireless network browsing apparatus, individual
People's helmet, application specific equipment or can include any of the above function mixing apparatus.Computing device 100 can be with
It is embodied as the personal computer for including desktop computer and notebook computer configuration.
Fig. 2 shows the flow process of the grid display packing in a kind of List View for being provided according to embodiments of the present invention
Figure.As shown in Fig. 2 executing in computing device, the method starts from step S210.
In step S210, in the List View that receive user is arranged, current entries need the display number for showing object.
List View (ListView) is a kind of application or control that Android operation system is provided, and can slide up and down,
Many sub- layouts can be included in List View control, a line is occupied per individual sub- layout, be referred to as one bar entry per individual sub- layout
(item).List View control can obtain the aobvious of current entries in List View by the getView methods of adapter interfaces
Show object, e.g., word, picture etc..User can arrange on the such as server current entries in List View need to show right
The display number of elephant, List View control obtain above-mentioned display number from such as server.Wherein, show number according to practical situation
It is configured, for example, it is desired to show 20 display objects.In one embodiment, need to show 20 display objects in item,
ListView controls can call getView methods in 20 adapter interfaces to obtain display object.
In step S220, according to the corresponding grid layout control of number adjustment current entries is shown, grid layout control is made
Part for generate the number of the grid child control of grid with show number equal.
Grid layout control (GridLayout) is, using empty fine rule, layout is divided into row, column and cell, and ARIXTRA is grasped
Make layout loading tool LayoutInflater of the system by itself providing to load which.The layout of grid layout control
Can be with save mesh spacing, grid columns and grid line number etc., it being understood, however, that above-mentioned grid layout control in attribute information
The attribute not limited to this of part.For example, in actual applications, orienttation attributes can be arranged and is open into, will pass through
When addview adds child control, according to order from left to right, highly it is configured according to practical application.
According to before showing the corresponding grid layout control of number adjustment current entries, whether deposit in detection List View
In grid layout control.If grid layout control is not detected by List View, create grid layout control, e.g., according to
The value of parameter convertView in ListView controls in getView methods judges whether grid layout control.
GirdLayout controls are to call the getView methods of adapter to obtain by ListView controls, are passing through getView side
When method obtains grid layout control, need to be written over getView methods.There is the individual parameter to be in getView methods
ConvertView, this parameter are to represent the multiplexing of current item.When ListView controls call getView methods first,
Do not have GirdLayout controls in ListView controls, so the value of parameter convertView is null.Therefore, it can root
Judge according to convertView values whether GirdLayout creates.
According to a kind of embodiment, all of grid child control of grid layout control is traveled through, if grid child control
Number is more than the display number, then hide unnecessary grid child control.If the number of grid child control is less than display number,
Then increase grid child control, until grid child control number with display number equal.
ListView controls by convertView in findviewbyid functions find current entries
GridLayout controls, call the getChildCount methods in GridLayout controls to obtain the number of grid child control.Choosing
Select display number and larger number in the number of above-mentioned grid child control, to grid layout control in all grid child controls
Traveled through.The number of grid child control is compared with the display number for showing object such as current entries.If grid is sub
Unnecessary grid is hidden by the number of control more than number is shown, e.g., GridLayout controls need to call
Parameter is set as this value of GONE by setVisibility methods.If the number of grid child control is less than display number,
GridLayout controls call the infater methods of LayoutInflater by the grid child control for being currently needed for showing load into
Come, then above-mentioned grid child control is added in GridLayout by the addview methods of GridLayout controls, until net
Till the number of grid control is identical with number is shown.Wherein, when traveling through grid child control every time, GridLayout controls are called
In getChildAT methods judge in current entries with the presence or absence of grid child control, if the current location in above-mentioned entry is not
There is grid child control, need to call LayoutInflater methods such as to create grid child control.
In step S230, grid is generated according to grid layout control in List View, make each grid corresponding
Individual display object.
According to a kind of embodiment, according to the grid columns shown in the attribute information of number and grid layout control and
Mesh spacing, generates grid in List View.
The getDisplayMetrics methods provided by the operating system that runs in computing device such as mobile phone are tactile to obtain
The width of screen is touched, the margin arranged in the width, ListView controls according to above-mentioned touch screen is away from size and grid layout control
The attribute information of part, calculates the actual area required for each grid, and e.g., touch screen width is pw, margin away from for p, between grid
Away from s, grid columns is n, and mesh width w deducts all of margin away from mesh spacing and divided by grid columns for touch screen width
Obtain, formula is w=(pw-2p- (n-1) s)/n.The getLayoutParams functions of grid layout control are called to obtain layout
Parameter LayoutParams, arranges the wide and high of grid, directly to LayoutParams's by LayoutParams
LayoutParams.width and LayoutParams.height assignment.When showing that number is more, ListView controls
In entry (item) there is multiplexed situation, therefore, after the grid for obtaining current entries every time, need to refresh again which and regard
Figure, i.e., need the destination object for showing in grid.
In step S240, show corresponding display object in the grid, specifically refer to Fig. 3.
Technology according to the present invention scheme, realizes the net for showing object in List View control using grid layout control
Lattice show that committed memory is less, and in sliding list, the speed of the refreshing of list has obvious advantage, improve Consumer's Experience.
Fig. 4 shows the signal of the grid display device in a kind of List View of the embodiment provided according to the present invention
Figure.As shown in figure 4, the device is resided in computing device, including:Receiving unit 410, grid adjustment unit 420, mess generation
Unit 430 and grid display unit 440.
In the List View that 410 receive user of receiving unit is arranged, current entries need the display number for showing object.
Grid adjustment unit 420 adjusts the corresponding grid layout control of the current entries according to the display number, makes
The grid layout control for generate the number of the grid child control of grid with described display number equal.Grid adjustment is single
Unit 420 whether there is grid layout control in adjustment current entries corresponding grid layout control in detection List View.Such as
Grid layout control is not detected by really described List View, then creates grid layout control.Subsequently, grid adjustment unit 420
The all of grid child control of the grid layout control is traveled through, if the number of current grid child control is more than the display number
Mesh, then hide the unnecessary grid child control.If the number of current grid child control increases less than the display number
The grid child control, until with described, the number of the grid child control shows that number is equal.Specific process is referred to
Method description in text, does not do excessive narration herein.
Mess generation unit 430 generates grid according to the grid layout control in the List View, makes each
The corresponding display object of grid.The attribute information of grid layout control includes grid columns, mesh spacing.Mess generation
Unit 430 according to the grid columns and mesh spacing shown in the attribute information of number and the grid layout control, in list
Grid is generated in view
Grid display unit 440 shows corresponding display object in above-mentioned grid.
Grid display device in a kind of List View that the embodiment of the present invention is provided can be specific hard on equipment
Part or the software being installed on equipment or firmware etc..The device provided by the embodiment of the present invention, its realize principle and generation
Technique effect is identical with preceding method embodiment, is brief description, and device embodiment part does not refer to part, refers to aforementioned side
Corresponding contents in method embodiment.Those skilled in the art can be understood that, for convenience and simplicity of description, aforementioned
The specific work process of the system of description, device and unit, may be referred to the corresponding process in said method embodiment, here
Repeat no more.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, other sides can be passed through
Formula is realized.Device embodiment described above is only that schematically for example, the division of the unit, only one kind are patrolled
Volume function is divided, and can have other dividing mode when actually realizing, and for example, multiple units or component can in conjunction with or can
To be integrated into another system, or some features can be ignored, or not execute.Another, shown or discussed each other
Coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some communication interfaces, device or unit
Connect, can be electrical, mechanical or other forms.
The unit that illustrates as separating component can be or may not be physically separate, aobvious as unit
The part for showing can be or may not be physical location, you can be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in the embodiment that the present invention is provided can be integrated in a processing unit, also may be used
Being that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is realized using in the form of SFU software functional unit and as independent production marketing or when using, can be with
It is stored in a computer read/write memory medium.Such understanding is based on, technical scheme is substantially in other words
The part contributed by prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) execute all or part of step of each embodiment methods described of the invention.
And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that:Similar label and letter represent similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then in subsequent accompanying drawing which further need not be defined and be explained, additionally, term " the
One ", " second ", " the 3rd " etc. are only used for distinguishing description, and it is not intended that indicating or hint relative importance.
Finally it should be noted that:Embodiment described above, the only specific embodiment of the present invention, in order to illustrate the present invention
Technical scheme, rather than a limitation, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this
Bright be described in detail, it will be understood by those within the art that:Any those familiar with the art
The invention discloses technical scope in, which still can be modified to the technical scheme described in previous embodiment or can be light
Change is readily conceivable that, or equivalent is carried out to which part technical characteristic;And these modifications, change or replacement, do not make
The essence of appropriate technical solution departs from the spirit and scope of embodiment of the present invention technical scheme.The protection in the present invention should all be covered
Within the scope of.Therefore, protection scope of the present invention described should be defined by scope of the claims.
Claims (10)
1. the grid display packing in a kind of List View, it is characterised in that the method includes:
In the List View that receive user is arranged, current entries need the display number for showing object;
The corresponding grid layout control of the current entries is adjusted according to the display number, the use of the grid layout control is made
Equal with the display number in the number of the grid child control for generating grid;
Grid is generated according to the grid layout control in the List View, the corresponding display of each grid is made
Object;
Show the corresponding display object in the grid.
2. the method for claim 1, it is characterised in that the current entries are adjusted according to the display number described
Before corresponding grid layout control, including:
Whether there is grid layout control in detection List View;
If grid layout control is not detected by the List View, create grid layout control.
3. the method for claim 1, it is characterised in that described the current entries pair are adjusted according to the display number
The grid layout control that answers, make the grid layout control for generating the number of the grid child control of grid and the display
Number is equal, including:
The all of grid child control of the grid layout control is traveled through, if the number of grid child control is more than the display number
Mesh, then hide the unnecessary grid child control;
If the number of grid child control increases the grid child control less than the display number, until grid
The number of control is equal with the display number.
4. the method for claim 1, it is characterised in that the attribute information of the grid layout control includes mesh column
Number, mesh spacing.
5. the method as described in claim 1 or 4, it is characterised in that described according to the grid layout control in the list
Grid is generated in view, including:
According to grid columns and mesh spacing in the attribute information for showing number and the grid layout control, in row
Grid is generated in table view.
6. the grid display device in a kind of List View, it is characterised in that the device includes:
Receiving unit, in the List View arranged for receive user, current entries need the display number for showing object;
Grid adjustment unit, for adjusting the corresponding grid layout control of the current entries according to the display number, makes institute
State the equal with the display number for generating the number of the grid child control of grid of grid layout control;
Mess generation unit, for generating grid according to the grid layout control in the List View, makes each net
The corresponding display object of lattice;
Grid display unit, for showing the corresponding display object in the grid.
7. device as claimed in claim 6, it is characterised in that the grid adjustment unit is additionally operable to:
Whether there is grid layout control in detection List View;
If grid layout control is not detected by the List View, create grid layout control.
8. device as claimed in claim 6, it is characterised in that the grid adjustment unit is additionally operable to:
The all of grid child control of the grid layout control is traveled through, if the number of grid child control is more than the display number
Mesh, then hide the unnecessary grid child control;
If the number of grid child control increases the grid child control less than the display number, until grid
The number of control is equal with the display number.
9. device as claimed in claim 6, it is characterised in that the attribute information of the grid layout control includes mesh column
Number, mesh spacing.
10. the device as described in claim 6 or 9, it is characterised in that the mess generation unit is additionally operable to:
According to grid columns and mesh spacing in the attribute information for showing number and the grid layout control, in list
Grid is generated in view.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610922232.1A CN106502674A (en) | 2016-10-21 | 2016-10-21 | Grid display packing and device in a kind of List View |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610922232.1A CN106502674A (en) | 2016-10-21 | 2016-10-21 | Grid display packing and device in a kind of List View |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106502674A true CN106502674A (en) | 2017-03-15 |
Family
ID=58319316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610922232.1A Pending CN106502674A (en) | 2016-10-21 | 2016-10-21 | Grid display packing and device in a kind of List View |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106502674A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107463324A (en) * | 2017-06-26 | 2017-12-12 | 努比亚技术有限公司 | A kind of image display method, mobile terminal and computer-readable recording medium |
CN107656729A (en) * | 2017-08-31 | 2018-02-02 | 上海壹账通金融科技有限公司 | Updating device, method and the computer-readable recording medium of List View |
CN109782977A (en) * | 2017-11-13 | 2019-05-21 | 腾讯科技(深圳)有限公司 | View processing method, electronic equipment and storage medium |
CN110069314A (en) * | 2019-04-29 | 2019-07-30 | 珠海豹好玩科技有限公司 | A kind of method for exhibiting data, device and Related product |
CN110262736A (en) * | 2019-06-20 | 2019-09-20 | 北京字节跳动网络技术有限公司 | Data form creation method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547463A (en) * | 2011-12-15 | 2012-07-04 | Tcl集团股份有限公司 | Method and device for locating interface focus of TV set, and TV set |
CN102880893A (en) * | 2012-09-25 | 2013-01-16 | 北京建筑工程学院 | Barcode displaying method |
CN103513978A (en) * | 2012-07-02 | 2014-01-15 | Tcl集团股份有限公司 | Method and system for managing layout of application according to attribute information of application |
CN105867893A (en) * | 2015-11-18 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Display terminal, display method and display device of graphical user interface |
-
2016
- 2016-10-21 CN CN201610922232.1A patent/CN106502674A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547463A (en) * | 2011-12-15 | 2012-07-04 | Tcl集团股份有限公司 | Method and device for locating interface focus of TV set, and TV set |
CN103513978A (en) * | 2012-07-02 | 2014-01-15 | Tcl集团股份有限公司 | Method and system for managing layout of application according to attribute information of application |
CN102880893A (en) * | 2012-09-25 | 2013-01-16 | 北京建筑工程学院 | Barcode displaying method |
CN105867893A (en) * | 2015-11-18 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Display terminal, display method and display device of graphical user interface |
Non-Patent Citations (1)
Title |
---|
CHINDROID: ""Android中visibility属性visible、invisible、GONE的区别"", 《HTTPS://BLOG.CSDN.NET/CHINDROID/ARTICLE/DETAILS/8000713》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107463324A (en) * | 2017-06-26 | 2017-12-12 | 努比亚技术有限公司 | A kind of image display method, mobile terminal and computer-readable recording medium |
CN107656729A (en) * | 2017-08-31 | 2018-02-02 | 上海壹账通金融科技有限公司 | Updating device, method and the computer-readable recording medium of List View |
CN107656729B (en) * | 2017-08-31 | 2020-04-28 | 深圳壹账通智能科技有限公司 | List view updating apparatus, method and computer-readable storage medium |
CN109782977A (en) * | 2017-11-13 | 2019-05-21 | 腾讯科技(深圳)有限公司 | View processing method, electronic equipment and storage medium |
CN110069314A (en) * | 2019-04-29 | 2019-07-30 | 珠海豹好玩科技有限公司 | A kind of method for exhibiting data, device and Related product |
CN110262736A (en) * | 2019-06-20 | 2019-09-20 | 北京字节跳动网络技术有限公司 | Data form creation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106502674A (en) | Grid display packing and device in a kind of List View | |
US9942358B2 (en) | Recommending applications | |
CN106560787A (en) | MVVM-framework-based view page displaying method and apparatus | |
US9009092B2 (en) | Creating variations when transforming data into consumable content | |
KR101978007B1 (en) | Drag and drop always sum formulas | |
CN105308551B (en) | The multiple graphs keyboard inputted for continuous gesture | |
CN104737115B (en) | The gesture keyboard cancelled with gesture | |
US20150178376A1 (en) | Transforming Data into Consumable Content | |
US20140033048A1 (en) | System for creating interactive electronic documents and control method thereof | |
CN102253802A (en) | Ink lag compensation technique | |
CN106168978A (en) | The treating method and apparatus of pop-up in a kind of webpage | |
US20150347097A1 (en) | Adaptive user interfaces | |
US20140157190A1 (en) | Grid display device and grid display method in mobile terminal | |
CN105408856B (en) | Method and its electronic equipment for display | |
CN102138122A (en) | Combining interfaces of shell applications and sub-applications | |
CN103544024A (en) | Method and system for generating browser page and terminal device | |
CN109299424A (en) | It is a kind of to provide the method, apparatus and computer readable medium of response events based on rich text | |
CN105094540A (en) | Method and device for software icon display | |
CN113126867A (en) | Browser control method and device, browser, terminal and storage medium | |
CN107547646A (en) | Application program method for pushing, device, terminal and computer-readable recording medium | |
WO2017008647A1 (en) | Resource sending method and device | |
CN109857503A (en) | Page interaction effect adaptive approach, device and electronic equipment | |
CN109739738A (en) | HTML5-based event log management method, system and related device | |
US20130305176A1 (en) | Ui creation support system, ui creation support method, and non-transitory storage medium | |
EP3417365A1 (en) | Animated digital ink |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170315 |