Created
April 1, 2015 00:44
-
-
Save yakdere/146b73d72d5d851d39e3 to your computer and use it in GitHub Desktop.
Wearables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WatchViewStub stub = (WatchViewStub) view.findViewById(R.id.watch_view_stub); | |
stub.setOnLayoutInflatedListener(new WatchViewStub.OnLayoutInflatedListener() { | |
@Override | |
public void onLayoutInflated(WatchViewStub stub) { | |
/* rectangular and round layouts are inflated and can be reachable by *stub.findViewById() | |
* click listeners should also be here | |
*/ | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment