CN106933482A - A kind of method and apparatus for switching object - Google Patents

A kind of method and apparatus for switching object Download PDF

Info

Publication number
CN106933482A
CN106933482A CN201511021021.2A CN201511021021A CN106933482A CN 106933482 A CN106933482 A CN 106933482A CN 201511021021 A CN201511021021 A CN 201511021021A CN 106933482 A CN106933482 A CN 106933482A
Authority
CN
China
Prior art keywords
object data
view
sub
gesture
renewal
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
CN201511021021.2A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201511021021.2A priority Critical patent/CN106933482A/en
Publication of CN106933482A publication Critical patent/CN106933482A/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/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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of method and apparatus for switching object.The method of wherein switching object includes:When front view bottom boundary is displayed on screen, whether the operating gesture that judgement is captured is switching gesture;If it is, the object data shown by the sub- view that application front view is included on switching current screen.Technical scheme can make full use of the region in the front view bottom of application, and different object datas are provided the user by response to switching gesture in the sub- view in the region, increased the displaying rate of object data.

Description

A kind of method and apparatus for switching object
【Technical field】
The present invention relates to Computer Applied Technology field, more particularly to a kind of method and dress for switching object Put.
【Background technology】
In the prior art, due to the limitation of screen size, the display interface of APP applications would generally be made thin It is long and exceeded the scope that screen can once show, therefore user is when wanting the full content for checking interface, Interface can from bottom to top be slided, the slip is alternatively referred to as pull-up, through the above way, it is possible to use family Check the content of interface bottom.
In order to cause the concern of user, in the content arrangement at whole interface, it will usually by important or The interior top or middle part for being received within interface that user goes for shows, to facilitate user to watch and search, And such as advertisement or to guess that you like etc. this be information that user recommends, due to above-mentioned recommendation information not It is that user wants the content that active is checked, therefore the significant position in interface will not be placed on, and is placed on interface Bottom, in order to avoid cause user dislike or cause user to check its inconvenience for actively checking content.
Because interface bottom is generally placed with the content that user can't actively want to obtain, therefore prior art In when user leaies through to App interfaces bottom, at most only one pull-up rebound effects, without doing it He is processed, therefore for limited screen size, wastes application interface resource valuable on screen.
【The content of the invention】
The invention provides a kind of method and apparatus for switching object, in order to improve the content of application interface Displaying rate, saves valuable interface resources.
Concrete technical scheme is as follows:
The invention provides a kind of method for switching object, methods described includes:
When front view bottom boundary is displayed on screen, whether the operating gesture that judgement is captured is switching hand Gesture;
If it is, the object data shown by the sub- view that application front view is included on switching current screen.
According to one preferred embodiment of the present invention, judge whether the operating gesture for capturing is that switching gesture includes:
Catch and determine to terminate corresponding cunning to slip gesture since front view bottom boundary is displayed on screen Whether side-play amount of the gesture of starting on screen vertical direction exceedes default offset threshold;
If it exceeds the default offset threshold, it is determined that the operating gesture for capturing is switching gesture.
According to one preferred embodiment of the present invention, the sub- view that application front view is included on the switching current screen Shown object data includes:
The object data for updating is obtained from server or local cache;
Treated using the object data for updating and be shown in the object data of sub- view and refreshed;
The object data of the refreshing is shown in the sub- view.
According to one preferred embodiment of the present invention, it is described that the number of objects for updating is obtained from server or local cache According to including:
The renewal time of the object data of local cache is sent to the server;
Receive the object data of the renewal that the server determines to issue according to the renewal time for receiving;
If not receiving the object data of renewal from server, obtained in the sub- view from local cache The object data of renewal.
According to one preferred embodiment of the present invention, the object data of the renewal is that server is issued at random, or Person obtains at random from local cache.
According to one preferred embodiment of the present invention, methods described also includes:In the sub- view display object data When, according to default displaying model, the object data is filled to the sub- view, wherein showing model Image attributes and/or text attribute comprising the object data in sub- view.
According to one preferred embodiment of the present invention, the object data is including ad data, in user's recommendation Appearance or other data for actively providing the user.
Present invention also offers a kind of device for switching object, described device includes:
Processing unit, for when front view bottom boundary is displayed on screen, judging the manipulator for capturing Whether gesture is switching gesture;
Switch unit, for when the operating gesture for judging to capture is switching gesture, switching on current screen Using the object data shown by the sub- view that front view is included.
According to one preferred embodiment of the present invention, the processing unit is by performing following operation to judge to capture Operating gesture whether be switching gesture:
Catch and determine to terminate corresponding cunning to slip gesture since front view bottom boundary is displayed on screen Whether side-play amount of the gesture of starting on screen vertical direction exceedes default offset threshold;
If it exceeds the default offset threshold, it is determined that the operating gesture for capturing is switching gesture.
According to one preferred embodiment of the present invention, the switch unit includes:
Acquiring unit, for obtaining the object data for updating from server or local cache;
Refresh unit, the object data that sub- view is shown in for being treated using the object data for updating is brushed Newly;
Display unit, for the object data of the refreshing to be shown in into the sub- view.
According to one preferred embodiment of the present invention, the acquiring unit by performing following operation with from server or Person's local cache obtains the object data for updating:
The renewal time of the object data of local cache is sent to the server;
Receive the object data of the renewal that the server determines to issue according to the renewal time for receiving;
If not receiving the object data of renewal from server, obtained in the sub- view from local cache The object data of renewal.
According to one preferred embodiment of the present invention, the object data of the renewal is that server is issued at random, or Person obtains at random from local cache.
According to one preferred embodiment of the present invention, the switch unit is in the sub- view display object data, According to default displaying model, the object data is filled to the sub- view, wherein displaying model is included Image attributes and/or text attribute of the object data in sub- view.
According to one preferred embodiment of the present invention, the object data includes ad data, is user's recommendation Content or other data for actively providing the user.
As can be seen from the above technical solutions, the present invention is taken full advantage of in the area of the front view bottom of application Domain, different object datas are provided the user in the sub- view in the region by response to switching gesture, Increased the displaying rate of object data.
【Brief description of the drawings】
Fig. 1 is a kind of method flow diagram of switching object that the embodiment of the present invention one is provided;
Fig. 2 is a kind of apparatus structure schematic diagram of switching object that the embodiment of the present invention two is provided;
Fig. 3 A-3D are the implementation result figure for implementing methods and apparatus of the present invention, wherein:
Fig. 3 A are the design sketch of front view when user up slides,
Fig. 3 B are to reach design sketch when front view bottom continues to slide,
Fig. 3 C are design sketch when loosing one's grip,
Fig. 3 D are the design sketch switched over to sub- view content according to operating gesture.
【Specific embodiment】
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings and specifically The present invention will be described in detail for embodiment.
Embodiment one
Fig. 1 is a kind of method flow diagram of switching object that the embodiment of the present invention one is provided.As shown in figure 1, The method is comprised the following steps:
101st, catch and determine the switching gesture on screen.
In the step, when it is determined that front view bottom boundary is displayed on screen, such as by slip gesture, So that front view is gradually moved up, it is shown on screen to front view bottom boundary, if in this state Under capture operating gesture on screen, then judge whether the operating gesture for capturing is switching gesture, from And foundation switching gesture triggers the switching of the object data shown by the sub- view included using front view.
Wherein application front view and sub- view are in same application interface and show on a terminal screen.
The terminal can including mobile phone, palm PC, personal communication assistant machine etc. portable set.
Whether the operating gesture that judgement is captured is that switching gesture can include:
Catch and determine to terminate corresponding cunning to slip gesture since front view bottom boundary is displayed on screen Whether side-play amount of the gesture of starting on screen vertical direction exceedes default offset threshold;If it exceeds described pre- If offset threshold, it is determined that the operating gesture for capturing be switching gesture.
Specifically:
When it is determined that front view bottom boundary is displayed on screen,
If continuing to monitor the touch event of gesture, the y-coordinate that finger is clicked on screen can be obtained, Y-coordinate and pine of the corresponding finger on screen when on screen have just been displayed in including front view bottom boundary Y-coordinate when opening, can determine the distance that finger is slided, if finger according to two differences of y-coordinate The distance of slip exceedes default offset threshold, then it is assumed that the front view shown on screen in application is rolled To after bottom, also in the slide of the inertia for carrying out continuing to front view checking, it is determined that capturing switching Gesture.
Can cause main view preferably for slip after front view map boundary line is shown in bottom of screen Figure bottom boundary produces the animation effect of skew relative to the skew of display screen bottom.
When being defined as switching gesture, then can enter step 102, need to switch in sub- view to obtain Renewal object data.
In addition, though under normal circumstances, what is used for the bottom for sliding into front view is all to interface Upward sliding, or be referred to as upper pulling process.But, the present embodiment does not enter to the direction of slip gesture The strict limitation of row, relative to screen whether upward sliding or slide downward or other operations, as long as The bottom that front view can be slided into is within the scope of the present invention.
In iOS realizations, the sliding effect of front view can be realized by UIScrollView, and Obtain and slide skew.
102nd, according to the triggering of switching gesture, the number of objects for updating is obtained from server or local cache According to.
Specifically, can be by the way that network is from the newest object data of server acquisition and is cached to local, this pair Image data can be using APP to user active push including ad data, to speculate that user likes inclined Good data or the object data of other recommendations for actively providing the user.
The object data of the recommendation can be directed to the content on front view and push with front view content Related data, or based on the specific data that user profiles are different user generation, or based on it His purpose is the data that user recommends.
Preferably, it is contemplated that the storage capacity of the terminal of operation APP, the figure of object data can only be obtained As link or character string pointer etc., to pass through link or pointer when specific image or character string is needed Specific data are transferred from server, so as to reduce the object data of acquisition to the burden brought is locally stored.
In addition, in the present embodiment data, Huo Zheye can be obtained from server after switching gesture is determined Other can be selected to obtain the opportunity of objects, for example can be in predetermined time interval or when system be idle Data are obtained from server and be cached in local.
When server is handed down to client terminal object data, current time can be reached into client's end simultaneously End.During terminal buffers object data, the renewal time can in the lump be cached.Object is obtained when next time During data, the renewal time of the object data of local cache is sent to server, server is according to reception To the renewal time determine the object data of renewal for issuing and send client terminal to.
The renewal time of such as object data that server can safeguard the renewal time of reception with it enters Row compares, if the renewal time of its object data safeguarded is later than the received renewal time (assuming that dimension The renewal time of the object data of shield is 16 year 20 points of December 24 day, and the renewal time for receiving is 16 3 points of December 23 day of year), it is determined that object data has renewal, sends the object data of renewal to visitor Family terminal.Otherwise, not for client terminal provides the object data for updating.
When the object data that renewal is not received from server, then obtained in the sub- view from local cache The object data of renewal.
Wherein, the situation that the object data of renewal is not received from server can include:Server determines Object data does not update, therefore does not provide the object data of renewal to client terminal;Or, it is also possible to It is that due to client terminal itself, such as client terminal can not be networked, not have authority acquiring server Data etc..So as to when the object data that renewal is not received from server, then obtain described from local cache The object data updated in sub- view.
Specifically, when client terminal does not receive the object data of renewal this time from server, then can be from The object data of the renewal that local cache is once obtained up to preceding n times before obtaining from server.Wherein N is Positive integer more than or equal to 1.
Object data is cached to local, is determined relative to the preceding object data for once obtaining with server Do not have to be obtained from local cache during new renewal, it is possible to reduce repeatedly consumed to server request data Many flows.
And in view of save flow, can also by the way of self-defined binary protocol compressed object number According to this network transmission compression after data.
In addition, whether obtain the object data for updating from server or local cache, the renewal it is right Image data is that server is issued at random, or obtained at random from local cache.
Specifically, because the number of shown object data in sub- view is limited, such as in sub- view M object is only capable of displaying, and the object data quantity for having renewal safeguarded in server is very big, therefore When obtaining object data from server, P can be obtained by server is random from the object data for having renewal Individual object data is simultaneously issued to client, and wherein P is default positive integer and P is more than or equal to M, or Obtain P object data at random from local cache.
For example, P can as needed be preset for 10, thus every time only from server or local cache with Machine obtains 10 object datas of renewal.
In iOS realizations, the acquisition of object data can be realized with AFNetworking network frames.
103rd, the object data to be shown is refreshed.
Although due to that can show object data in sub- view, when object data updates, son is regarded Figure can't actively refresh the object data of display to be switched, therefore the step can utilize the object for updating Data are treated and are shown in the object data of sub- view and are refreshed, that is, transfer and obtained from server or caching The object data for taking, and the object data that will be transferred as the data that will show be supplied to sub- view with Just the object data of switching is shown wherein.The data transferred in the step be able to will show as sub- view The data source of the object data for showing, the data for needing switching are provided with for sub- view.
In addition, the step can from server provide object data or be stored in the object data of caching Randomly select the object data to be shown.
For example, it is assumed that obtaining P object data from server or local cache, then obtain To after object data, in the step, W therein can be at random transferred from the P object data for obtaining To be supplied to sub- view to represent, the W object data is exactly that can provide in sub- view to individual object data Switch the number of object.Three display object datas are for example provided in sub- view, then can be randomly choosed Three object datas are being supplied to sub- view to switch.So as to be replaced in son using the object data for obtaining Currently displaying object data in view.
When after transferring of object data is completed, i.e., data source has been updated over, then can utilize the object for obtaining The currently displaying object data in sub- view of Refresh Data.Prepare can be regarded in son so as to carry out data The user interface UI elements of object are repainted in figure.
In iOS realizations, can be realized with NSNotification or Delegate.
104th, the object data of renewal is shown in sub- view.
In the step, when sub- view shows object data, can be according to the newest object data for refreshing And according to default displaying model, object data is filled to the sub- view.
Show the front view and sub- view of application on screen that wherein can be in, the front view of application with And sub- view is in same application interface, and sub- view is located at the bottom of front view.
During object data in sub- view is switched over, can't be right to what is shown in front view As impacting.
UI modelings can be carried out to object data previously according to design drawing to build displaying model, wherein The displaying model can include image attributes and/or text attribute of the object data in sub- view.
As a example by using ad data as object data, the image attributes of object data can will including advertisement The image of displaying, and text attribute can be including advertising language etc..
Specifically, corresponding image or lteral data can be obtained from the object data transferred, it can be with To the combination of the image to be shown, map data mining platform, epigraph pixel, the word of screen are presented in Color etc. is pre-defined, and the data that will can be transferred by showing model are carried out according to advance definition The object data for rendering and being finally presented on screen.
Can be realized with UIView in iOS.
What deserves to be explained is, although being realized as an example, for other with iOS in the present embodiment Operating system, there is also similar method to realize corresponding treatment.
Alternatively, when sliding into front view view bottom and continuing to slide using operating gesture, can Think that front view increases pull-up rebound effect.
Embodiment two,
Fig. 2 is a kind of apparatus structure schematic diagram of switching object that the embodiment of the present invention two is provided.Such as Fig. 2 Shown, the device includes switch unit 200, for switching object data, and processing unit 201, uses Switch gesture in catching;Wherein switch unit 200 may further include acquiring unit 202, refreshes again Unit 203 and display unit 204, are described in detail to each unit below:
Processing unit 201, for catching and determines the switching gesture on screen.
Wherein, when it is determined that front view bottom boundary is displayed on screen, such as, by slip gesture, make Obtain front view gradually to move up, be shown on screen to front view bottom boundary, if in this state The operating gesture on screen is captured, then judges whether the operating gesture for capturing is switching gesture, so that The switching of the object data shown by the sub- view included using front view is triggered according to switching gesture.
Wherein application front view and sub- view are in same application interface and show on a terminal screen.
The terminal can including mobile phone, palm PC, personal communication assistant machine etc. portable set.
Processing unit 201 can be by performing following operation to judge whether the operating gesture for capturing is switching Gesture:
Catch and determine skew of the front view bottom boundary relative to display screen bottom caused by slip gesture Whether the side-play amount of generation exceedes default offset threshold;
If it exceeds the default offset threshold, it is determined that the operating gesture for capturing is switching gesture.
Specifically:
When processing unit 201 determines that front view bottom boundary is displayed on screen, if continuing to monitor in one's hands The touch event of gesture, then can obtain the y-coordinate that finger is clicked on screen, including front view bottom sides Y-coordinate when boundary has just been displayed in y-coordinate on screen of corresponding finger when on screen and has unclamped,
The distance that finger is slided can be determined according to two differences of y-coordinate, according to two differences of y-coordinate Value can determine the distance that finger is slided, if the distance that finger is slided exceedes default offset threshold, After the front view shown on screen in thinking to apply is rolled to bottom, also front view is being carried out to continue to look into The slide of the inertia seen, it is determined that capturing switching gesture.
Can cause main view preferably for slip after front view map boundary line is shown in bottom of screen Figure bottom boundary produces the animation effect of skew relative to the skew of display screen bottom.
When being defined as switching gesture, then can trigger acquiring unit 202 and be cut in sub- view with obtaining needs The object data of the renewal changed.
In addition, though under normal circumstances, what is used for the bottom for sliding into front view is all to interface Upward sliding, or be referred to as upper pulling process.But, the present embodiment does not enter to the direction of slip gesture The strict limitation of row, relative to screen whether upward sliding or slide downward or other operations, as long as The bottom that front view can be slided into is within the scope of the present invention.
In iOS realizations, the sliding effect of front view can be realized by UIScrollView, and Obtain and slide skew.
Acquiring unit 202, for the triggering according to switching gesture, obtains from server or local cache The object data of renewal.
Specifically, acquiring unit 202 can be by the way that network is from the newest object data of server acquisition and caches To local, the object data can be included ad data to user's active push using APP, speculate The preference data that user likes or the object data of the recommendation that other are actively provided the user.
The object data of the recommendation can be directed to the content on front view and push with front view content Related data, or based on the specific data that user profiles are different user generation, or based on it His purpose is the data that user recommends.
Preferably, it is contemplated that the storage capacity of the terminal of operation APP, the figure of object data can only be obtained As link or character string pointer etc., to pass through link or pointer when specific image or character string is needed Specific data are transferred from server, so as to reduce the object data of acquisition to the burden brought is locally stored.
In addition, in the present embodiment data, Huo Zheye can be obtained from server after switching gesture is determined Other can be selected to obtain the opportunity of objects, for example can be in predetermined time interval or when system be idle Data are obtained from server and be cached in local.
When server is handed down to client terminal object data, current time can be reached into client's end simultaneously End.During client terminal cache object data, the renewal time can in the lump be cached.Obtained when next time During object data, the renewal time of the object data of local cache is sent to server, server foundation The renewal time for receiving determines the object data of the renewal for issuing and sends client terminal to.
The renewal time of such as object data that server can safeguard the renewal time of reception with it enters Row compares, if the renewal time of its object data safeguarded is later than the received renewal time (assuming that dimension The renewal time of the object data of shield is 16 year 20 points of December 24 day, and the renewal time for receiving is 16 3 points of December 23 day of year), it is determined that object data has renewal, sends the object data of renewal to visitor Family terminal.Otherwise, not for client terminal provides the object data for updating.
When the object data that renewal is not received from server, then obtained in the sub- view from local cache The object data of renewal.
Wherein, the situation that the object data of renewal is not received from server can include:Server determines Object data does not update, therefore does not provide the object data of renewal to client terminal;Or, it is also possible to It is that due to client terminal itself, such as client terminal can not be networked, not have authority acquiring server Data etc..So as to when the object data that renewal is not received from server, then obtain described from local cache The object data updated in sub- view.
Specifically, when client terminal does not receive the object data of renewal this time from server, then can be from The object data of the renewal that local cache is once obtained up to preceding n times before obtaining from server.Wherein N is Positive integer more than or equal to 1.
Object data is cached to local, is determined relative to the preceding object data for once obtaining with server Do not have to be obtained from local cache during new renewal, it is possible to reduce repeatedly consumed to server request data Many flows.
And in view of save flow, can also by the way of self-defined binary protocol compressed object number According to this network transmission compression after data.
In addition, whether obtain the object data for updating from server or local cache, the renewal it is right Image data is that server is issued at random, or obtained at random from local cache.
Specifically, because the number of shown object data in sub- view is limited, such as in sub- view M object is only capable of displaying, and the object data quantity for having renewal safeguarded in server is very big, therefore When obtaining object data from server, P can be obtained by server is random from the object data for having renewal Individual object data is simultaneously issued to client, and wherein P is default positive integer and P is more than or equal to M, or Obtain P object data at random from local cache.
In iOS realizations, the acquisition of object data can be realized with AFNetworking network frames.
Refresh unit 203, for refreshing the object data to be shown.
The number of objects of display to be switched can't actively be refreshed in display data due to display unit 204 According to, therefore refresh unit 203 can utilize the object data for updating to treat the number of objects for being shown in sub- view According to being refreshed, that is, transfer the object data obtained from server or caching, and the object that will be transferred Data are as the data that will show being supplied to display unit 204 to be shown with sub- view.Refresh single Unit 203 can need switching as the data source of display unit 204 with for display unit 204 is provided Data.
In addition, refresh unit 203 can the object data that provided from server or the object for being stored in caching The object data to be shown is randomly selected in data.
For example, it is assumed that obtaining P object data from server or local cache, then obtain To after object data, in the step, W therein can be at random transferred from the P object data for obtaining To be supplied to sub- view to represent, the W object data is exactly that can provide in sub- view to individual object data Switch the number of object.Three display object datas are for example provided in sub- view, then can be randomly choosed Three object datas are being supplied to sub- view to switch.So as to be replaced in son using the object data for obtaining Currently displaying object data in view.
When refresh unit 203 completes after transferring of object data, i.e., data source has been updated over, then can be with profit Refresh currently displaying object data in sub- view with the object data for obtaining.Prepare so as to carry out data So that the user interface UI elements of object can be repainted in display unit 204.
In iOS realizations, can be realized with NSNotification or Delegate.
Display unit 204, for the object data of renewal to be shown in into sub- view.
Display unit 204 can refresh when sub- view shows object data according to refresh unit 203 Newest object data and according to default displaying model, object data is filled to the sub- view.
Wherein display unit can show the front view and sub- view of application, the front view and son of application View is in same application interface and shows on a terminal screen, and sub- view is located at the bottom of front view.
During object data in sub- view is switched over, can't be right to what is shown in front view As impacting.
Display unit 204 can carry out UI modelings to build exhibition previously according to design drawing to object data Representation model, wherein the displaying model can include image attributes and/or text of the object data in sub- view Attribute.
As a example by using ad data as object data, the image attributes of object data can will including advertisement The image of displaying, and text attribute can be including advertising language etc..
Specifically, corresponding figure is obtained in the object data that displaying model can be transferred from refresh unit 203 As or lteral data, it map data mining platform, can will be presented in screen to the combination of the image to be shown Epigraph pixel, text color of curtain etc. are pre-defined, by showing the number that model will can be transferred According to the object data for being rendered and being finally presented on screen according to advance definition.
Can be realized with UIView in iOS.
What deserves to be explained is, although being realized as an example, for other with iOS in the present embodiment Operating system, there is also similar method to realize corresponding treatment.
Alternatively, when sliding into front view view bottom and continuing to slide using operating gesture, can Think that front view increases pull-up rebound effect.
Fig. 3 A-3D are the implementation result figure for implementing methods and apparatus of the present invention, wherein, Fig. 3 A are use The design sketch of front view when family is up slided, Fig. 3 B are to reach effect when front view bottom continues to slide Figure, Fig. 3 C are design sketch when loosing one's grip, and Fig. 3 D are that sub- view content is switched over according to operating gesture Design sketch.Front view bottom shown in wherein 3A-3D is for showing advertising message or guessing you Like the sub- view (part that square frame delimited in Fig. 3 B) of the object data of grade recommendation.By Fig. 3 A-3D It is shown, when making front view bottom boundary be displayed on screen by upward sliding operation, if continuing to slide It is dynamic, it is determined that the slip gesture for capturing is switching gesture, now, front view is located on switching current screen The ad data as object data shown by the sub- view of bottom boundary.
Methods and apparatus of the present invention due to efficiently utilizing the blank in the space of front view interface bottom, Following technique effect can be reached:
(1) realize when user views interface bottom, be actively that user pushes extensively according to operating gesture Accuse or guess that you such as like at the object information of recommendation, increased the same of the recommendation number of times for user's content recommendation Shi Buhui causes user to dislike.I.e. after user is captured to the handover operation of front view bottom, in interface Hold automatic refreshing once, increased content (advertisement etc.) displaying rate.
(2) that innovates make use of interface bottom to switch object data, enhance interface rich.
In several embodiments provided by the present invention, it should be understood that disclosed method and apparatus, Can realize by another way.For example, device embodiment described above is only schematical, For example, the division of the unit, only a kind of division of logic function, can have in addition when actually realizing Dividing mode.
It is described as separating component illustrate unit can be or may not be it is physically separate, make For the part that unit shows can be or may not be physical location, you can with positioned at a place, Or can also be distributed on multiple NEs.Can select according to the actual needs part therein or Person whole units realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit In, or unit be individually physically present, it is also possible to two or more units are integrated in one In individual unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds The form of SFU software functional unit is realized.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all at this Within the spirit and principle of invention, any modification, equivalent substitution and improvements done etc. should be included in Within the scope of protection of the invention.

Claims (14)

1. it is a kind of switch object method, it is characterised in that methods described includes:
When front view bottom boundary is displayed on screen, whether the operating gesture that judgement is captured is switching hand Gesture;
If it is, the object data shown by the sub- view that application front view is included on switching current screen.
2. method according to claim 1, it is characterised in that judge the operating gesture for capturing whether be Switching gesture includes:
Catch and determine to terminate corresponding cunning to slip gesture since front view bottom boundary is displayed on screen Whether side-play amount of the gesture of starting on screen vertical direction exceedes default offset threshold;
If it exceeds the default offset threshold, it is determined that the operating gesture for capturing is switching gesture.
3. method according to claim 1, it is characterised in that application main view on the switching current screen The object data shown by sub- view that figure is included includes:
The object data for updating is obtained from server or local cache;
Treated using the object data for updating and be shown in the object data of sub- view and refreshed;
The object data of the refreshing is shown in the sub- view.
4. method according to claim 3, it is characterised in that described to be obtained from server or local cache The object data for taking renewal includes:
The renewal time of the object data of local cache is sent to the server;
Receive the object data of the renewal that the server determines to issue according to the renewal time for receiving;
If not receiving the object data of renewal from server, obtained in the sub- view from local cache The object data of renewal.
5. method according to claim 3, it is characterised in that the object data of the renewal is server Issue at random, or obtained at random from local cache.
6. the method according to claim any one of 1-5, it is characterised in that methods described also includes: During the sub- view display object data, according to default displaying model, the object data is filled to institute Sub- view is stated, wherein image attributes and/or text category of the displaying model comprising the object data in sub- view Property.
7. the method according to claim any one of 1-5, it is characterised in that the object data includes wide Accuse data, content or other data for actively providing the user for user's recommendation.
8. it is a kind of switch object device, it is characterised in that described device includes:
Processing unit, for when front view bottom boundary is displayed on screen, judging the manipulator for capturing Whether gesture is switching gesture;
Switch unit, for when the operating gesture for judging to capture is switching gesture, switching on current screen Using the object data shown by the sub- view that front view is included.
9. device according to claim 8, it is characterised in that the processing unit is by performing following behaviour Make to judge whether the operating gesture for capturing is switching gesture:
Catch and determine to terminate corresponding cunning to slip gesture since front view bottom boundary is displayed on screen Whether side-play amount of the gesture of starting on screen vertical direction exceedes default offset threshold;
If it exceeds the default offset threshold, it is determined that the operating gesture for capturing is switching gesture.
10. device according to claim 8, it is characterised in that the switch unit includes:
Acquiring unit, for obtaining the object data for updating from server or local cache;
Refresh unit, the object data that sub- view is shown in for being treated using the object data for updating is brushed Newly;
Display unit, for the object data of the refreshing to be shown in into the sub- view.
11. devices according to claim 10, it is characterised in that the acquiring unit is following by performing Operate and obtain the object data for updating with from server or local cache:
The renewal time of the object data of local cache is sent to the server;
Receive the object data of the renewal that the server determines to issue according to the renewal time for receiving;
If not receiving the object data of renewal from server, obtained in the sub- view from local cache The object data of renewal.
12. devices according to claim 10, it is characterised in that the object data of the renewal is service What device was issued at random, or obtained at random from local cache.
13. device according to claim any one of 8-12, it is characterised in that the switch unit is in institute When stating sub- view display object data, according to default displaying model, the object data is filled to described Sub- view, wherein displaying model includes image attributes and/or text attribute of the object data in sub- view.
14. device according to claim any one of 8-12, it is characterised in that the object data includes Ad data, content or other data for actively providing the user for user's recommendation.
CN201511021021.2A 2015-12-30 2015-12-30 A kind of method and apparatus for switching object Pending CN106933482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511021021.2A CN106933482A (en) 2015-12-30 2015-12-30 A kind of method and apparatus for switching object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511021021.2A CN106933482A (en) 2015-12-30 2015-12-30 A kind of method and apparatus for switching object

Publications (1)

Publication Number Publication Date
CN106933482A true CN106933482A (en) 2017-07-07

Family

ID=59442431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511021021.2A Pending CN106933482A (en) 2015-12-30 2015-12-30 A kind of method and apparatus for switching object

Country Status (1)

Country Link
CN (1) CN106933482A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107831977A (en) * 2017-09-28 2018-03-23 晶赞广告(上海)有限公司 Information displaying method and device, computer-readable recording medium, terminal
CN108108221A (en) * 2018-01-02 2018-06-01 武汉斗鱼网络科技有限公司 A kind of method and device of specified operation switching realtime curve
CN108564402A (en) * 2018-03-29 2018-09-21 北京微播视界科技有限公司 Information is shown and method and device for analyzing, the information transfer system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901112A (en) * 2010-08-10 2010-12-01 广东欧珀移动通信有限公司 Control method by sliding list
US20110041092A1 (en) * 2009-08-17 2011-02-17 Xuezhi Zhang Type of Graphical User Interface-Vertical Ribbon
CN104049834A (en) * 2013-03-13 2014-09-17 北京千橡网景科技发展有限公司 Content item displaying method and device for touch equipment
CN104239587A (en) * 2014-10-17 2014-12-24 北京字节跳动网络技术有限公司 Method and device for refreshing news list
CN104272220A (en) * 2012-09-14 2015-01-07 Sk普兰尼特有限公司 System and method for adjusting page transition performance
CN104331485A (en) * 2014-11-13 2015-02-04 沈文策 Method and device for displaying recommended information article
CN104423996A (en) * 2013-09-04 2015-03-18 腾讯科技(深圳)有限公司 View refreshing method and view refreshing device
CN104714748A (en) * 2013-12-13 2015-06-17 三星电子株式会社 Method and apparatus for controlling an electronic device screen
CN104991699A (en) * 2015-06-25 2015-10-21 广州华多网络科技有限公司 Video display control method and apparatus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110041092A1 (en) * 2009-08-17 2011-02-17 Xuezhi Zhang Type of Graphical User Interface-Vertical Ribbon
CN101901112A (en) * 2010-08-10 2010-12-01 广东欧珀移动通信有限公司 Control method by sliding list
CN104272220A (en) * 2012-09-14 2015-01-07 Sk普兰尼特有限公司 System and method for adjusting page transition performance
CN104049834A (en) * 2013-03-13 2014-09-17 北京千橡网景科技发展有限公司 Content item displaying method and device for touch equipment
CN104423996A (en) * 2013-09-04 2015-03-18 腾讯科技(深圳)有限公司 View refreshing method and view refreshing device
CN104714748A (en) * 2013-12-13 2015-06-17 三星电子株式会社 Method and apparatus for controlling an electronic device screen
CN104239587A (en) * 2014-10-17 2014-12-24 北京字节跳动网络技术有限公司 Method and device for refreshing news list
CN104331485A (en) * 2014-11-13 2015-02-04 沈文策 Method and device for displaying recommended information article
CN104991699A (en) * 2015-06-25 2015-10-21 广州华多网络科技有限公司 Video display control method and apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107831977A (en) * 2017-09-28 2018-03-23 晶赞广告(上海)有限公司 Information displaying method and device, computer-readable recording medium, terminal
CN108108221A (en) * 2018-01-02 2018-06-01 武汉斗鱼网络科技有限公司 A kind of method and device of specified operation switching realtime curve
CN108108221B (en) * 2018-01-02 2021-09-07 武汉斗鱼网络科技有限公司 Method and device for switching real-time data display through designated operation
CN108564402A (en) * 2018-03-29 2018-09-21 北京微播视界科技有限公司 Information is shown and method and device for analyzing, the information transfer system

Similar Documents

Publication Publication Date Title
US10509532B2 (en) Progress bar with graphical effects to indicate download progress and connection state
EP2771816B1 (en) Gesture-based search
JP6522164B2 (en) Information acquisition method and device
CN107273031A (en) Information flow page loading method and device
CN106933525B (en) A kind of method and apparatus showing image
CN106933482A (en) A kind of method and apparatus for switching object
JP2016521391A (en) Contextual local image recognition dataset
CN107977132A (en) A kind of method for information display and mobile terminal
CN104159140B (en) A kind of methods, devices and systems of Video processing
CN109032390A (en) Handwriting data caching method, device, equipment and storage medium
CN108897486A (en) A kind of display methods and terminal device
CN106161630A (en) A kind of client screen based on RDP updates display packing
CN109407920A (en) A kind of Status icons display methods, Status icons processing method and relevant device
CN106941538A (en) Information display system, method and apparatus
CN107450830A (en) The method and apparatus that a kind of single screen multiwindow supports Random seismic field simultaneously
JP5563703B2 (en) Content distribution apparatus, content distribution method, content distribution program, and terminal program
JP6339550B2 (en) Terminal program, terminal device, and terminal control method
CN106354449B (en) A kind of online demenstration method of document and client
CN104468994B (en) Method and device for adding remark to unfamiliar number
CN114625469B (en) Information display method, device, equipment and medium based on virtual resource
CN103838466B (en) Information processing method, device and electronic equipment
CN115203603A (en) Table page rendering method and device, electronic device and storage medium
CN104683449B (en) A kind of long- distance tabletop control method based on window structure
CN105022756B (en) A kind of Webpage display process and device
JP5824170B2 (en) Image display device, image display method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170707