Android contextmenu item size / height, how to change?

情到浓时终转凉″ 提交于 2019-12-23 23:45:00

问题


How can i change the contextmenu item's size? height?

Thanks, Leslie


回答1:


It's not really intended to be modified - it's there to handle menu in standard way. There are some ways to modify the menu and its items (for example see here: http://www.techjini.com/blog/2011/04/19/customizing-background-and-text-color-in-options-menu-android/) but I really think in this case you are far from the original menu idea...

Far enough to simply create your own view - whatever you like it to be and show it when handling long press.. You can make it embedded in your own transparent full screen control... I think it will be much faster than modifying context menu.



来源:https://stackoverflow.com/questions/6478249/android-contextmenu-item-size-height-how-to-change

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