Android realizes microblog menu pop-up effect

First, the Android imitation microblog menu pops up the effect picture. This screenshot is not very smooth. You can download APK and try it.

Let's talk about the implementation idea:

1. Intercept the current window, do Gaussian blur processing on the picture, and make the processed picture the background picture of popupwindow; 2. Create a popwindow and complete the layout. Note here: the moving range of the view is determined by the size of the parent, that is, it can only be moved within the range of the parent; 3. Add an entry animation to the purchased view. Each view plays the animation 50 ms later than the previous one. When the window is closed, it is the opposite; 4. Add springback interpolator for view animation;

Morewindow.java window

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
分享
二维码
< <上一篇
下一篇>>