[go: up one dir, main page]

CN105930032A - Method and system for simulating turnover of list item of ListView in android system - Google Patents

Method and system for simulating turnover of list item of ListView in android system Download PDF

Info

Publication number
CN105930032A
CN105930032A CN201610250003.XA CN201610250003A CN105930032A CN 105930032 A CN105930032 A CN 105930032A CN 201610250003 A CN201610250003 A CN 201610250003A CN 105930032 A CN105930032 A CN 105930032A
Authority
CN
China
Prior art keywords
list item
category information
information list
module
scope
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
Application number
CN201610250003.XA
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610250003.XA priority Critical patent/CN105930032A/en
Publication of CN105930032A publication Critical patent/CN105930032A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (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 a method for simulating turnover of a list item of a ListView in an android system. The method comprises the steps of S1, loading the list item of the ListView control, wherein the list item includes a displayed first class information list item and a hidden second class information list item; S2, obtaining operation data in a first list item range of the displayed first class information list item on a touch screen; S3, computing the operation data according to a preset algorithm and comparing the operation data with a preset data range of defining a turnover event; S4, judging whether the second class information list item corresponding to the first list item exists or not; and S5, displaying at least partial list item in the second class information list item corresponding to the first list item, and hiding the first list item. The invention furthermore provides a system for realizing the method. According to the method and system, the turnover of the list item is simulated, so that good user experience is achieved, the system resource overhead is reduced, and the response speed is higher.

Description

A kind of method and system of Android system ListView list items simulation upset
Technical field
The present invention relates to touch data display technical field on display screen, particularly relate to a kind of Android system The method and system of ListView list items simulation upset.
Background technology
ListView list of controls item in Android system mobile phone application at present, the simply entrance of certain application, In the range of list items, carry out clicking operation, can be to eject new interface or jump to new interface, as checked Article one, information, needs click to go, and complete content just can be seen in new interface, checks a contact person, needs a little Hitting, specifying information just can be checked in new interface, such as phone number, checks that mail etc. is not always the case.
Multiple list items that user it is frequently necessary to from ListView control check information as entrance, and this needs to close Fall the interface ejected, or return to former ListView control interfaces, such as, user from the interface jumped to When checking multiple short message, need to close continually the short message content interface of ejection, or frequently from note Content interface returns to message list interface;Meanwhile, the ejection at new interface or jump to new interface, add The resource overhead of system, response speed is slow.
Chinese Patent Application No. 201210146551.X discloses in listView based on Android platform and arranges at present The sliding choosing method of list item, including: identify and judge whether the coordinate of corresponding DOWN event is positioned at setting model Enclose, be to enter next step, otherwise processed by ListView control oneself, return vacation, enter step 106); 102) choose the current list item and as starting position, return true;103) slide according to MOVE event Choose starting position to all list items of current location;104) identify and judge whether UP event occurs, It is to enter next step, otherwise returns step 103);105) starting position is chosen to arrive UP event correspondence knot All list items of bundle position;106) terminate, this method, same sliding action is designed to permissible Response rolls the operation different with choosing two, when can choose continuous print list items as required, fast and easy And Consumer's Experience is good.
The event that sliding action is responded by above patent extends, but still can not solve user it is frequently necessary to from Multiple list items of ListView control check information as entrance, need frequently to close new interface, or frequency Numerous problem returning to former interface from new interface.
Summary of the invention
The present invention solves and checks information from multiple list items of ListView control as entrance, needs frequently Close new interface, or the problem frequently returning to former interface from new interface, it is provided that a kind of Android system ListView The method and system of list items simulation upset.
In order to realize the above goal of the invention of the present invention, the present invention is achieved by the following technical solutions:
The method of we's bright offer a kind of Android system ListView list items simulation upset,
Described method includes step:
S1 loads the list items of ListView control, and described list items includes the first category information row of display List item and the second category information list item hidden, each first category information list item and zero or one or Multiple second category information list items are corresponding, each first category information list item loading position and corresponding the Two classification information list items loading positions are adjacent, and first category information list item is the row defining rollover event List item;
S2 obtains in the range of the first row list item touched on screen in the first category information list item of display Operation data;
Data are operated according to whether falling into default definition upset thing after the algorithm computing preset described in S3 comparison The scope of data of part, when falling into scope, enters next step, otherwise terminates;
S4 judges whether the second category information list item corresponding with first row list item, if existing, enters Next step, otherwise terminate;
S5 shows at least part of list items in the second category information list item corresponding with first row list item, hides First row list item.
When being loaded by interface, it is loaded with two parts list items, is the first category information list shown respectively And the second category information list item hidden, and define rollover event for first category list items, when Do the operation data in the range of any one first category list items fixed according to falling into after the algorithm computing preset Justice rollover event predefined data scope time, then perform rollover event.
In this way, direct feel is that an information in lists performs upset, just needs is looked into The information seen shows, this mode can bring good Consumer's Experience, meanwhile, when checking information, Without again loading interface, reducing system resource overhead, response speed is faster.
Optionally,
Second category information list item is the list items defining rollover event, the most also includes Step:
S6 obtains in the range of the secondary series list item touched on screen in the second category information list item of display Operation data;
Whether S7 comparison operation data fall into default definition rollover event according to after the algorithm computing preset Scope of data, when falling into scope, enters next step, otherwise terminates;
S8 shows first row list item, hides the second category information list item of display.
The upset again after overturning successfully can be simulated by S6-S8 step, go back to original interface.
Preferably,
Second category information list item is the list items defining rollover event, in step s 5, display with A list items in the second category information list item that first row list item is corresponding, hides first row list item;
Further comprise the steps of: after step s 5
S9 obtains the operation data in the range of touching the second category information list item shown on screen;
Whether S10 comparison operation data fall into default definition rollover event according to after the algorithm computing preset Scope of data, when falling into scope, enters next step, otherwise terminates;
S11 judges whether the most not shown second category information list item corresponding with first row list item, If then entering step S12, otherwise enter step S13;
S12 shows the most not shown row in the second category information list item corresponding with first row list item List item, hides shown second category information list item;
S13 shows first row list item, hides shown second category information list item.
As such, it is possible to second category information list item the most only shows one, during upset, display is the most aobvious every time The next one shown, until after all of second category information list item all shows, again overturning, shows the One list items, returns to original interface.
Preferably,
The scope of data of the definition rollover event preset includes sliding trace shape data scope,
Operation data acquired in step s 2 include sliding trace;
Step S3 specifically includes step:
Whether the sliding trace that S31 comparison obtains falls into default sliding trace according to after the algorithm computing preset Shape data scope, when falling into scope, enters next step, otherwise terminates.
Touching the sliding trace obtaining operation on screen, judging whether to meet rollover event with shape of sliding Definition is method eaily.
Preferably,
The scope of data of the definition rollover event preset also includes sliding speed scope,
Operation data acquired in step s 2 also include sliding time,
Further comprise the steps of: after step S31
Sliding trace described in S32 comparison and sliding time according to obtaining sliding speed after the algorithm computing preset are No fall into default sliding speed scope, when falling into scope, enter next step, otherwise terminate.
Touch the sliding trace obtaining operation on screen and include sliding time, with shape and the sliding speed of sliding Judge whether that meeting rollover event definition can effectively prevent maloperation.
Accordingly, the present invention provides the system of a kind of Android system ListView list items simulation upset, system Including:
Load-on module, loads the list items of ListView control, and described list items includes the first category of display Information list item and the second category information list item hidden, each first category information list item and zero or One or more second category information list items are corresponding, and each first category information list item loading position is with right The second category information list item loading position answered is adjacent, and first category information list item is to define upset thing The list items of part;
Acquisition module, is connected with load-on module, obtains and shows first category information list item on touch screen In first row list item in the range of operation data;
Memory module, the scope of data of the definition rollover event that storage is preset;
Comparing module, is connected with acquisition module and memory module, the described operation acquired in comparison acquisition module Data are according to whether falling into the definition rollover event preset that memory module is stored after the algorithm computing preset Scope of data;
First judge module, is connected with comparing module, when comparing module judges to fall into scope, it may be judged whether There is the second category information list item corresponding with first row list item;
Flip module, is connected with the first judge module, when the first judge module judges to exist and first row list item During corresponding second category information list item, show the second category information list item corresponding with first row list item In at least part of list items, hide first row list item.
Preferably,
Second category information list item is the list items defining rollover event,
Acquisition module, also obtains in the second list touched on screen in the second category information list item of display Operation data in the range of Xiang;
Comparing module, the described operation data acquired in comparison acquisition module according to after the algorithm computing preset are The no scope of data falling into the definition rollover event preset that memory module is stored;
Flip module, is connected with comparing module, when comparing module judges to fall into scope, shows the first list , hide the second category information list item of display.
Preferably,
Second category information list item is the list items defining rollover event,
Flip module, when the first judge module judged result is for being, shows corresponding with first row list item A list items in two classification information list items, hides first row list item.
Acquisition module, also obtains the operation in the range of touching the second category information list item shown on screen Data;
Comparing module, operates whether data fall into default definition according to after default algorithm computing described in comparison The scope of data of rollover event;
System also includes:
Second judge module, is connected with comparing module, when comparing module judges to fall into scope, it may be judged whether There is the most not shown second category information list item corresponding with first row list item;
Flip module, is also connected with the second judge module, when the second judge module judged result is for being, aobvious Show the most not shown list items in the second category information list item corresponding with first row list item, hide Shown second category information list item, when the second judge module judged result is no, shows first row List item, hides shown second category information list item.
Preferably,
The parameter of the definition rollover event preset includes sliding trace shape;
Operating parameter accessed by operating parameter acquisition module includes sliding trace,
Described comparing module includes:
First comparer module, by the sliding trace shape of described sliding trace with the definition rollover event preset Comparison, it is judged that whether sliding trace meets sliding trace shape.
Preferably,
The parameter of the definition rollover event preset includes sliding speed scope;
Operating parameter accessed by operating parameter acquisition module includes sliding speed,
Described comparing module includes:
Second comparer module, the most described sliding speed and the sliding speed model of default definition rollover event Enclose comparison, it is judged that sliding speed is whether in the range of described sliding speed.
The present invention at least one of has the advantages that:
1. the upset of simulation ListView list items, brings good Consumer's Experience, when checking information, it is not necessary to Again loading interface, reduce system resource overhead, response speed is faster;
2. the upset again after simulation overturns successfully, goes back to original interface;
3. during simulation upset, second category information list item the most only shows one, shows still during upset every time The not shown next one, until after all of second category information list item all shows, again overturning, showing Show first row list item, return to original interface;
4. touching the sliding trace obtaining operation on screen, judging whether to meet upset with shape of sliding Event, method is simple and convenient;
5. touching the sliding trace obtaining operation on screen and including sliding time, with shape and the slip of sliding Speed judges whether that meeting rollover event definition can effectively prevent maloperation.
Accompanying drawing explanation
With detailed description of the invention, the present invention is described in further detail below in conjunction with the accompanying drawings:
Fig. 1 is the method first embodiment schematic flow sheet of Android system ListView list items simulation upset;
Fig. 2 is that the method for Android system ListView list items simulation upset loads design sketch;
Fig. 3 is that the first contrast of the method for Android system ListView list items simulation upset judges that flow process is shown It is intended to;
Fig. 4 is that the second contrast of the method for Android system ListView list items simulation upset judges that flow process is shown It is intended to;
Fig. 5 is that the method for Android system ListView list items simulation upset simulates design sketch after upset;
Fig. 6 is that the method for Android system ListView list items simulation upset simulates another design sketch after upset;
Fig. 7 is the method first embodiment follow-up flow process signal of Android system ListView list items simulation upset Figure;
Fig. 8 is the system first embodiment structural representation of Android system ListView list items simulation upset;
Fig. 9 is the first comparison mould of system first embodiment of Android system ListView list items simulation upset Block structure schematic diagram;
Figure 10 is system first embodiment the second comparison of Android system ListView list items simulation upset Modular structure schematic diagram;
Figure 11 is method the second embodiment schematic flow sheet of Android system ListView list items simulation upset;
Figure 12 is system the second example structure schematic diagram of Android system ListView list items simulation upset.
In figure:
11 load-on module 12 acquisition module 13 memory modules
14 comparing module 141 first comparer module 142 second comparer modules
15 first judge module 16 flip module 17 second judge modules
Detailed description of the invention
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, following description It is exemplary with accompanying drawing for the present invention, and is understood not to limit the present invention.Following description describes The present invention is understood by numerous details to facilitate.But, in some instances, that know or routine Details is the most undeclared, the requirement succinct to meet description.
In android system, ListView is the more commonly used assembly, and it is shown specifically in the form of a list Content, and can show according to the length self adaptation of data.
Each list items Item inside ListView can be a character string, it is also possible to be a combination control Part.
The operation that the list items of ListView is conventional has click, long by, slip etc., corresponding ListView row List item predefines click event, length by event, slip event.
In program development, get used to generic information is stored in same relation database table, different The information of classification is stored in different database tables, is associated between multiple tables, can be one between multiple tables To zero or one to one or the relation of one-to-many, such as, Xue Shengbiao, store student information, list of results, The achievement of storage student, its middle school student's table and list of results are the tables storing different classes of information, logically, Need to be associated student's table by student number with list of results, find the one-tenth of a certain student in list of results according to student number Achievement, student's table and list of results are the relations of one-to-many.
Accordingly, interface display is still continued to use this logical relation, generally in exploitation, student is basic Information is shown in same list, afterwards using certain string in list as link, ejects concrete a certain student's Achievement, or jump to new interface, in the achievement of a certain student of new interface display.
In some cases it is also possible to be the most corresponding database table of bottom, but all the content of table is too much, Taking a part of basic data in interface, be shown in interface, it is same category of at this moment claiming this partial information Information, when needing the details checking a certain data, ejects new interface and checks, or jumps to new Interface is checked, claiming these details is the information of next classification, and such as, note, mail, typically at row Table shows essential information, ejects interface or redirect interface display details.
In Android system, showing information using ListView control as list, each list items is except showing Outside information, it is also possible to add other control.Equally, when ListView shows content in the form of a list, one As same category of information is shown in same list, then using certain string in list as link, redirect To new interface, or ejecting new interface, the information of new next classification of interface display, such as, student information is First category information, from the list of display student information, selects a line, clicks on wherein certain string, jump to New interface, shows the multi-door achievement of this student, and the performance information of student is second category information;Or note Substance is first category information, from the list of display note substance information, selects a line, clicks on Wherein certain string, jumps to new interface, shows the details of this row note, and the details of note are Two classification information.
Such development mode meets conventional thought custom, but is not the most multiple in the information of next classification Miscellaneous, but when user needs next classification information checking content in list in a large number, because ejecting New Territory continually Face, closes new interface;Or frequently jump to new interface, then return to former interface from new interface, cause behaviour Make inconvenience, lose time in a large number.
The present invention, when ListView list loads, loads the information of two classifications, the letter of first category simultaneously Breath is the information usually used as entrance, and the most above-mentioned student information, note essential information, mail are basic Information, the relevant information of the first category of the information of second category, is generally with first category information as entrance That eject or the information that redirects out, second category information is that performance information as escribed above, note are detailed Information, mail details, first category information and second category information are can be one_to_one corresponding, it is possible to To be the relation of one-to-many, it is also possible to be the relation of a pair zero, refer to first category information a pair zero and do not deposit In corresponding second category information.
First category information and second category information one_to_one corresponding are the schemes that a kind of convenience is easily implemented, the suitableeest The situation such as check for such as note, mail, telephone number, each display first category letter of this situation The ListView list items of the corresponding second category information of the ListView list items of breath.
First category information and second category information can also be the relations of one-to-many, such as, and student's letter Cease corresponding a plurality of achievement.
First category information and second category information can also be the relations of a pair zero, this feelings subordinate not with The second category information that first category information is corresponding.
First category list items loading position is adjacent, such as with corresponding second category list items loading position: The information of one student is adjacent with the performance information of this student.
Rollover event is devised, in the range of certain first category information list item on the touchscreen for list items When operation meets rollover event definition, perform rollover event;
The execution content of rollover event is to hide current first category information list item, shows current first The list items of the second category information that classification information is corresponding, so, list overall for ListView is constant, but The first category information list item performing rollover event is hidden, and shows its corresponding second category information row List item.
Direct feel is that an information in lists performs upset, and the information just needs checked demonstrates Coming, this mode can bring good Consumer's Experience, meanwhile, when checking information, it is not necessary to again loads boundary Face, reduces system resource overhead, and response speed is faster.
In this way can be with the topic used in the use scene in simulating reality, such as some TV programme Plate, one side is problem, the another side that turns over display answer;The identifying code that note receives for another example, one side is Word describes, and another side is card form, simulates these and uses scene can bring more preferable Consumer's Experience.
First embodiment:
The present invention provides the method for a kind of Android system ListView list items simulation upset, and Fig. 1 is Android system Method the present embodiment schematic flow sheet of system ListView list items simulation upset, as it is shown in figure 1,
Described method includes step:
S1 loads the list items of ListView control, and described list items includes the first category information row of display List item and the second category information list item hidden, each first category information list item and zero or one or Multiple second category information list items are corresponding, each first category information list item loading position and corresponding the Two classification information list items loading positions are adjacent, and first category information list item is the row defining rollover event List item;
Each first category information list item loading position loads position with corresponding second category information list item Put adjacent can ensure that and hide in conversion process in display with falling into, first category information list item and corresponding second Classification information list items visually position is identical.
Define new ListView list items, i.e. reversible ListView list items, this list in systems Item definition rollover event, definition meets the scope of data of rollover event, and open to the application use in system. Can this list items be carried out self-defined when the application in system uses this list items and association attributes.Once This list items is achieved, then its rollover characteristics can be used, reach rollover effect in application.
This control is inherited in ListView list items, has ListView list items association attributes, and at this base Having the turning characteristic of oneself on plinth, this control needs to coordinate ListView to use.
The first category information list item loaded is the reversible ListView list items defined in system.
Fig. 2 is that the method for Android system ListView list items simulation upset loads design sketch, as in figure 2 it is shown, The first category information loaded is note essential information, and second category information is note detailed content, loads Rear only display first category information.
S2 obtains in the range of showing the first row list item in first category information list item on touch screen Operation data;
Such as, as in figure 2 it is shown, obtain operand in the range of showing list items " Li Si " on touch screen According to, operation data include sliding trace, it is also possible to include sliding time.
Data are operated according to whether falling into default definition upset thing after the algorithm computing preset described in S3 comparison The scope of data of part, when falling into scope, enters next step, otherwise terminates;
Accordingly, the scope of data of the definition rollover event preset includes sliding trace shape data scope, also Sliding speed scope can be included.
Fig. 3 is that the first contrast of the method for Android system ListView list items simulation upset judges that flow process is shown It is intended to, as it is shown on figure 3,
Step S3 includes step:
Whether the sliding trace that S31 comparison obtains falls into default sliding trace according to after the algorithm computing preset Shape data scope, when falling into scope, enters next step, otherwise terminates.
Generally judge to operate the definition whether meeting rollover event with sliding trace, such as, define " V " The sliding trace shape of shape triggers rollover event, then, when the sliding trace got is according to the algorithm preset It is " V " shape after computing, then trigger rollover event.
Because rollover event is not the conventional event of contact action, triggering rollover event can be increased further Condition.
Fig. 4 is that the second contrast of the method for Android system ListView list items simulation upset judges that flow process is shown It is intended to, as shown in Figure 4,
Further comprise the steps of: after step S31
Sliding trace described in S32 comparison and sliding time according to obtaining sliding speed after the algorithm computing preset are No fall into default sliding speed scope, when falling into scope, enter next step, otherwise terminate.
Such as, triggering rollover event is " V " shape except meeting sliding trace shape, has also required " V " The operation of whole sliding traces reach certain speed, when obtaining sliding trace, obtain sliding time simultaneously, It is " V " shape after the sliding trace got is according to the algorithm computing preset, and, pass through sliding trace With sliding time according to the speed that obtains after the algorithm computing preset in the scope of data of definition rollover event, So trigger rollover event.
Screen slides, it is judged that the priority of rollover event is higher than the priority of ordinary screen judgement of slide, It is first determined whether meet rollover event definition after user's slide, perform rollover event if met And do not carry out common screen sliding operation, if being unsatisfactory for, not performing rollover event and performing common slide.
S4 judges whether the second category information list item corresponding with first row list item, if existing, enters Next step, otherwise terminate;
Because each first category information list item and zero or one or multiple second category information list item Correspondence, when there is not the second category information list item corresponding with a certain first category information list item, then Upset can not be simulated.
S5 shows at least part of list items in the second category information list item corresponding with first row list item, hides First row list item.
When Xiang Yuyi second category information list item of each first category information list is to correspondence, display is relatively The second category information list item answered;
When each first category information list item can show time corresponding with multiple second category information list items One or more or whole list items in multiple second category information list items.
Fig. 5 is that the method for Android system ListView list items simulation upset simulates design sketch after upset, such as figure Shown in 5, in the list items position of note essential information " Li Si ", display note details " Li Si, Today has time?”
Fig. 6 is that the method for Android system ListView list items simulation upset simulates another design sketch after upset, As shown in Figure 6, in the list items position of note essential information " Li Si ", details " Lee of display note Four, you are now to which?Receiving and please speed reply, I needs booking to put." list items is a combination Control, " deletes " except note detailed content also includes button, " telegram in reply " and " reply ".
Fig. 7 is method the present embodiment follow-up flow process signal of Android system ListView list items simulation upset Figure, as it is shown in fig. 7,
Optionally, the second category information list item loaded also is the reversible defined in system ListView list items.
Further comprise the steps of: after step s 5
S6 obtains in the range of the secondary series list item touched on screen in the second category information list item of display Operation data;
When only showing a second category information list item, obtain this second category information list item In the range of operation data, when show multiple second category information list item time, obtain any one Equations of The Second Kind Operation data in the range of other information list item.
Whether S7 comparison operation data fall into default definition rollover event according to after the algorithm computing preset Scope of data, when falling into scope, enters next step, otherwise terminates;
S8 shows first row list item, hides the second category information list item of display.
The upset again after overturning successfully can be simulated by S6-S8 step, go back to original interface.
Accordingly, the present embodiment provides the system of a kind of Android system ListView list items simulation upset,
Fig. 8 is system the present embodiment structural representation of Android system ListView list items simulation upset, as Shown in Fig. 8,
System includes:
Load-on module 11, loads the list items of ListView control, and described list items includes the first kind of display Other information list item and the second category information list item hidden, each first category information list item and zero Or one or more second category information list item is corresponding, each first category information list item loading position with Corresponding second category information list item loading position is adjacent, and first category information list item is to define upset The list items of event;
Acquisition module 12, is connected with load-on module 11, obtains and shows first category information on touch screen The operation data in the range of first row list item in list items;
The information that load-on module 11 is loaded, is shown on touch screen, and acquisition module 12 obtains and touching The operation data in the range of the first row list item in first category information list item are shown on screen
Memory module 13, the scope of data of the definition rollover event that storage is preset;
Comparing module 14, is connected with acquisition module 12 and memory module 13, and comparison acquisition module 12 is obtained The described operation data taken are according to presetting of whether falling into after the algorithm computing preset that memory module 13 stored The scope of data of definition rollover event;
Fig. 9 is the first comparing module of system the present embodiment of Android system ListView list items simulation upset Structural representation, as it is shown in figure 9,
Parameter in default definition rollover event includes that sliding trace shape, operating parameter acquisition module are obtained When the operating parameter got includes sliding trace,
Described comparing module 14 includes:
First comparer module 141, by the sliding trace of described sliding trace with the definition rollover event preset Shape comparison, it is judged that whether sliding trace meets sliding trace shape.
Figure 10 is system the present embodiment the second comparison mould of Android system ListView list items simulation upset Block structure schematic diagram, as shown in Figure 10,
Parameter in default definition rollover event also includes sliding speed scope, operating parameter acquisition module institute The operating parameter got also includes sliding speed,
Described comparing module 14 also includes:
Second comparer module 142, the most described sliding speed is fast with the slip of the definition rollover event preset Degree scope comparison, it is judged that whether sliding speed is in the range of described sliding speed.Flip module, sentences with first Disconnected module connects, when the first judge module judges to there is the second category information list corresponding with first row list item Xiang Shi, shows at least part of list items in the second category information list item corresponding with first row list item, hides First row list item.
First judge module 15, is connected 14 with comparing module, when comparing module 14 judges to fall into scope, Judge whether the second category information list item corresponding with first row list item;
Flip module 16, is connected with the first judge module 15, when the first judge module 15 judges to exist and the During second category information list item corresponding to one list items, show the second category letter corresponding with first row list item In breath list items, at least part of list items, hides first row list item.
Simulate can also again overturn after overturning successfully, go back to original interface, need second category information List items is the list items defining rollover event.
Now, acquisition module 12 can be also used for obtaining and touching the second category information row of display on screen The operation data in the range of secondary series list item in list item;
Comparing module 14, after the described operation data acquired in comparison acquisition module are according to the algorithm computing preset Whether fall into the scope of data of the definition rollover event preset that memory module 13 is stored;
When comparing module 14 judges to fall into scope, flip module 16 performs display first row list item, hides The second category information list item of display.
Second embodiment
The present embodiment is essentially identical with first embodiment, and difference is:
Second category information list item is the list items defining rollover event,
Figure 11 is method the present embodiment schematic flow sheet of Android system ListView list items simulation upset, As shown in figure 11,
In step s 5, row in the second category information list item that display is corresponding with first row list item List item, hides first row list item;
Further comprise the steps of: after step s 5
S9 obtains the operation data in the range of touching the second category information list item shown on screen;
Whether S10 comparison operation data fall into default definition rollover event according to after the algorithm computing preset Scope of data, when falling into scope, enters next step, otherwise terminates;
S11 judges whether the most not shown second category information list item corresponding with first row list item, If then entering step S12, otherwise enter step S13;
S12 shows the most not shown row in the second category information list item corresponding with first row list item List item, hides shown second category information list item;
S13 shows first row list item, hides shown second category information list item.
In the present embodiment, it is possible to achieve the most only one second category information list item of display, repeatedly overturn The effect of simulation roll display multiple second category information list item, when whole second category information list items After display terminates, again it is flipped back to original interface.
Accordingly, the system difference that the system that the present embodiment provides and first embodiment provide is, Equations of The Second Kind Other information list item is the list items defining rollover event,
Figure 12 is system the present embodiment structural representation of Android system ListView list items simulation upset, As shown in figure 12,
System also includes:
Second judge module 17, is connected with comparing module 14, when comparing module judges to fall into scope, the Two judge modules 17 judge whether the most not shown second category information row corresponding with first row list item List item;
Flip module 16, is also connected with the second judge module 17, when the second judge module 17 judged result is When being, the most aobvious in the flip module 16 display second category information list item corresponding with first row list item The list items shown, second category information list item shown before hiding, as such, it is possible to Equations of The Second Kind Other information list item the most only shows one, shows the most not shown next one during upset.
When the second judge module 17 judged result is no, flip module 16 shows first row list item, hides The most shown second category information list item, so, until all of second category information list Xiang Douxian After showing, again overturn and then show first row list item, return to original interface.
The above is only the preferred embodiment of the present invention, it is noted that other data syn-chronization software also may be used To reach same function by the method for above-described embodiment, those skilled in the art are come Say, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improve and Retouching also should be regarded as protection scope of the present invention.

Claims (10)

1. the method for an Android system ListView list items simulation upset, it is characterised in that
Described method includes step:
S1 loads the list items of ListView control, and described list items includes the first category information row of display List item and the second category information list item hidden, each first category information list item and zero or one Or multiple second category information list item is corresponding, each first category information list item loading position is with corresponding Second category information list item loading position adjacent, first category information list item is to define upset thing The list items of part;
S2 obtains at the first row list item model touched on screen in the described first category information list item of display Enclose interior operation data;
Data are operated according to whether falling into default definition upset thing after the algorithm computing preset described in S3 comparison The scope of data of part, when falling into described scope of data, enters next step, otherwise terminates;
S4 judges whether the described second category information list item corresponding with described first row list item, if Exist and then enter next step, otherwise terminate;
S5 shows in the described second category information list item corresponding with described first row list item and at least partly arranges List item, hides described first row list item.
2. the method for Android system ListView list items simulation upset as claimed in claim 1, it is special Levying and be, second category information list item is the list items defining rollover event,
Further comprise the steps of: after step s 5
S6 obtains in the range of the secondary series list item touched on screen in the second category information list item of display Operation data;
Whether S7 comparison operation data fall into default definition rollover event according to after the algorithm computing preset Scope of data, when falling into described scope of data, enters next step, otherwise terminates;
S8 shows first row list item, hides the second category information list item of display.
3. the method for Android system ListView list items simulation upset as claimed in claim 1, it is special Levying and be, second category information list item is the list items defining rollover event,
In step s 5, row in the second category information list item that display is corresponding with first row list item List item, hides first row list item;
Further comprise the steps of: after step s 5
S9 obtains the operation data in the range of touching the second category information list item shown on screen;
Whether S10 comparison operation data fall into default definition rollover event according to after the algorithm computing preset Scope of data, when falling into scope, enter next step, otherwise terminate;
S11 judges whether the most not shown second category information list item corresponding with first row list item, If then entering step S12, otherwise enter step S13;
S12 shows the most not shown in the second category information list item corresponding with first row list item List items, hides shown second category information list item;
S13 shows first row list item, hides shown second category information list item.
4. the Android system ListView list items simulation as described in claim 1-3 any one overturns Method, it is characterised in that
The scope of data of the definition rollover event preset includes sliding trace shape data scope,
Operation data acquired in step s 2 include sliding trace;
Step S3 specifically includes step:
Whether the sliding trace that S31 comparison obtains falls into default slip rail according to after the algorithm computing preset Mark shape data scope, when falling into scope, enters next step, otherwise terminates.
5. the method for Android system ListView list items simulation upset as claimed in claim 4, it is special Levy and be,
The scope of data of the definition rollover event preset also includes sliding speed scope,
Operation data acquired in step s 2 also include sliding time,
Further comprise the steps of: after step S31
Sliding trace described in S32 comparison and sliding time obtain sliding speed according to after the algorithm computing preset Whether fall into default sliding speed scope, when falling into scope, enter next step, otherwise terminate.
6. the system of an Android system ListView list items simulation upset, it is characterised in that including:
Load-on module, loads the list items of ListView control, and described list items includes the first kind of display Other information list item and the second category information list item hidden, each first category information list item and zero Individual or one or more second category information list item correspondences, each first category information list item loads position Putting adjacent with corresponding second category information list item loading position, second category information list item is definition The list items of rollover event;
Acquisition module, is connected with load-on module, obtains and shows first category information list on touch screen The operation data in the range of first row list item in Xiang;
Memory module, the scope of data of the definition rollover event that storage is preset;
Comparing module, is connected with acquisition module and memory module, the described behaviour acquired in comparison acquisition module Make data according to whether falling into the definition the preset upset thing that memory module is stored after the algorithm computing preset The scope of data of part;
First judge module, is connected with comparing module, when comparing module judges to fall into scope, it is judged that be The second category information list item that no existence is corresponding with first row list item;
Flip module, is connected with the first judge module, when the first judge module judges to exist and the first list During corresponding second category information list item, show that the second category information corresponding with first row list item arranges At least part of list items in list item, hides first row list item.
7. the system of Android system ListView list items simulation upset as claimed in claim 6, it is special Levying and be, second category information list item is the list items defining rollover event,
Described acquisition module, also obtains the touched on screen in the second category information list item of display Operation data in the range of two list items;
Described comparing module, the described operation data acquired in comparison acquisition module are according to the algorithm fortune preset The scope of data of the definition rollover event preset that memory module is stored whether is fallen into after calculation;
Described flip module, is connected with comparing module, when comparing module judges to fall into scope, and display the One list items, hides the second category information list item of display.
8. the system of Android system ListView list items simulation upset as claimed in claim 6, it is special Levying and be, second category information list item is the list items defining rollover event,
Described flip module, when the first judge module judged result is for being, display and first row list item pair Xiang Zhongyi the list items of second category information list answered, hides first row list item.
Described acquisition module, also obtains in the range of touching the second category information list item shown on screen Operation data;
Described comparing module, operates data described in comparison default according to whether falling into after default algorithm computing The scope of data of definition rollover event;
System also includes:
Second judge module, is connected with comparing module, when comparing module judges to fall into scope, it is judged that be The most not shown second category information list item corresponding with first row list item of no existence;
Described flip module, is also connected with the second judge module, when the second judge module judged result is yes Time, show the most not shown list in the second category information list item corresponding with first row list item , hide shown second category information list item, when the second judge module judged result is no, Display first row list item, hides shown second category information list item.
9. the Android system ListView list items simulation as described in claim 6-8 any one overturns System, it is characterised in that
The parameter of the definition rollover event preset includes sliding trace shape;
Operating parameter accessed by operating parameter acquisition module includes sliding trace,
Described comparing module includes:
First comparer module, by the sliding trace shape of described sliding trace with the definition rollover event preset Shape comparison, it is judged that whether sliding trace meets sliding trace shape.
10. the system of Android system ListView list items simulation upset as claimed in claim 9, its It is characterised by,
The parameter of the definition rollover event preset includes sliding speed scope;
Operating parameter accessed by operating parameter acquisition module includes sliding speed,
Described comparing module includes:
Second comparer module, the most described sliding speed and the sliding speed of default definition rollover event Scope comparison, it is judged that whether sliding speed is in the range of described sliding speed.
CN201610250003.XA 2016-04-20 2016-04-20 Method and system for simulating turnover of list item of ListView in android system Pending CN105930032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610250003.XA CN105930032A (en) 2016-04-20 2016-04-20 Method and system for simulating turnover of list item of ListView in android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610250003.XA CN105930032A (en) 2016-04-20 2016-04-20 Method and system for simulating turnover of list item of ListView in android system

Publications (1)

Publication Number Publication Date
CN105930032A true CN105930032A (en) 2016-09-07

Family

ID=56839658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610250003.XA Pending CN105930032A (en) 2016-04-20 2016-04-20 Method and system for simulating turnover of list item of ListView in android system

Country Status (1)

Country Link
CN (1) CN105930032A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647080A (en) * 2018-05-21 2018-10-12 成都路行通信息技术有限公司 Applied to the information processing method and device and computer readable storage medium in terminal
CN111104023A (en) * 2019-12-23 2020-05-05 深圳集智数字科技有限公司 Menu display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281349A (en) * 2010-06-14 2011-12-14 Lg电子株式会社 Mobile terminal and controlling method thereof
CN104360792A (en) * 2014-11-03 2015-02-18 东莞宇龙通信科技有限公司 Method, device and mobile terminal for operating contacts
CN105094667A (en) * 2015-06-29 2015-11-25 北京金山安全软件有限公司 File uploading method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281349A (en) * 2010-06-14 2011-12-14 Lg电子株式会社 Mobile terminal and controlling method thereof
CN104360792A (en) * 2014-11-03 2015-02-18 东莞宇龙通信科技有限公司 Method, device and mobile terminal for operating contacts
CN105094667A (en) * 2015-06-29 2015-11-25 北京金山安全软件有限公司 File uploading method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647080A (en) * 2018-05-21 2018-10-12 成都路行通信息技术有限公司 Applied to the information processing method and device and computer readable storage medium in terminal
CN111104023A (en) * 2019-12-23 2020-05-05 深圳集智数字科技有限公司 Menu display method and device

Similar Documents

Publication Publication Date Title
CN105144184B (en) Determine that the mankind stimulate in computing device
EP4002075A1 (en) Interface display method and apparatus, terminal, and storage medium
CN108255290A (en) Mode study in mobile device
CN107134074A (en) Storing collaborative share method, storing equipment and computer-readable recording medium
CN107551537A (en) The control method and device of virtual role, storage medium, electronic equipment in a kind of game
CN106844404A (en) Message display method and terminal device
WO2014127697A1 (en) Method and terminal for triggering application programs and application program functions
CN108287815A (en) Information input method, device, terminal and computer readable storage medium
CN105005448B (en) Application program launching method, device and terminal device
CN108519966A (en) The replacement method and computing device of e-book particular text element
CN106775193A (en) Application program interface display method and device
CN110022399B (en) Message display method and device, user terminal and readable storage medium
CN105373336A (en) Information panel presentation control method and device
CN107656674A (en) Information interacting method, device, electronic equipment and storage medium
CN105930032A (en) Method and system for simulating turnover of list item of ListView in android system
CN104615245B (en) A kind of method that terminal opens application
CN113194024B (en) Information display method and device and electronic equipment
CN108519841A (en) Using startup method, terminal and computer readable storage medium
CN107463814A (en) A kind of mobile terminal verification method, system and mobile terminal
CN107491292A (en) The automatic method for robbing red packet
CN107132927A (en) Input recognition methods and device and the device for identified input character of character
US20140232672A1 (en) Method and terminal for triggering application programs and application program functions
CN103257795A (en) Method and device for showing contact person list
CN109522505A (en) Information issuing method, device, storage medium and electronic device
CN103649944B (en) Chinese word input unit and method

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

Application publication date: 20160907

RJ01 Rejection of invention patent application after publication