Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Android platform based realization method for multi-level tree menu

A tree menu, Android platform technology, applied in the implementation of multi-level tree menus, can solve the problems of complex implementation of nested ListView/ExpandableListView, no final level in the parent level, and difficult to detect, so as to improve the display speed and respond to users. The effect of the speed of the operation

Inactive Publication Date: 2016-06-01
FUJIAN XINGHAI COMM TECH
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The existing technology has the following disadvantages: 1. In the case where the user can set groups, the user group usually has multiple levels, and the user group is often random, so the levels of each vehicle are different, and some parent levels even appear case of no final tier
2. Using ExpandableListView to nest ListView / ExpandableListView is complex to implement, and when ExpandableListView nests multiple listviews or expandablelistviews, it will cause event conflicts in the view itself, burying many bugs that are not easy to detect or even unsolvable

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Android platform based realization method for multi-level tree menu

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Such as figure 1 As shown, a method for realizing a multi-level tree menu based on an Android platform includes the following steps:

[0022] Step 1: Abstract the object describing the level information, which contains the following description information: the unique identifier used to identify the level information, the information used to describe whether the current level is the parent level, and the information used to describe whether the current level has sub-levels , which is used to describe the parent level identifier of the level, the level depth information used to describe the current level, and the information used to describe whether the current level is in a collapsed state;

[0023] Step 2: Abstract the display file of the layer information, which contains the following information: the text showing the name of the layer, the picture showing the folded state of the layer;

[0024] Step 3: Set the adapter of the tree menu according to the abstracted hie...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an android platform based realization method for a multi-level tree menu. The method comprises the steps of abstracting out an object that describes level information; abstracting out a display file of the level information; when the information is displayed for a user, making the following judgments: firstly judging whether a current level is a father level or not, and if the current level is the father level, calculating a displayed level name through level depth information of the current level and setting a picture displaying a folding state of the level to be operable; if the current level is not the father level, calculating the displayed level name through the level depth information of the current level and setting the picture displaying the folding state of the level to be invisible; only displaying visible level information in a current screen of a mobile phone in a tree menu, and when the level is clicked by the user, making the following judgments: obtaining the level information of the level selected by the user and performing information transmission, wherein the level information is used for expanding the tree menu; and if the level selected by the user is a final level, obtaining the level information of the level selected by the user and performing information display.

Description

【Technical field】 [0001] The invention relates to the field of display, in particular to a method for realizing a multi-level tree menu based on an Android platform. 【Background technique】 [0002] At present, many android (Android) applications need a multi-level tree list, for example, a vehicle with area attribution and group attribution. When showing the user the area to which the car belongs, it is necessary to display the area to which the car belongs. If a user has set a group in the area, then the group information to which the car belongs should also be displayed. As far as the above example is concerned, the display of the car has at least three levels, namely: the area it belongs to-the group it belongs to-vehicle. If the grouping of users is further detailed, the level to which a car belongs is uncertain, and it is not limited to the third level, fourth level, etc. Since these levels of information are controlled by the user, for a good user experience, the App...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/0482G06F17/30
CPCG06F3/0482G06F16/904
Inventor 吴丽华徐品陈建灵
Owner FUJIAN XINGHAI COMM TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products