WO2015027864A1 - Method, device and touch screen apparatus for refreshing content of draggable listview - Google Patents

Method, device and touch screen apparatus for refreshing content of draggable listview Download PDF

Info

Publication number
WO2015027864A1
WO2015027864A1 PCT/CN2014/084993 CN2014084993W WO2015027864A1 WO 2015027864 A1 WO2015027864 A1 WO 2015027864A1 CN 2014084993 W CN2014084993 W CN 2014084993W WO 2015027864 A1 WO2015027864 A1 WO 2015027864A1
Authority
WO
WIPO (PCT)
Prior art keywords
draggable
listview
content
items
thread
Prior art date
Application number
PCT/CN2014/084993
Other languages
French (fr)
Inventor
Fajing LI
Original Assignee
Tencent Technology (Shenzhen) Company Limited
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 Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Publication of WO2015027864A1 publication Critical patent/WO2015027864A1/en

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/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/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Definitions

  • the invention relates to the field of information refreshing technology, and more particularly, it relates to a method, a device and a touch screen apparatus for refreshing the content of a draggable listview.
  • the draggable listview is provided as a system widget listview corresponding to Android software development kit (SDK), a software development kit; it is a self-defined widget which can change the item sequence in the draggable listview by the user's dragging activities, typically by hand.
  • SDK Android software development kit
  • the user can define the sequence of the content in the listview by dragging the listview, which is closer to the real experience of dragging by hand.
  • the dragging principle in the draggable listview is: using the interface method of point to position (touch point position), which is provided by Android SDK to confirm the dragging position of the item in the listview; using the Window Manager to realize the effect of dragging the floating layer; using the interface method of update view layout to refresh the position of the view in the process of dragging; at last drop the finger to insert the item into the listview.
  • the examples of the present disclosure provides at least a method, a device and a touch screen apparatus for refreshing the content of a draggable list to solve the problem in the prior art that the content displayed in the draggable listview is static, and dynamic content cannot be displayed.
  • a method for refreshing the content of a draggable listview comprising:
  • the triggering the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency comprises: instructing, by the processor, by a handler provided by an operating system, a main user interface (UI) thread to refresh a data source of an adapter of the draggable listview at the preset refreshing frequency to refresh the content of the items of the draggable listview.
  • UI main user interface
  • the instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the data source of the adapter of the draggable listview at the preset refreshing frequency comprises: if the data source is local data, identifying, by the processor, a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, and instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview at the preset refreshing frequency; and if the data source is internet data, instructing, by the processor, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at the preset refreshing frequency.
  • the determining whether the draggable listview is dragged comprises: extracting, by the processor, a value of a flag bit defined in the source code of the drag operation, wherein the flag bit is used for indicating whether the draggable listview is dragged; if the flag bit has a first value, indicating, by the processor, the draggable listview is dragged; and if the flag bit has a second value, indicating, by the processor, the draggable listview is not dragged.
  • the flag bit having the first value corresponds to an object that triggers a down event in the draggable listview
  • the flag bit having the second value corresponds to an object that triggers an up event in the draggable listview
  • the invention also provides a device for refreshing the content of a draggable listview which comprises: a determining module having one or more processors coupled with a memory that is used for determining whether a draggable listview is dragged by a user; a first execution module having one or more processors coupled with a memory that is used for triggering a thread to refresh the content of the items in the draggable listview at a preset refreshing frequency when the determining module determines that the draggable listview is not dragged; a second execution module having one or more processors coupled with a memory that is used for triggering the thread to stop refreshing the content of the items in the draggable listview, performing a drag operation in the draggable listview, after the dragging operation is finished, triggering the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency when the determining module determines that the draggable listview is dragged.
  • the first execution module comprises:
  • a content refreshing unit used for using a handler provided by an operating system to tell a main UI thread to refresh a data source of the draggable listview's adapter at a preset refreshing frequency, so as to refresh the content of the items of the draggable listview.
  • the content refreshing unit comprises: a local data refreshing subunit having one or more processors coupled with a memory that is used for identifying a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, and instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview at the preset refreshing frequency when the data resource is local data; and an internet data ref eshing subimit having one or more processors coupled with a memory that is used for instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at the preset refreshing frequency when the data resource is internet data.
  • a local data refreshing subunit having one or more processors coupled with a memory that is used for identifying a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, and instructing, by the handler provided by the operating
  • the determining module comprises: a value extracting unit having one or more processors coupled with a memory that is used for extracting a value of a flag bit defined in the source code of the drag operation, wherein the flag bit is used for indicating whether the draggable listview is dragged; a first indicating unit having one or more processors coupled with a memory that is used for indicating the draggable listview is dragged when the flag bit has a first value; and a second indicating unit having one or more processors coupled with a memory that is used for indicating the draggable listview is not dragged when the flag has a second value.
  • the invention also provides a touch screen apparatus including the above-mentioned device for refreshing a draggable listview.
  • the invention also provides a non-transitory computer readable storage medium comprising instructions that when executed by a processor cause the processor to:
  • [0020] Determine whether a draggable listview is being dragged by a user; if not, trigger a thread to refresh the content of items in the draggable listview at a preset refreshing frequency, and, if yes: trigger the thread to stop refreshing the content of the items in the draggable listview; perform a drag operation of an item in the draggable listview, and after the dragging operation is finished; trigger the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency.
  • the method when the draggable listview is being dragged, the method triggers the thread to refresh the content of the draggable listview item at a preset ref eshing frequency; and when the draggable listview is not being dragged, the method triggers the thread to stop refreshing the content of the items of the draggable listview, performs the drag operation in the draggable listview; once the dragging operation is finished, triggers a thread to refresh the content of the items of the draggable listview at a preset refreshing frequency.
  • the content displayed in the draggable listview is no longer static.
  • the method can thus dynamically refresh the content of the items of the draggable listview at the preset frequency. Furthermore, it can also dynamically display the content of the items of the draggable listview.
  • FIG. 1 is a flowchart of an example of a method for refreshing the content of a draggable listview of the present disclosure.
  • FIG. 2 is a flowchart of a preferable example of a method for refreshing the content of a draggable listview of the present disclosure.
  • FIG. 3 is a schematic structural diagram of an example of a device for refreshing the content of a draggable listview of the present disclosure.
  • Fig. 4 is a schematic structural diagram of an example of a first execution module of the present disclosure.
  • Fig. 5 is a schematic structural diagram of an example of a content refreshing unit of the present disclosure.
  • Fig. 6 is a schematic structural diagram of an example of a determining module of the present disclosure.
  • Fig. 7 is a schematic structural diagram of an example of a part of a mobile phone associated with a touch screen apparatus of the present disclosure.
  • module may refer to, be part of, or include an Application Specific Integrated Circuit (ASIC); an electronic circuit; a combinational logic circuit; a field programmable gate array (FPGA); a processor (shared, dedicated, or group) that executes code; other suitable hardware components that provide the described functionality; or a combination of some or all of the above, such as in a system-on-chip.
  • ASIC Application Specific Integrated Circuit
  • FPGA field programmable gate array
  • processor shared, dedicated, or group
  • the term module may include memory (shared, dedicated, or group) that stores code executed by the processor.
  • the exemplary environment may include a server, a client, and a communication network.
  • the server and the client may be coupled through the communication network for information exchange, such as sending/receiving identification information, sending/receiving data files such as splash screen images, etc.
  • information exchange such as sending/receiving identification information, sending/receiving data files such as splash screen images, etc.
  • client and one server are shown in the environment, any number of terminals or servers may be included, and other devices may also be included.
  • the communication network may include any appropriate type of communication network for providing network connections to the server and client or among multiple servers or clients.
  • communication network may include the Internet or other types of computer networks or telecommunication networks, either wired or wireless.
  • the disclosed methods and apparatus may be implemented, for example, in a wireless network that includes at least one client.
  • the client may refer to any appropriate user terminal with certain computing capabilities, such as a personal computer (PC), a work station computer, a server computer, a hand-held computing device (tablet), a smart phone or mobile phone, or any other user-side computing device.
  • the client may include a network access device.
  • the client may be stationary or mobile.
  • a server may refer to one or more server computers configured to provide certain server functionalities, such as database management and search engines.
  • a server may also include one or more processors to execute computer programs in parallel.
  • the prior art has technical problems at least as follo s: up to date the content displayed in the draggable listv iew is static and dynamic content cannot be displayed; for example, the items in the draggable listview of a music player can only display the fixed information such as song name and singer, but it can not display the synchronized lyrics of the son being played. This makes the content displayed in the draggable listvie is relatively plain and affects the using experience of the draggable listview for the user.
  • Fig. 1 is a flowchart of an example of a method for refreshing the content of a draggable list vie of the present disclosure.
  • the method may be applied to the dev ices with touch screen, especially to the smart terminals, such as smart phones, tablet computers and so on. Steps of Fig. 1 may be performed by processor 1 - 10 to execute instructions stored in memory 1 - 12. Referrin to Fig. 1 , the method can comprise:
  • Step l OO(SlOO) determining, by a processor, whether the draggable listview is dragged by a user; if not, go to Step 1 10( S 1 10); if yes, go to Step 1 20( S 120);
  • An object (such as a user's finger, a touch pen etc.) can perform the drag operation on the draggable listview.
  • the object is performing a down— move at a designated position of an item on the draggable listview, then we will say, the object is performing a drag operation on the draggable listview, and the draggable listview is being dragged.
  • the method can modify the source code of the drag operation, for example, define a flag bit in the source code of the drag operation, wherein the flag bit is used to indicate whether the draggable listview is being dragged or not. Specifically, the value of the fla bit tells whether the draggable listview is being dragged.
  • the value of the flag bit is set to a first value, for example, the value of the flag bit is set to true to indicate the draggable listview 7 is being dragged.
  • the value of the flag bit is set to a second value, for example, the value of the flag bit is set to false to indicate the draggable listview is not being dragged.
  • the flag bit having the first value is corresponding to an object triggering a down event in the draggable listview
  • the flag having the second value is corresponds to an object triggering an up event in the draggable listview 7 .
  • Step 110(S110) triggering, by the processor, a thread to refresh the content of items in the draggable listview at a preset refreshing frequency.
  • a timer that controls the refreshing frequency may be set in the thread. Owning to the timer, this example can use a handler provided by an operating system to tell a main U I thread to refresh a data source of the draggable listview's adapter at a preset refreshing frequency, so as to refresh the content of the items of the draggable listview.
  • the examples of the present disclosure may provide the following insurance mechanism to ensure the real-time:
  • the data source is local data, identifying a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, using a handler provided by an operating system to tell a main UI thread to refresh the content of draggable listview items with the refreshing content at a preset refreshing frequency.
  • the local storage lyrics have the marks of song playing time, which may be matched w ith that of the songs currently playing (the positioning marking the local data is the song playing time mark). Therefore the lyrics corresponding to current playing time may be achieved from the lyrics of local storage and furthermore the real time refreshing of the lyrics in the draggable listview of music players may be realized.
  • the data source is internet data
  • Step 120(S 120) triggering, by the processor, the thread to stop refreshing the content of the items in the draggable listv iew, performing, by the processor, a drag operation in the draggable listview, after the dragging operation is finished, triggering, by the processor, the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency.
  • the examples of the present disclosure w ill trigger a thread to stop refreshing the content of the items of the draggable listview, and only perform the drag operation in the draggable listview; once the dragging operation is finished, go to Step 1 10( S 1 10 ), i.e., trigger a thread to refresh the content of the items of the draggable list view at a preset refreshing frequency.
  • the method can go to Step 20( S 1 20), i.e. triggering a thread to stop refreshing the content of the items of the draggable listview, then performing the drag operation in the draggable listview, once the dragging operation is finished, triggering a thread to refresh the content of the items of the draggable listview at a preset refreshing frequency
  • the method when the draggable listv iew is not being dragged, the method triggers a thread to refresh the content of the items of the draggable listview; when the draggable listview is being dragged, the method triggers a thread to stop refreshing the content of the items of the draggable listview, then performs the drag operation in the draggable listview, once the dragging operation is finished, triggers a thread to refresh the content of the items of the draggable listview at a preset refreshing frequency. In this way, the content shown in the draggable listview is no longer static and may be refreshed dynamically at a preset refreshing frequency, therefore the method can dynamically display the items of the draggable listview.
  • Fig. 2 is a flowchart of a preferable example of a method for refreshing the content of a draggable listview of the present disclosure. All steps in Fig. 2 may be performed by processor 2- 10 to execute instructions stored in memory 2- 1 2. Referring to Fig. 2, the method can comprise:
  • Step 200(S2Q0) Extracting, by the processor, a value of a flag bit defined in the source code of the drag operation, wherein the flag bit is used for indicating whether the draggable listview is dragged;
  • Step 210(S210) if the flag bit has a first value, go to Step 250(S25Q), if the flag bit has a second value, go to Step 220(S220);
  • flag bit has a first value, it indicates the draggable listview is being dragged, if the flag bit has a second value, it indicates the draggable listview isn't being dragged.
  • Step 230(S23G) if the data source is local data, identifying, by the processor, a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, and instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview at the preset refreshing frequency;
  • UI main user interface
  • Step 240(S240) if the data source is internet data, instructing, by the processor, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at the preset refreshing frequency.
  • UI main user interface
  • Step 260(S260) determining whether the drag operation is finished; if yes, go to Step 220(S220); if not, go to Step 260(S260).
  • the method for refreshing the content of a draggable listview can dynamically refresh the content of the items of the draggable listview at a preset frequency, so as to dynamically display the content of the items of the draggable listv iew.
  • the device for refreshing the content of a draggable listview provided in the examples of the present disclosure will be introduced as follows.
  • the device for refreshing the content of a draggable listview described here can respond to the method for refreshing the content of a draggable listview. Both of them may be cross referenced.
  • Fig. 3 is a schematic structural diagram of an example of a device for refreshing the content of a draggable listview of the present disclosure. All modules or units in Fig. 3 may have one or more processors 3- 10 to execute instructions stored in memory 3- 12. Referring to Fig. 3, the device can comprise:
  • a determining module 1 00 used for determining whether a draggable listview is being dragged
  • a first execution module 200 used for triggering a thread to refresh the content of the items of the draggable listview at a preset refreshing frequency when the determining module 100 outputs a no ;
  • a second execution module 300 used for triggering a thread to stop refreshing the content of the items of the draggable listview, then performing the drag operation in the draggable listview, once the draggin operation is finished, triggerin a thread via the first execution module 200 to refresh the content of the items of the draggable listview at a preset refreshing frequency when the determining module 100 outputs a yes.
  • Fig. 4 is a schematic structural diagram of an example of a first execution module 200 o the present disclosure. All modules or units in Fig. 4 may have one or more processors 4- 1 0 to execute instructions stored in memory 4- 1 2.
  • the first execution module 200 can comprise:
  • 100801 Fi . 5 is a schematic structural diagram of an example of a content refreshing unit 2 1 0 of the present disclosure. All modules or units in Fig. 5 may have one or more processors 5- 1 0 to execute instructions stored in memory 5- 1 2.
  • the content refreshing unit 210 can comprise:
  • a local data refreshing subunit 2 1 1 used for identifying a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, using a handler provided by an operating system to tell a main UI thread to refresh the content of draggable listview items with the refreshing content at a preset refreshing frequency when the data resource is local data;
  • An internet data refreshing subunit 212 used for using a handler provided by the operating system to tell the main UI thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at a preset refreshing frequency when the data resource is internet data.
  • Fig. 6 is a schematic structural diagram of an example of a determining module 100 of the present disclosure. All modules or units in Fig. 6 may have one or more processors 6- 10 to execute instructions stored in memory 6- 12. Referring to Fig. 6, the determining module 100 can comprise:
  • a value extracting unit 1 used for extracting a value of a flag bit defined in the source code of the drag operation, wherein the flag is used for indicating if the listview is being dragged by a user;
  • a first indicating unit 1 1 1 used for indicating the listview is being dragged when the flag bit has a fi st value
  • a second indicating unit 1 12, used for indicating the listview isn't being dragged when the flag has a second value.
  • the flag bit is set to true means the flag bit has the first value.
  • the flag bit having the first value is corresponding to an object triggering a down event in the draggable listview, i.e. the object performs a drag operation on the draggable listview.
  • the flag bit is set to false means the flag bit has the second value.
  • the flag bit having the second value is corresponding to an object triggering an up event in the draggable listview, i.e. the object doesn ' t perform a drag operation on the draggable listview.
  • the device for refreshing the content of a draggable l istview can dynam ically refresh the content of the draggable listview at a preset frequency, so as to dynamically display the content of the items of the draggable listview.
  • the examples of the present disclosure also provide a touch screen apparatus, especially an intelligent terminal, such as a smart phone, a pad etc.
  • the touch screen apparatus includes the above-mentioned device for refreshing the content of a draggable listview.
  • the touch screen devices can include mobile phones, tablet computers, personal digital assistant (PDA), point of sales (POS) , board computer and any electronic device w ith touch screen, taking the mobile phone as an example of touch screen devices:
  • PDA personal digital assistant
  • POS point of sales
  • Fig. 7 is a schematic structural diagram of an example of a part of a mobile phone associated with a touch screen apparatus of the present disclosure.
  • the mobile phone can comprises: radio frequency (RF), circuit 1 1 1 0, memory 1 120, input unit 1 130, display unit 1 140, sensor 1 1 50, audio-frequency circuit 1 160, wireless fidelity (WiFi ) module 1 1 70, processor 1 1 80 and power 1 190.
  • RF radio frequency
  • circuit 1 1 1 0, memory 1 120 input unit 1 130
  • display unit 1 140 display unit 1 140
  • sensor 1 1 50 input unit 1 130
  • audio-frequency circuit 1 160 audio-frequency circuit 1 160
  • WiFi wireless fidelity
  • the structure of the mobile phone shown in Fig. 7 does not constitute to the definition limit of the claimed protection of the mobile phone and it can include more or less units or combinations or a different arrangement of parts.
  • Radio frequency (RF) circuit 1 1 10 may be used to send and receive signals during message texting and talking; in particular, after the downlink information are received from the base station, it is handed over to the processor 1 1 80 for processing ; besides, the up data related is sent to the base station.
  • RF Circuit 11 10 includes but is not limited to antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier ( LNA), and a duplexer, etc.
  • the RF circuit 1 1 10 may also communicate with other equipment according to the wireless communication and network.
  • the described wireless communication can employ any standard or agreement including, but not limited to, the global system for mobile communication (GSM), general packet radio service (GPRS) and code division multiple access (CDMA ), wideband code division miiltipl e access (WCDMA), long term evolution (LTE), email, short message serv ice (SMS, Short Messaging Service), etc.
  • GSM global system for mobile communication
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wideband code division miiltipl e access
  • LTE long term evolution
  • SMS Short Messaging Service
  • Memory 1120 may be used to store software program and module.
  • the processor 1180 can perform a variety of applications and data processing function of the mobile phone by running the software program and the module that is stored in the memory 1 120.
  • Memory 1 120 mainly includes program store area and data storage area; therein the program store area may store the operating system and at least one application required by function (such as voice broadcast function and image display function, etc. ), etc.
  • Data storage area may store the data created by the use of the mobile phone, etc.
  • the memory 1 120 may include high speed random access memory and non-volatile memory, such as at least one disk storage dev ices, flash memory device, or other v olatile solid-state storage device.
  • Input unit 1 130 may be used to receive the input digital or character information, and generate the signal input related to user settings and control by keyboard, mouse, lev er, optical signal or trackball.
  • the input unit 1130 can include touch panel 1 1 3 1 and other input device 1 132.
  • the touch panel 1 1 3 1 also known as a touch screen, can collect the touch performance of the user on or near the surface (for example, the user use fingers, touch pen and any other suitable object or its attachment perform touch sensitive operations in the touch sensitive area on the surface or near surface of the touch panel 1 1 3 1 ), and drive the corresponding connection device according to the preset programs.
  • the touch panel 1 1 3 1 may include touch sensitive surface detection device and touch controller. Therein, touching detecting dev ice may detect the user's touch position, and detect the touch signal, transmit the signal to the touch controller. Then the touch controller receiv es the information from the touching detection device, converts it to touch point coordinate and transmits to the processor 1180, receives the order and executes the commands from the processor 1 1 80.
  • touch panel 1131 may be created by a variety of manners such as resistive, capacitive, infrared, and surface acoustic wave.
  • input unit 1 1 30 can also include other input device 1132.
  • other input device 1 132 can include, but not limited to, one or more of the followings, physical keyboard, function keys, such as volume control button and switch button, etc.), trackball, mouse and operating lever.
  • Display unit 1 140 may be used to display the information input by the user, or information provided to the user and the menu of the mobile phone.
  • Display unit 1 140 can include display panel 1 14 1 , and optionally, a liquid crystal display (LCD) and organic light emitting diode (OLED) and other forms may be used to configure the display panel 1 141 .
  • LCD liquid crystal display
  • OLED organic light emitting diode
  • touch panel 1131 may cover the surface of display panel 1141.
  • the signal is transmitted to the processor 1 1 80 to determine the type of touch events and then the processor 1 1 80 can provide the corresponding visual output on the display panel 1 1 3 1 according to the type of touch events.
  • the touch panel 1 13 1 and the display panel 1 14 1 performed the input and output function as two separate parts. But in certain exemplary examples, the touch panel 1 13 1 and the display panel 1 14 1 may be integrated to perform the input and output functions.
  • the mobile phone 1100 can also include at least one sensor 1 1 50, such as an optical sensor, a motion sensor and other sensors.
  • the light sensor can include the ambient light sensor and proximity transducer.
  • the ambient light sensor can adjust the brightness of the display panel 1 141 according to the light and shade of the ambient, and the proximity transducer can shut down the backlight and/or the display panel 1 1 4 1 when the mobile phone moved to near the ear.
  • an acceleration of gravity sensor can detect the value of the acceleration in all directions (usually three axises); when it is in a still state, it may detect the value and direction of gravity and it can also be used to identify the applications of the state of the mobile phone (for example, switching the directio of the screen between horizontal and vertical, playing relevant game, magnetometer stance calibration), functions related with vibration recognition (such as a pedometer and percussion) and so on.
  • a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and other sensors could also be configured.
  • Audio circuit 1 160, speakers 1 161 , microphones 1 162 can provide audio interface between the user and the mobile phone.
  • Audio circuit 1 1 60 converts the audio data received to electrical signals, transmits it to a speaker 1 161 and then the sound signal is converted by the speaker 1 1 61 and output.
  • the microphone 1 1 62 collects the voice signal and converts it into electrical signal.
  • the audio circuit 1 160 receives the data and converts it to audio data. After the audio data is output into the processor 1 1 80, it is sent to another mobile phone by the RF circuit 1 160, or the audio data is output to the memory 1 1 20 for further processing.
  • WiFi belongs to the short distance wireless transmission technology.
  • the mobile phone can help users send and receive E-mails, brow se the webpages and get access to streaming media, etc with the WiFi module 1 1 70. It provides users with wireless broadband Internet access.
  • the Fig. 7 shows the WiFi module 1 1 70, understandably, it does not belong to a necessity of the constitution of the mobile phone 1 100, which may be completely omitted w ithout changing the nature limit of the present disclosure according to the need.
  • the processor 1 1 80 is the control center of the mobile phone, using a variety of interfaces and wirings to connect each part of the whole mobile phone. It can perform the functions of the mobile phone and process data by running or executing software procedure and/or modules stored in the memory 1 120, as well as calling the data stored in the memory 1 120, to do the overall monitoring of the mobile phone.
  • the processor 1 1 80 may include one or more than one processing units.
  • the processor 1 1 80 may be an integrated application processor and modem processor.
  • the application processor mainly deals with the main processor operating system, the user interface and application progress, etc.
  • the modem processor mainly deals with wireless communication. Understandably, the modem processor may be integrated not into the processor 1180.
  • the mobile phone 1 100 also includes the power supply 1 190 for supplying power to each part (such as a battery).
  • the power may be connected to the processor 1 1 80 logically according to the power management system, and therefore it may be realized that a function of management of charge, discharge, and power consumption according to the power management system management.
  • the mobile phone 1100 may also include camera and Bluetooth module, etc.
  • the processor 1 1 80 included in the touch screen device may also perform the follow ing functions:
  • the draggable listv iew may be displayed in the touch screen device.
  • Software module may be placed in the random access memory (RAM), memory, read-only memory (ROM), electrically alterable programmable ROM, electrically erasable programmable ROM, register, hard disk, CD-ROM disk, mobile storage medium, or in any other form of storage medium known in the art.
  • Computer readable medium that may be used to store software may be either transitory or non-transitory.

Abstract

A method, a device and a touch screen device for refreshing the content of a draggable listview are provided. The method includes determining, by a processor, whether the draggable listview is dragged by a user; if not, triggering, by the processor, a thread to refresh the content of items in the draggable listview at a preset refreshing frequency; if yes, triggering, by the processor, the thread to stop refreshing the content of the items in the draggable listview, performing, by the processor, a drag operation in the draggable listview, after the dragging operation is finished, triggering, by the processor, the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency.

Description

Description
METHOD, DEVICE AND TOUCH SCREEN APPARATUS FOR REFRESHING
CONTENT OF DRAGGABLE LISTVIEW
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] The application claims priority to Chinese Patent Application No.
201310390588.1, filed on August 30, 2013, which is incorporated by reference in its entirety.
FIELD OF THE TECHNOLOGY
[0002] The invention relates to the field of information refreshing technology, and more particularly, it relates to a method, a device and a touch screen apparatus for refreshing the content of a draggable listview.
BACKGROUND OF THE TECHNOLOGY
[0003] The draggable listview is provided as a system widget listview corresponding to Android software development kit (SDK), a software development kit; it is a self-defined widget which can change the item sequence in the draggable listview by the user's dragging activities, typically by hand. Up to now, it has been applied to the music player and switch settings in the smart phones. The user can define the sequence of the content in the listview by dragging the listview, which is closer to the real experience of dragging by hand.
100041 At present, the dragging principle in the draggable listview is: using the interface method of point to position (touch point position), which is provided by Android SDK to confirm the dragging position of the item in the listview; using the Window Manager to realize the effect of dragging the floating layer; using the interface method of update view layout to refresh the position of the view in the process of dragging; at last drop the finger to insert the item into the listview.
SUMMARY [0005] In view of this, the examples of the present disclosure provides at least a method, a device and a touch screen apparatus for refreshing the content of a draggable list to solve the problem in the prior art that the content displayed in the draggable listview is static, and dynamic content cannot be displayed.
100061 To realize the purpose mentioned abov e, the examples of the present disclosure prov ides the following technical solutions.
[0007] A method for refreshing the content of a draggable listview comprising:
[0008] Determining, by a processor, whether the draggable listview is dragged by a user; if not, triggering, by the processor, a thread to refresh the content of items in the draggable listview at a preset refreshing frequency; if yes, triggering, by the processor, the thread to stop refreshing the content of the items in the draggable listview, performing, by the processor, a drag operation in the draggable listview, after the dragging operation is finished, triggering, by the processor, the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency.
[0009] Wherein the triggering the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency comprises: instructing, by the processor, by a handler provided by an operating system, a main user interface (UI) thread to refresh a data source of an adapter of the draggable listview at the preset refreshing frequency to refresh the content of the items of the draggable listview.
[0010] Wherein the instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the data source of the adapter of the draggable listview at the preset refreshing frequency comprises: if the data source is local data, identifying, by the processor, a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, and instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview at the preset refreshing frequency; and if the data source is internet data, instructing, by the processor, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at the preset refreshing frequency. [0011] Wherein the determining whether the draggable listview is dragged comprises: extracting, by the processor, a value of a flag bit defined in the source code of the drag operation, wherein the flag bit is used for indicating whether the draggable listview is dragged; if the flag bit has a first value, indicating, by the processor, the draggable listview is dragged; and if the flag bit has a second value, indicating, by the processor, the draggable listview is not dragged.
[0012] Wherein the flag bit having the first value corresponds to an object that triggers a down event in the draggable listview, and the flag bit having the second value corresponds to an object that triggers an up event in the draggable listview.
|00131 The invention also prov ides a device for refreshing the content of a draggable listview which comprises: a determining module having one or more processors coupled with a memory that is used for determining whether a draggable listview is dragged by a user; a first execution module having one or more processors coupled with a memory that is used for triggering a thread to refresh the content of the items in the draggable listview at a preset refreshing frequency when the determining module determines that the draggable listview is not dragged; a second execution module having one or more processors coupled with a memory that is used for triggering the thread to stop refreshing the content of the items in the draggable listview, performing a drag operation in the draggable listview, after the dragging operation is finished, triggering the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency when the determining module determines that the draggable listview is dragged.
[0014] Wherein the first execution module comprises:
[0015] A content refreshing unit, used for using a handler provided by an operating system to tell a main UI thread to refresh a data source of the draggable listview's adapter at a preset refreshing frequency, so as to refresh the content of the items of the draggable listview.
[0016] Wherein the content refreshing unit comprises: a local data refreshing subunit having one or more processors coupled with a memory that is used for identifying a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, and instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview at the preset refreshing frequency when the data resource is local data; and an internet data ref eshing subimit having one or more processors coupled with a memory that is used for instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at the preset refreshing frequency when the data resource is internet data.
[0017] Wherein the determining module comprises: a value extracting unit having one or more processors coupled with a memory that is used for extracting a value of a flag bit defined in the source code of the drag operation, wherein the flag bit is used for indicating whether the draggable listview is dragged; a first indicating unit having one or more processors coupled with a memory that is used for indicating the draggable listview is dragged when the flag bit has a first value; and a second indicating unit having one or more processors coupled with a memory that is used for indicating the draggable listview is not dragged when the flag has a second value.
[0018] The invention also provides a touch screen apparatus including the above-mentioned device for refreshing a draggable listview.
[0019] The invention also provides a non-transitory computer readable storage medium comprising instructions that when executed by a processor cause the processor to:
[0020] Determine whether a draggable listview is being dragged by a user; if not, trigger a thread to refresh the content of items in the draggable listview at a preset refreshing frequency, and, if yes: trigger the thread to stop refreshing the content of the items in the draggable listview; perform a drag operation of an item in the draggable listview, and after the dragging operation is finished; trigger the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency.
[0021] In view of the technical proposal mentioned above, in the examples of the present disclosure, when the draggable listview is being dragged, the method triggers the thread to refresh the content of the draggable listview item at a preset ref eshing frequency; and when the draggable listview is not being dragged, the method triggers the thread to stop refreshing the content of the items of the draggable listview, performs the drag operation in the draggable listview; once the dragging operation is finished, triggers a thread to refresh the content of the items of the draggable listview at a preset refreshing frequency.
[0022] Therefore, the content displayed in the draggable listview is no longer static. The method can thus dynamically refresh the content of the items of the draggable listview at the preset frequency. Furthermore, it can also dynamically display the content of the items of the draggable listview.
BRIEF DESCRIPTION OF THE DRAWINGS
[0023] To explain the technical proposals of the examples of the present disclosure or prior art more clearly, the appended drawings used in the examples are briefly described hereunder. Apparently, the following described drawings are some examples of the present disclosure, but for persons skilled in the art, other drawings may be obtained without creative works according to these drawings.
[0024] The system and/or method may be better understood with reference to the following drawings and description. Non-limiting and non-exhaustive descriptions are described with reference to the following drawings. The components in the figures are not necessarily to scale, emphasis instead being placed upon illustrating principles. In the figures, like referenced numerals may refer to like parts throughout the different figures unless otherwise specified.
[0025] Fig. 1 is a flowchart of an example of a method for refreshing the content of a draggable listview of the present disclosure.
[0026] Fig. 2 is a flowchart of a preferable example of a method for refreshing the content of a draggable listview of the present disclosure.
[0027] Fig. 3 is a schematic structural diagram of an example of a device for refreshing the content of a draggable listview of the present disclosure.
[0028] Fig. 4 is a schematic structural diagram of an example of a first execution module of the present disclosure.
[0029] Fig. 5 is a schematic structural diagram of an example of a content refreshing unit of the present disclosure.
[0030] Fig. 6 is a schematic structural diagram of an example of a determining module of the present disclosure.
[0031] Fig. 7 is a schematic structural diagram of an example of a part of a mobile phone associated with a touch screen apparatus of the present disclosure.
DETAILED DESCRIPTION OF ILLUSTRATED EXAMPLES
[0032] The principles described herein may be embodied in many different forms. Not all of the depicted components may be required, however, and some implementations may include additional components. Variations in the arrangement and type of the components may be made without departing from the spirit or scope of the claims as set forth herein. Additional, different or fewer components may be provided.
[0033] Reference throughout this specification to "one example," "an example," "examples," "one embodiment," "an embodiment," "example embodiment," or the like in the singular or plural means that one or more particular features, structures, or characteristics described in connection with an embodiment or an example is included in at least one embodiment or one example of the present disclosure. Thus, the appearances of the phrases "in one embodiment," "in an embodiment," "in an example embodiment," "in one example," "in an example," or the like in the singular or plural in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments or examples.
[0034] The terminology used in the description of the invention herein is for the purpose of describing particular examples only and is not intended to be limiting of the invention. As used in the description of the invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Also, as used in the description herein and throughout the claims that follow, the meaning of "in" includes "in" and "on" unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. It will be further understood that the terms "may include," "including," "comprises," and/or "comprising," when used in this specification, specify the presence of stated features, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, operations, elements, components, and/or groups thereof.
[0035] As used herein, the terms "module," "unit" may refer to, be part of, or include an Application Specific Integrated Circuit (ASIC); an electronic circuit; a combinational logic circuit; a field programmable gate array (FPGA); a processor (shared, dedicated, or group) that executes code; other suitable hardware components that provide the described functionality; or a combination of some or all of the above, such as in a system-on-chip. The term module may include memory (shared, dedicated, or group) that stores code executed by the processor.
[0036] The exemplary environment may include a server, a client, and a communication network. The server and the client may be coupled through the communication network for information exchange, such as sending/receiving identification information, sending/receiving data files such as splash screen images, etc. Although only one client and one server are shown in the environment, any number of terminals or servers may be included, and other devices may also be included.
[0037] The communication network may include any appropriate type of communication network for providing network connections to the server and client or among multiple servers or clients. For example, communication network may include the Internet or other types of computer networks or telecommunication networks, either wired or wireless. In a certain embodiment, the disclosed methods and apparatus may be implemented, for example, in a wireless network that includes at least one client.
[0038] In some cases, the client may refer to any appropriate user terminal with certain computing capabilities, such as a personal computer (PC), a work station computer, a server computer, a hand-held computing device (tablet), a smart phone or mobile phone, or any other user-side computing device. In various embodiments, the client may include a network access device. The client may be stationary or mobile.
[0039] A server, as used herein, may refer to one or more server computers configured to provide certain server functionalities, such as database management and search engines. A server may also include one or more processors to execute computer programs in parallel.
[0040] It should be noticed that, the embodiments/examples and the features in the embodiments/examples may be combined with each other in a no conflict condition. This invention will become apparent from the following detailed description when taken in conjunction with the accompanying drawings.
[0041] It should be noticed that, the steps illustrated in the flowchart of the drawings may be performed in a set of computer device with executable program codes. And the order of the steps may be different from that in the drawings under some status, although a logic order is shown in the flowchart.
[0042] The puipose, technical proposal and advantages in the examples of the present disclosure will become more clear and complete from the following detailed description when taken in conjunction with the appended drawings. Apparently, the examples described thereinafter are merely a part of examples of the present disclosure, not all examples. Persons skilled in the art can obtain all other examples without creative works, based on these examples, which pertains to the protection scope of the present disclosure.
100431 Inventors of the present disclosure have found in the process of research and practice, the prior art has technical problems at least as follo s: up to date the content displayed in the draggable listv iew is static and dynamic content cannot be displayed; for example, the items in the draggable listview of a music player can only display the fixed information such as song name and singer, but it can not display the synchronized lyrics of the son being played. This makes the content displayed in the draggable listvie is relatively plain and affects the using experience of the draggable listview for the user.
100441 Fig. 1 is a flowchart of an example of a method for refreshing the content of a draggable list vie of the present disclosure. The method may be applied to the dev ices with touch screen, especially to the smart terminals, such as smart phones, tablet computers and so on. Steps of Fig. 1 may be performed by processor 1 - 10 to execute instructions stored in memory 1 - 12. Referrin to Fig. 1 , the method can comprise:
[0045] Step l OO(SlOO), determining, by a processor, whether the draggable listview is dragged by a user; if not, go to Step 1 10( S 1 10); if yes, go to Step 1 20( S 120); [0046] An object (such as a user's finger, a touch pen etc.) can perform the drag operation on the draggable listview. When the object is performing a down— move at a designated position of an item on the draggable listview, then we will say, the object is performing a drag operation on the draggable listview, and the draggable listview is being dragged.
[0047] In an optional example, the method can modify the source code of the drag operation, for example, define a flag bit in the source code of the drag operation, wherein the flag bit is used to indicate whether the draggable listview is being dragged or not. Specifically, the value of the fla bit tells whether the draggable listview is being dragged.
100481 When a dra operation performed by an object is detected, the value of the flag bit is set to a first value, for example, the value of the flag bit is set to true to indicate the draggable listview7 is being dragged. When no drag operation is detected, the value of the flag bit is set to a second value, for example, the value of the flag bit is set to false to indicate the draggable listview is not being dragged.
100491 It should be understood that setting the first value to true and setting the second value to false is just an available option. The first value may also be set to 1 and the second value may be set to 0. The examples of the present disclosure make no limitation on how7 to set the specific values of flag bit.
100501 As mentioned above, when an object is performing a down-move at a designated position of an item in the draggable listview, that is to say, the object is performing a drag operation on the draggable listview. Therefore, in the examples of the present disclosure, the flag bit having the first value is corresponding to an object triggering a down event in the draggable listview, the flag having the second value is corresponds to an object triggering an up event in the draggable listview7.
[0051] Step 110(S110), triggering, by the processor, a thread to refresh the content of items in the draggable listview at a preset refreshing frequency.
[0052] Optionally, by triggering a thread, a timer that controls the refreshing frequency may be set in the thread. Owning to the timer, this example can use a handler provided by an operating system to tell a main U I thread to refresh a data source of the draggable listview's adapter at a preset refreshing frequency, so as to refresh the content of the items of the draggable listview.
[0053] In order to refresh the content of the items of the draggable listview in real-time, the examples of the present disclosure may provide the following insurance mechanism to ensure the real-time:
100541 If the data source is local data, identifying a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, using a handler provided by an operating system to tell a main UI thread to refresh the content of draggable listview items with the refreshing content at a preset refreshing frequency.
100551 Taking the draggable listv iew in the music player for example, due to the data source is local data, the local storage lyrics have the marks of song playing time, which may be matched w ith that of the songs currently playing (the positioning marking the local data is the song playing time mark). Therefore the lyrics corresponding to current playing time may be achieved from the lyrics of local storage and furthermore the real time refreshing of the lyrics in the draggable listview of music players may be realized.
100561 If the data source is internet data, using a handler provided by the operating system to tell the main UI thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at a preset refreshing frequency.
[0057] In an optional example, when the flag bit having the second value is detected, the method goes to Step l l O(SH O), i.e. triggering a thread to refresh the content of the items of the draggable list v iew at a preset refreshing frequency.
100581 Step 120(S 120), triggering, by the processor, the thread to stop refreshing the content of the items in the draggable listv iew, performing, by the processor, a drag operation in the draggable listview, after the dragging operation is finished, triggering, by the processor, the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency.
100591 Because refreshing the content of the items of the draggable listview and performing a drag operation in the draggable listview both need to be executed by the main UI thread, if refreshing the content of the items of the draggable listview and performing a drag operation in the draggable listview at the same time may easily lead to a stuck or a pause on the display interface of a touch screen apparatus, which may affect the user's experience.
100601 Therefore, when the draggable listview being dragged is detected, the examples of the present disclosure w ill trigger a thread to stop refreshing the content of the items of the draggable listview, and only perform the drag operation in the draggable listview; once the dragging operation is finished, go to Step 1 10( S 1 10 ), i.e., trigger a thread to refresh the content of the items of the draggable list view at a preset refreshing frequency.
100611 In an optional example, when the flag bit having a first value is detected, the method can go to Step 20( S 1 20), i.e. triggering a thread to stop refreshing the content of the items of the draggable listview, then performing the drag operation in the draggable listview, once the dragging operation is finished, triggering a thread to refresh the content of the items of the draggable listview at a preset refreshing frequency
100621 In the examples of the present disclosure, when the draggable listv iew is not being dragged, the method triggers a thread to refresh the content of the items of the draggable listview; when the draggable listview is being dragged, the method triggers a thread to stop refreshing the content of the items of the draggable listview, then performs the drag operation in the draggable listview, once the dragging operation is finished, triggers a thread to refresh the content of the items of the draggable listview at a preset refreshing frequency. In this way, the content shown in the draggable listview is no longer static and may be refreshed dynamically at a preset refreshing frequency, therefore the method can dynamically display the items of the draggable listview.
100631 Fig. 2 is a flowchart of a preferable example of a method for refreshing the content of a draggable listview of the present disclosure. All steps in Fig. 2 may be performed by processor 2- 10 to execute instructions stored in memory 2- 1 2. Referring to Fig. 2, the method can comprise:
[0064] Step 200(S2Q0), Extracting, by the processor, a value of a flag bit defined in the source code of the drag operation, wherein the flag bit is used for indicating whether the draggable listview is dragged;
100651 Step 210(S210), if the flag bit has a first value, go to Step 250(S25Q), if the flag bit has a second value, go to Step 220(S220);
[0066] If the flag bit has a first value, it indicates the draggable listview is being dragged, if the flag bit has a second value, it indicates the draggable listview isn't being dragged.
[0067] Step 220(S220), determining the type of the data source of the draggable listview's adapter;
[0068] Step 230(S23G), if the data source is local data, identifying, by the processor, a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, and instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview at the preset refreshing frequency;
[0069] Step 240(S240), if the data source is internet data, instructing, by the processor, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at the preset refreshing frequency.
[0070] Step 250(S250), performing the drag operation in the draggable listv iew;
[0071] Step 260(S260), determining whether the drag operation is finished; if yes, go to Step 220(S220); if not, go to Step 260(S260).
[0072] In the examples of the present disclosure, the method for refreshing the content of a draggable listview can dynamically refresh the content of the items of the draggable listview at a preset frequency, so as to dynamically display the content of the items of the draggable listv iew.
[0073] The device for refreshing the content of a draggable listview provided in the examples of the present disclosure will be introduced as follows. The device for refreshing the content of a draggable listview described here can respond to the method for refreshing the content of a draggable listview. Both of them may be cross referenced.
[0074] Fig. 3 is a schematic structural diagram of an example of a device for refreshing the content of a draggable listview of the present disclosure. All modules or units in Fig. 3 may have one or more processors 3- 10 to execute instructions stored in memory 3- 12. Referring to Fig. 3, the device can comprise:
[0075] A determining module 1 00, used for determining whether a draggable listview is being dragged;
[0076] A first execution module 200, used for triggering a thread to refresh the content of the items of the draggable listview at a preset refreshing frequency when the determining module 100 outputs a no ;
[0077] A second execution module 300, used for triggering a thread to stop refreshing the content of the items of the draggable listview, then performing the drag operation in the draggable listview, once the draggin operation is finished, triggerin a thread via the first execution module 200 to refresh the content of the items of the draggable listview at a preset refreshing frequency when the determining module 100 outputs a yes.
[0078] Fig. 4 is a schematic structural diagram of an example of a first execution module 200 o the present disclosure. All modules or units in Fig. 4 may have one or more processors 4- 1 0 to execute instructions stored in memory 4- 1 2. Referring to Fig. 4, the first execution module 200 can comprise:
[0079] A content refreshing unit 2 10, used for usin a handler provided by an operating system to tell a main UI thread to refresh a data source of the draggable listview's adapter at a preset refreshing frequency, so as to refresh the content of the items of the draggable listview.
100801 Fi . 5 is a schematic structural diagram of an example of a content refreshing unit 2 1 0 of the present disclosure. All modules or units in Fig. 5 may have one or more processors 5- 1 0 to execute instructions stored in memory 5- 1 2. Referring to Fig. 5, the content refreshing unit 210 can comprise:
100811 A local data refreshing subunit 2 1 1 , used for identifying a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, using a handler provided by an operating system to tell a main UI thread to refresh the content of draggable listview items with the refreshing content at a preset refreshing frequency when the data resource is local data;
100821 An internet data refreshing subunit 212, used for using a handler provided by the operating system to tell the main UI thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at a preset refreshing frequency when the data resource is internet data.
100831 Fig. 6 is a schematic structural diagram of an example of a determining module 100 of the present disclosure. All modules or units in Fig. 6 may have one or more processors 6- 10 to execute instructions stored in memory 6- 12. Referring to Fig. 6, the determining module 100 can comprise:
[0084] A value extracting unit 1 10, used for extracting a value of a flag bit defined in the source code of the drag operation, wherein the flag is used for indicating if the listview is being dragged by a user;
100851 A first indicating unit 1 1 1 , used for indicating the listview is being dragged when the flag bit has a fi st value;
100861 A second indicating unit 1 12, used for indicating the listview isn't being dragged when the flag has a second value.
[0087] In an optional example, the flag bit is set to true means the flag bit has the first value. The flag bit having the first value is corresponding to an object triggering a down event in the draggable listview, i.e. the object performs a drag operation on the draggable listview. The flag bit is set to false means the flag bit has the second value. The flag bit having the second value is corresponding to an object triggering an up event in the draggable listview, i.e. the object doesn't perform a drag operation on the draggable listview.
[0088] In the examples of the present disclosure, the device for refreshing the content of a draggable l istview can dynam ically refresh the content of the draggable listview at a preset frequency, so as to dynamically display the content of the items of the draggable listview. [0089] The examples of the present disclosure also provide a touch screen apparatus, especially an intelligent terminal, such as a smart phone, a pad etc. The touch screen apparatus includes the above-mentioned device for refreshing the content of a draggable listview.
100901 The hardware construction of the touch screen device provided in the examples of the present disclosure will be described as follows. Notably, the refreshing flowchart towards the content of the draggable listview described here can respond to the refreshing method towards the content of the draggable listview.
100911 In the examples of the present disclosure, the touch screen devices can include mobile phones, tablet computers, personal digital assistant (PDA), point of sales (POS) , board computer and any electronic device w ith touch screen, taking the mobile phone as an example of touch screen devices:
100921 Fig. 7 is a schematic structural diagram of an example of a part of a mobile phone associated with a touch screen apparatus of the present disclosure.
[0093] Referring to Fig. 7, the mobile phone can comprises: radio frequency (RF), circuit 1 1 1 0, memory 1 120, input unit 1 130, display unit 1 140, sensor 1 1 50, audio-frequency circuit 1 160, wireless fidelity (WiFi ) module 1 1 70, processor 1 1 80 and power 1 190. It may be understood by the technicians in the art that the structure of the mobile phone shown in Fig. 7 does not constitute to the definition limit of the claimed protection of the mobile phone and it can include more or less units or combinations or a different arrangement of parts.
100941 Detailed descriptions of each part of the constitution of the mobile phone shown in Fig.7 are as follows:
100951 Radio frequency (RF) circuit 1 1 10 may be used to send and receive signals during message texting and talking; in particular, after the downlink information are received from the base station, it is handed over to the processor 1 1 80 for processing ; besides, the up data related is sent to the base station. Usually, RF Circuit 11 10 includes but is not limited to antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier ( LNA), and a duplexer, etc. In addition, the RF circuit 1 1 10 may also communicate with other equipment according to the wireless communication and network. The described wireless communication can employ any standard or agreement including, but not limited to, the global system for mobile communication (GSM), general packet radio service (GPRS) and code division multiple access (CDMA ), wideband code division miiltipl e access (WCDMA), long term evolution (LTE), email, short message serv ice (SMS, Short Messaging Service), etc.
[0096] Memory 1120 may be used to store software program and module. The processor 1180 can perform a variety of applications and data processing function of the mobile phone by running the software program and the module that is stored in the memory 1 120. Memory 1 120 mainly includes program store area and data storage area; therein the program store area may store the operating system and at least one application required by function (such as voice broadcast function and image display function, etc. ), etc. Data storage area may store the data created by the use of the mobile phone, etc.
[0097] In addition, the memory 1 120 may include high speed random access memory and non-volatile memory, such as at least one disk storage dev ices, flash memory device, or other v olatile solid-state storage device.
100981 Input unit 1 130 may be used to receive the input digital or character information, and generate the signal input related to user settings and control by keyboard, mouse, lev er, optical signal or trackball.
100991 Specifically, the input unit 1130 can include touch panel 1 1 3 1 and other input device 1 132. The touch panel 1 1 3 1 , also known as a touch screen, can collect the touch performance of the user on or near the surface (for example, the user use fingers, touch pen and any other suitable object or its attachment perform touch sensitive operations in the touch sensitive area on the surface or near surface of the touch panel 1 1 3 1 ), and drive the corresponding connection device according to the preset programs.
[00100] Optionally, the touch panel 1 1 3 1 may include touch sensitive surface detection device and touch controller. Therein, touching detecting dev ice may detect the user's touch position, and detect the touch signal, transmit the signal to the touch controller. Then the touch controller receiv es the information from the touching detection device, converts it to touch point coordinate and transmits to the processor 1180, receives the order and executes the commands from the processor 1 1 80.
1001011 In addition, touch panel 1131 may be created by a variety of manners such as resistive, capacitive, infrared, and surface acoustic wave. Besides touch panel 1 13 1 , input unit 1 1 30 can also include other input device 1132. Specifically, other input device 1 132 can include, but not limited to, one or more of the followings, physical keyboard, function keys, such as volume control button and switch button, etc.), trackball, mouse and operating lever.
|001021 Display unit 1 140 may be used to display the information input by the user, or information provided to the user and the menu of the mobile phone. Display unit 1 140 can include display panel 1 14 1 , and optionally, a liquid crystal display (LCD) and organic light emitting diode (OLED) and other forms may be used to configure the display panel 1 141 .
[00103] Furthermore, touch panel 1131 may cover the surface of display panel 1141. When the touch performance is detected on or near the touch panel 1131, the signal is transmitted to the processor 1 1 80 to determine the type of touch events and then the processor 1 1 80 can provide the corresponding visual output on the display panel 1 1 3 1 according to the type of touch events. Although in Fig. 7, the touch panel 1 13 1 and the display panel 1 14 1 performed the input and output function as two separate parts. But in certain exemplary examples, the touch panel 1 13 1 and the display panel 1 14 1 may be integrated to perform the input and output functions.
[00104] The mobile phone 1100 can also include at least one sensor 1 1 50, such as an optical sensor, a motion sensor and other sensors. In particular, the light sensor can include the ambient light sensor and proximity transducer. Therein, the ambient light sensor can adjust the brightness of the display panel 1 141 according to the light and shade of the ambient, and the proximity transducer can shut down the backlight and/or the display panel 1 1 4 1 when the mobile phone moved to near the ear.
[00105] As a motion sensor, an acceleration of gravity sensor can detect the value of the acceleration in all directions (usually three axises); when it is in a still state, it may detect the value and direction of gravity and it can also be used to identify the applications of the state of the mobile phone (for example, switching the directio of the screen between horizontal and vertical, playing relevant game, magnetometer stance calibration), functions related with vibration recognition (such as a pedometer and percussion) and so on. As for the mobile phone, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and other sensors could also be configured.
|001061 Audio circuit 1 160, speakers 1 161 , microphones 1 162 can provide audio interface between the user and the mobile phone. Audio circuit 1 1 60 converts the audio data received to electrical signals, transmits it to a speaker 1 161 and then the sound signal is converted by the speaker 1 1 61 and output. The microphone 1 1 62, on the other hand, collects the voice signal and converts it into electrical signal. The audio circuit 1 160 receives the data and converts it to audio data. After the audio data is output into the processor 1 1 80, it is sent to another mobile phone by the RF circuit 1 160, or the audio data is output to the memory 1 1 20 for further processing.
|001071 WiFi belongs to the short distance wireless transmission technology. The mobile phone can help users send and receive E-mails, brow se the webpages and get access to streaming media, etc with the WiFi module 1 1 70. It provides users with wireless broadband Internet access. Although the Fig. 7 shows the WiFi module 1 1 70, understandably, it does not belong to a necessity of the constitution of the mobile phone 1 100, which may be completely omitted w ithout changing the nature limit of the present disclosure according to the need.
[00108] The processor 1 1 80 is the control center of the mobile phone, using a variety of interfaces and wirings to connect each part of the whole mobile phone. It can perform the functions of the mobile phone and process data by running or executing software procedure and/or modules stored in the memory 1 120, as well as calling the data stored in the memory 1 120, to do the overall monitoring of the mobile phone. Optionally, the processor 1 1 80 may include one or more than one processing units. Preferably, the processor 1 1 80 may be an integrated application processor and modem processor. Therein the application processor mainly deals with the main processor operating system, the user interface and application progress, etc. The modem processor mainly deals with wireless communication. Understandably, the modem processor may be integrated not into the processor 1180.
|001091 The mobile phone 1 100 also includes the power supply 1 190 for supplying power to each part (such as a battery). Preferably, the power may be connected to the processor 1 1 80 logically according to the power management system, and therefore it may be realized that a function of management of charge, discharge, and power consumption according to the power management system management.
[00110] Although it is not shown, the mobile phone 1100 may also include camera and Bluetooth module, etc.
1001111 In the examples of the present disclosure, the processor 1 1 80 included in the touch screen device may also perform the follow ing functions:
100112| Determining whether the draggable list view is being dragged.
1001131 If not, triggering a thread to refresh the content of the items of the draggable listview at a preset refreshing frequency ;
[00114] If yes, triggering a thread to stop refreshing the content of the items of the draggable listview, then performing the drag operation in the draggable listview, once the dragging operation is finished, triggering a thread to refresh the content of the items of the draggable listview at a preset refreshing frequency.
100115| The draggable listv iew may be displayed in the touch screen device.
100116| The examples of the present specification are described by the progressiv e way. Each of the examples described herein focuses on the difference between the current example and the other examples. The same or similar parts could be cross reference to each other between the various examples. The apparatus disclosed in the examples, because of its corresponding to the method disclosed in the example, is described relatively simple and the relevant description may refer to the method section.
[00117] Professionals may further real ize that units and algorithm steps in the examples that are described herein may be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of the hardw are and the software, the constitution and steps of each example has been generally described according to the function in the above description. How these functions to be performed, by hardware or software, depends on the particular application and the technical solution design constraints. Professionals may use different methods to achieve the described functionality for each specific application, but such implementation should not be considered as an exceeding of the scope of the present disclosure.
[00118] According to the method or algorithm steps described in the examples disclosed herein may be executed by the processor software module or directly with the hardware, or a combination of the two, to implement. Software module may be placed in the random access memory (RAM), memory, read-only memory (ROM), electrically alterable programmable ROM, electrically erasable programmable ROM, register, hard disk, CD-ROM disk, mobile storage medium, or in any other form of storage medium known in the art. Computer readable medium that may be used to store software may be either transitory or non-transitory.
[00119] The disclosed examples described above enable the skilled in the art to implement or use the present disclosure. A variety of modifications of these examples may be apparent for the skilled in the art. The general principles of the spirit or scope of the present disclosure as defined herein may be made in the case of implementation in other examples without departing from the present disclosure. Accordingly, the present disclosure is not limited to the examples shown herein but to comply with the widest range herein disclosed consistent with the principles and novel features.

Claims

Claims
1 . A method for refreshing content of a draggable listview comprising:
determining, by a processor, whether the draggable listview is being dragged by a user;
if not, triggering, by the processor, a thread to refresh the content of items in the draggable listview at a preset refreshing frequency, and, if yes:
triggering, by the processor, the thread to stop refreshing the content of the items in the draggable listview:
performing, by the processor, a drag operation of an item in the draggable listview, and after the dragging operation is finished;
triggering, by the processor, the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency.
2. The method of claim 1, wherein the triggering of the thread to refresh the content of the items in the draggable listview comprises:
instructing, by the processor, via a handler provided by an operating system, a main user interface (UI) thread to refresh a data source of an adapter of the draggable listview at the preset refreshing frequency to refresh the content of the items of the draggable listview.
3. The method of claim 2, wherein the instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the data source of the adapter of the draggable listview at the preset refreshing frequency comprises:
if the data source is local data, identify ing, by the processor, a refreshing content relevant to the items of the draggable listview according to a position marker of the local data; and
if the data source is internet data, instructing, by the processor, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at the preset refreshing frequency.
4. The method of claim 1, wherein the determining whether the draggable listview is dragged comprises:
extracting, by the processor, a value of a flag bit defined in the source code of the drag operation, wherein the flag bit is used for indicating whether the draggable listview is dragged;
if the flag bit has a first value, indicating, by the processor, the draggable listview is dragged; and
if the flag bit has a second value, indicating, by the processor, the draggable listview is not dragged .
5. The method of claim 4, wherein the flag bit having the first value corresponds to an object that triggers a down event in the draggable listview, and the flag bit having the second value corresponds to an object that triggers an up event in the draggable listview,
6. A device for refreshing content of a draggable listview comprising:
a determining module having one or more processors coupled with a memory that is used for determining whether a draggable listview is dragged by a user;
a first execution module having one or more processors coupled with a memory that is used for triggering a thread to refresh the content of the items in the draggable listview at a preset refreshing frequency when the determining module determines that the draggable listview is not dragged;
a second execution module having one or more processors coupled with a memory that is used for triggering the thread to stop refreshing the content of the items in the draggable listview, performing a drag operation in the draggable listview, after the dragging operation is finished, triggering the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency when the determining module determines that the draggable listview is dragged.
7. The device of claim 6, wherein the first execution module comprises: a content refreshing unit having one or more processors coupled with a memory that is used for instructing, by a handler provided by an operating system, a main user interface (UI) thread to refresh a data source of an adapter of the draggable listview at the preset refreshing frequency to refresh the content of the items of the draggable listview.
8. The device of claim 7, wherein the content refreshing unit comprises:
a local data refreshing subunit having one or more processors coupled with a memory that is used for identifying a refreshing content relevant to the items of the draggable listview according to a position marker of the local data, and instructing, by the handler provided by the operating system, the main user interface (UI) thread to refresh the content of the items of the draggable listview at the preset refreshing frequency when the data resource is local data; and
an internet data refreshing subunit having one or more processors coupled with a memory that is used for instructing, by the handler provided by the operating system, the main user interface ( U I ) thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at the preset refreshing frequency when the data resource is internet data.
9. The device of claim 6, wherein the determining module comprises:
a value extracting unit having one or more processors coupled with a memory that is used for extracting a value of a flag bit defined in the source code of the drag operation, wherein the flag bit is used for indicating whether the draggable listview is dragged;
a first indicatin unit having one or more processors coupled with a memory that is used for indicating the draggable listview is dragged when the flag bit has a first value; and
a second indicating unit hav in one or more processors coupled ith a memory that is used for indicating the draggable listview is not dragged when the flag has a second value.
10. The device of any one of claims 6-9, further comprising a touch screen apparatus.
11. A non-transitory computer readable storage medium comprising instructions that when executed by a processor cause the processor to:
determine whether a draggable listview is being dragged by a user;
if not, trigger a thread to refresh the content of items in the draggable listview at a preset refreshing frequency, and, if yes:
trigger the thread to stop refreshing the content of the items in the draggable listview;
perform a drag operation of an item in the draggable listview, and after the dragging operation is finished;
trigger the thread to refresh the content of the items in the draggable listview at the preset refreshing frequency.
12. The non-transitory computer readable storage medium method of claim 11, wherein the instructions to trigger the thread to refresh the content of the items in the draggable listview, when executed by the processor cause the processor to:
Instruct, via a handler provided by an operating system, a main user interface (UI) thread to refresh a data source of an adapter of the draggable listview at the preset refreshing frequency to refresh the content of the items of the draggable listview.
13. The non-transitory computer readable storage medium method of claim 12, wherein the instructions to instruct, by the handler provided by the operating system, the main user interface (UI) thread to refresh the data source of the adapter of the draggable listview at the preset refreshing frequency, when executed by the processor cause the processor to:
if the data source is local data, identify, by the processor, a refreshing content relevant to the items of the draggable listview according to a position marker of the local data; and
if the data source is internet data, instruct by the handler provided by the operating system, the main user interface ( U I ) thread to refresh the content of the items of the draggable listview with the latest internet data acquired from the internet at the preset refreshing frequency.
14. The non-transitory computer readable storage medium method of claim 11 , wherein the instructions to determine whether the draggable listview is dragged, when executed by the processor cause the processor to:
extract a value of a flag bit defined in the source code of the drag operation, wherein the flag bit is used for indicating whether the draggable listview is dragged; if the flag bit has a first value, indicate the draggable listview is dragged; and if the flag bit has a second value, indicate the draggable listview is not dragged .
15. The non-transitory computer readable storage medium method of claim 14, wherein the flag bit having the first value corresponds to an object that triggers a down event in the draggable listview, and the flag bit having the second value corresponds to a object that triggers an up event in the draggable listview.
16. The non-transitory computer readable storage medium method of any one of claims 11-15, wherein the draggable listview is displayed in a touch screen apparatus.
PCT/CN2014/084993 2013-08-30 2014-08-22 Method, device and touch screen apparatus for refreshing content of draggable listview WO2015027864A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310390588.1A CN104424288B (en) 2013-08-30 2013-08-30 A kind of 3D display method and device of webpage
CN201310390588.1 2013-08-30

Publications (1)

Publication Number Publication Date
WO2015027864A1 true WO2015027864A1 (en) 2015-03-05

Family

ID=52585569

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084993 WO2015027864A1 (en) 2013-08-30 2014-08-22 Method, device and touch screen apparatus for refreshing content of draggable listview

Country Status (2)

Country Link
CN (1) CN104424288B (en)
WO (1) WO2015027864A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105551076A (en) * 2016-02-19 2016-05-04 杨冠平 Three-dimensional image font library
CN110472168A (en) * 2019-07-05 2019-11-19 中国平安财产保险股份有限公司 Page data update method, device, computer equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504411B (en) * 2014-12-24 2018-04-20 英华达(上海)科技有限公司 The 3 D-printing model building device and method of a kind of handwriting
CN104835192A (en) * 2015-04-27 2015-08-12 北京大学深圳研究生院 Three-dimensional web page figure drawing method and apparatus
CN105205154B (en) * 2015-09-24 2021-06-22 浙江宇视科技有限公司 Data migration method and device
CN107578475A (en) * 2017-09-05 2018-01-12 三星电子(中国)研发中心 A kind of three-dimensional web page display methods and device
CN108304590A (en) * 2018-03-09 2018-07-20 百度在线网络技术(北京)有限公司 Web page display method, apparatus, equipment and the computer-readable medium of virtual reality

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020194359A1 (en) * 2001-06-14 2002-12-19 International Business Machines Corporation System and method for client refresh mode selection
CN102306085A (en) * 2011-09-22 2012-01-04 王金堃 Multizone browser and control method thereof
CN102612687A (en) * 2009-11-12 2012-07-25 微软公司 Web service interface and querying
EP2549391A1 (en) * 2010-08-24 2013-01-23 Tencent Technology (Shenzhen) Company Limited Method and system for presenting forwarded message

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153372A1 (en) * 2008-12-17 2010-06-17 Sea Woo Kim 3d visualization system for web survey
CN102253831B (en) * 2011-06-16 2017-05-31 中国科学院声学研究所东海研究站 The method of OpenGL ES is embedded in built-in terminal in browser
CN102937968B (en) * 2012-10-11 2015-10-14 上海交通大学 A kind of binocular 3D webpage implementation method based on Canvas and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020194359A1 (en) * 2001-06-14 2002-12-19 International Business Machines Corporation System and method for client refresh mode selection
CN102612687A (en) * 2009-11-12 2012-07-25 微软公司 Web service interface and querying
EP2549391A1 (en) * 2010-08-24 2013-01-23 Tencent Technology (Shenzhen) Company Limited Method and system for presenting forwarded message
CN102306085A (en) * 2011-09-22 2012-01-04 王金堃 Multizone browser and control method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105551076A (en) * 2016-02-19 2016-05-04 杨冠平 Three-dimensional image font library
CN110472168A (en) * 2019-07-05 2019-11-19 中国平安财产保险股份有限公司 Page data update method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104424288A (en) 2015-03-18
CN104424288B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
WO2015027864A1 (en) Method, device and touch screen apparatus for refreshing content of draggable listview
TWI520043B (en) Method, device and moving terminal for examining messages
WO2017206902A1 (en) Application control method and related device
TW201516845A (en) Target element moving method, device and electronic equipment thereof
JP6068660B2 (en) Character selection method, character selection device, terminal device, program, and recording medium
CN109753425B (en) Popup window processing method and device
US20180189107A1 (en) Hot application resource allocation method, mobile terminal and storage medium
WO2019041280A1 (en) Application resource recommendation method and related device
US20170064352A1 (en) Method and system for collecting statistics on streaming media data, and related apparatus
US10298590B2 (en) Application-based service providing method, apparatus, and system
EP2869604A1 (en) Method, apparatus and device for processing a mobile terminal resource
CN106776301B (en) Subelement testing method and device
CN106339391B (en) Webpage display method and terminal equipment
US9742901B2 (en) Method, apparatus and terminal device for obtaining call log
US20160119695A1 (en) Method, apparatus, and system for sending and playing multimedia information
WO2018214745A1 (en) Application control method and related product
CN109688611A (en) A kind of configuration method, device, terminal and the storage medium of frequency range parameter
US11150913B2 (en) Method, device, and terminal for accelerating startup of application
CN106412250B (en) One kind falling statistical method and device
US20150070360A1 (en) Method and mobile terminal for drawing sliding trace
CN109041212B (en) Positioning method and wearable device
CN105159655B (en) Behavior event playing method and device
CN108304709B (en) Face unlocking method and related product
CN106598218B (en) A kind of control method and device of audio broadcasting
CN110908586A (en) Keyboard display method and device and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14840837

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC , EPO FORM 1205A DATED 05-08-16

122 Ep: pct application non-entry in european phase

Ref document number: 14840837

Country of ref document: EP

Kind code of ref document: A1