Android Wear Launcher

天大地大妈咪最大 提交于 2019-12-03 14:33:06
Nicolas POMEPUY

In fact, the views are directly added in the WindowManager in a Service. You can take a look at this thread to understand how it works: Creating a system overlay window (always on top)

Be careful, there is an issue in the Moto 360 system at this time as explained here: https://plus.google.com/u/0/113671876130843889747/posts/9bqUcdgZnNb You will have to use the WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR flag to avoid the bottom space. By the way, you can also take a look at the code I gave in this post to understand how overlaying works. Direct link: https://github.com/PomepuyN/WatchviewStubIssue

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