How to add a popup menu with a customLayout with pointer arrow and anchor it to a view

限于喜欢 提交于 2019-12-24 20:44:36

问题


I want to make a popup menu with an arrow.

I saw there are many tooltip libraries similar to this which have a similar layout but support only text. There is this library but that is very old and has depricated code. There are two other libraries but they have horizontal menus with jagged edges with no text.

I am trying to add a customview to the popup menu anchored to a view with an arrow pointing towards the view something like this.

https://ibb.co/ftjnjCd

Alternatively I inflated a layout with a background with an arrow and added constraints progmatically but that is not what I am going for.

来源:https://stackoverflow.com/questions/54529577/how-to-add-a-popup-menu-with-a-customlayout-with-pointer-arrow-and-anchor-it-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!