第二个 Android 11 开发者预览版现已推出,快来测试并分享您的反馈吧

WatchViewStub.OnLayoutInflatedListener

public static interface WatchViewStub.OnLayoutInflatedListener

android.support.wearable.view.WatchViewStub.OnLayoutInflatedListener


Listener for detecting when internal layout inflation has completed. If you need to perform a series of findViewById calls to locate inflated views you should do so here.

Listeners may be called more than once if the window insets configuration changes.

Summary

Public methods

abstract void onLayoutInflated(WatchViewStub stub)

Public methods

onLayoutInflated

void onLayoutInflated (WatchViewStub stub)

Parameters
stub WatchViewStub