草庐IT

onApplyWindowInsetsListener

全部标签

android - 检测到 Moto 360/圆形和未调用 onApplyWindowInsetsListener

检测Moto360屏幕形状的常用方法似乎无法正常工作。我知道有报道称windowInset.isRound()在Moto360中返回false。目前我的代码如下WatchViewStubviewStub=newWatchViewStub(this);viewStub.setRoundLayout(com.pizzaentertainment.weatherwatchface.R.layout.bau);viewStub.setRectLayout(com.pizzaentertainment.weatherwatchface.R.layout.bau_rect);viewStub.se