Index display method, electronic device and computer-readable storage medium
AssigneeHonor Device Co., Ltd.
InventorYuzhuo Peng
Life of this patent
Estimating the term…
Abstract
This application belongs to the field of user interfaces, and provides an index display method, an electronic device, and a computer-readable storage medium. The index display method includes: displaying a first page in response to an operation of a user, where the first page includes a first list, and displaying an index corresponding to the first list when the first list is located in a preset display region of a display interface, so that both the first list and the corresponding index are displayed, thereby improving a degree of matching between an index displayed in the display interface and a list.
Claims15
An index display method, comprising:
- displaying, on a display interface of a mobile device, a first page in response to a tapping operation of a user, wherein the first page comprises a first list and a second list, wherein a first index corresponding to the first list comprises at least one index label, and wherein the first list is a device list, and the second list is a contacts list;
- obtaining a quantity of the at least one index label and a length of the first list;
- displaying, on the display interface of the mobile device, the first index corresponding to the first list in response to (i) a first sliding operation of the user that slides a top of the first list to the top of the display interface and (ii) determining that the quantity of the at least one index label is greater than a preset value and the length of the first list is greater than a preset length:
- stopping displaying the first index in response to a second sliding operation of the user, the second sliding operation of the user causing the display interface to display both the first list and the second list;
- and
- displaying, on the display interface, a second index corresponding to the second list in response to a third sliding operation of the user that slides a top of the second list to the top of the display interface.
An electronic device, comprising:
- a processor and a memory, wherein
- the memory stores program instructions;
- and
- the processor is configured to run the program instructions stored in the memory, to cause the electronic device to perform operations comprising:
- displaying, on a display interface of a mobile device, a first page in response to a tapping operation of a user, wherein the first page comprises a first list and a second list, wherein a first index corresponding to the first list comprises at least one index label, and wherein the first list is a device list, and the second list is a contacts list;
- obtaining a quantity of the at least one index label and a length of the first list;
- displaying, on the display interface of the mobile device, the first index corresponding to the first list in response to (i) a first sliding operation of the user that slides a top of the first list to the top of the display interface and (ii) determining that the quantity of the at least one index label is greater than a preset value and the length of the first list is greater than a preset length;
- stopping displaying the first index in response to a second sliding operation of the user, the second sliding operation of the user causing the display interface to display both the first list and the second list;
- and
- displaying, on the display interface, a second index corresponding to the second list in response to a third sliding operation of the user that slides a top of the second list to the top of the display interface.
A non-transitory computer-readable storage medium storing a computer program, and when the computer program is executed by a processor of an electronic device, the electronic device is caused to perform operations comprising:
- displaying, on a display interface of a mobile device, a first page in response to a tapping operation of a user, wherein the first page comprises a first list and a second list, wherein a first index corresponding to the first list comprises at least one index label, and wherein the first list is a device list, and the second list is a contacts list;
- obtaining a quantity of the at least one index label and a length of the first list;
- displaying, on the display interface of the mobile device, the first index corresponding to the first list in response to (i) a first sliding operation of the user that slides a top of the first list to the top of the display interface and (ii) determining that the quantity of the at least one index label is greater than a preset value and the length of the first list is greater than a preset length:
- stopping displaying the first index in response to a second sliding operation of the user, the second sliding operation of the user causing the display interface to display both the first list and the second list;
- and
- displaying, on the display interface, a second index corresponding to the second list in response to a third sliding operation of the user that slides a top of the second list to the top of the display interface.
Dependencies are inferred from the claim text.