There are many problems with bloating layouts caused by improper use of WatchViewStub. I donβt see any code to know for sure, but one common problem is that you register a listener to insert a clock so that you can check if it is round or square inside the onApplyWindowInsets handler:
final WatchViewStub stub = (WatchViewStub) findViewById(R.id.watch_view_stub); stub.setOnApplyWindowInsetsListener(new View.OnApplyWindowInsetsListener() { @Override public WindowInsets onApplyWindowInsets(View view, WindowInsets windowInsets) {
I see cases where people forget to return windowInsets or forget to call stub.onApplyWindowInsets (). This results in a square layout instead of a round layout.
In addition, there was a bug with the AndroidWearRound emulator built into the SDK. There were three of them, and if you created the wrong one, it will actually create a square emulator. Make sure you have three emulators that you choose second. This error has been fixed in the latest versions of Android SDK Tools 23.0.4, but you may have an older version installed.
Can you show us the code you are doing around WatchViewStub?
source share