Skip to content

Instantly share code, notes, and snippets.

@yakdere
Created April 1, 2015 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yakdere/146b73d72d5d851d39e3 to your computer and use it in GitHub Desktop.
Save yakdere/146b73d72d5d851d39e3 to your computer and use it in GitHub Desktop.
Wearables
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