Android realizes the sideslip menu of Netease News client (1)

Many products in Android (such as 360 mobile assistant, Netease menu...) They all adopt the display form of sideslip menu

1. It can store more display contents in the menu

2. The design can also reflect the visual effect

Now this interaction mode is becoming more and more popular. Although this interaction mode can be realized by custom components, it is simpler to use third-party open source libraries.

Slidingmenu: slidingmenu is a relatively new setting interface or configuration interface effect. The setting interface appears by sliding left or right in the main interface, which is convenient for various operations At present, a large number of applications are using this effect.

Address: https://github.com/jfeinstein10/SlidingMenu.git

Now create a new Android project, slidingmenudemo,

activity_ main:

Menu activity on the left_ menu:

MainActivity. java:

Note that the activity must inherit the slidingfragmentactivity.

Now look at some properties of slidingmenu:

You can draw the slidingmenu menu on the left and right, just set it

Setting the slidingmenu property

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>