Android realizes the grouping information example of sina Weibo with popupwindow

Recently, I saw that the microblog grouping effect in the top column of sina microblog is very dazzling. I checked some information on the Internet and learned that it was originally realized with popupwindow. Today, I also wrote an example to realize this effect. I hope it will be helpful to you.

Popupwindow means pop-up window, similar to the start button under windows. Popupwindow can realize the floating layer effect, and can customize the display position and the animation when it appears and exits

The effects are as follows:

Implementation idea:

Put a listview in a popupwindow to achieve the realization of grouping information!

Specific main implementation code: Group_ list. xml:

group_ item_ view. xml:

Code in activity:

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