Custom main menu with rotating android

痞子三分冷 提交于 2019-12-08 10:00:49

问题


I would like to make an application with a custom main menu. However, I want to have a different menu, with a circle and items around it. The user can select each item rotating the device.

Should I use a Surface View to draw them and make the animation or there is an easier way for that ?


回答1:


  • Yes, you should draw the background and the text using a surface view.
  • You will need to rotate the background and the text when the device rotates.
  • This is a fairly simple way to implement it. The rotation is probably the only hard part. Just make a small version to test the code of the main functionality and then build it step by step.


来源:https://stackoverflow.com/questions/12546990/custom-main-menu-with-rotating-android

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