Android uses jQuery to realize the special effects of item clicking to show or hide
This article introduces an example of Android using jQuery to realize the special effects of item clicking, displaying or hiding, and shares it with you, as follows:
design sketch
analysis
The functions in the figure above may be used in many apps, such as the help interface of the app, which tells users how to use the app
The general implementation method is implemented through listview. In fact, such requirements are very simple and can be implemented by loading HTML with WebView
The drawer style display and hiding effect can be implemented using jQuery, which can be done with one function
realization
Integrated jquery
JQuery needs to be used in the web page. The latest version can be downloaded from the official website
It is not recommended to use hyperlink association to integrate jQuery into web pages. For example, the help page needs to be accessed without networking, so it is recommended to put jQuery into the project
Here is the published compact version. Right click the link directly and save it as text
Rename the text saved as jquery.js, and integrate jQuery into HTML through the following code